コード例 #1
0
        static void Welcome()
        {
            // 我が名は仙狐。
            // The project has been renamed to Senko, after the helpful fox in the anime "Sewayaki Kitsune no Senko-san"
            // Senko is also a backronym for "SENd KOmmand".

            string title = Color.InsertTag("PROJECT:SENKO | Remote Control", ConsoleColor.Cyan);

            System.Reflection.Assembly assembly = System.Reflection.Assembly.GetExecutingAssembly();
            FileVersionInfo            fvi      = FileVersionInfo.GetVersionInfo(assembly.Location);
            string version = "Version: " + fvi.ProductVersion;

            version = Color.InsertTag(version.Join("@", 43 - version.Length, "#"), ConsoleColor.White);

            string github = Color.InsertTag(@"https://github.com/TsurugiDanzen/Senko", ConsoleColor.White);

            var ascii = new string[]
            {
                "@26#,.",
                "@17#.*&&4@# .#@@@%*",
                "@16##@@%,.&@&@@@//@%,",
                "@13#.%@@(,  ,@@@&/  ,@#,",
                "@11#,#@%/@6#,*.@4#.&@@(.@15#",
                "@10#*@@#@17#*#@@@/.",
                "@9#,@&(@21#,/&@@%",
                "@8#,@%@17#,/%@@@&%/.",
                "@7#*%@,@15#*@@@%*, ,/%&&8@}%#/.",
                "@7#%@#@15#/&@,.*%&@@@%(*,...,,*#&@@%(",
                "@6#,@@,@15#.(&4@%#,@15#*@@%",
                "@5#,#@%@42#*@%,",
                "@5#,%@%@42#,@%,",
                "@6#,,.   ./%&&15@&%(,.@13#.%@@.  /*",
                "@9#,%@@@%(,.@10#..*#%&@@@&%(,,,.,,*#&@@%.  ,@@,",
                "@6#.#&@&*,@23#,(#&&7@&%*@6#&@(",
                "@4#(@@%/@47#%@#",
                "  *%@#*@5#{0}@14#&@(",
                " *@@/@7#{1}*@@,",
                ",@@&%#(,.   {2}@4#.@&(",
                ",##%%&@@@#,@42#/&@*",
                Color.InsertTag(new string('#', Kon.MaxLength(PrefixType.Normal)), ConsoleColor.DarkGray, false),
                Environment.NewLine
            }.Join(Environment.NewLine);

            Kon.WriteLine(ascii.Decompress(), LongTextFormatting.Disabled, NewLineType.Both, ConsoleColor.Gray, PrefixType.Normal, title, version.Decompress(), github);
            Kon.WriteLine();
            Kon.Color.Reset();
        }