static void Init() { Console.Clear(); cmdText.printLogo(); cmdText.PrintCommand("1", "SWITCH TTL TO 64 (MOBILE VALUE)"); cmdText.PrintCommand("2", "SWITCH TTL TO 128(PC DEFAULT TTL)"); cmdText.PrintCommand("3", "EXIT"); //На заметку: параметр true не позволяет печатать текст во время регистрации нажатий ConsoleKeyInfo answer = Console.ReadKey(true); while (answer.KeyChar != 49 && answer.KeyChar != 50 && answer.KeyChar != 51) { answer = Console.ReadKey(true); } //1 if (answer.KeyChar == 49) { TTL.SetMobileTTL(); cmdText.Done(); RebootRequirement(); } //2 else if (answer.KeyChar == 50) { TTL.SetToDefault(); cmdText.Done(); RebootRequirement(); } //3 else if (answer.KeyChar == 51) { Environment.Exit(0); } ; }