Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ConsoleKeyInfo cki;
- do
- {
- // cki = Console.ReadKey(true);
- // ConsoleKeyInfo cki;
- Console.WriteLine("I am in a thred!");
- if (Console.KeyAvailable)
- {
- cki = Console.ReadKey(true);
- if (cki.Key == ConsoleKey.Escape) break;
- switch (cki.Key) {
- case ConsoleKey.RightArrow:
- Console.WriteLine("RightArrow");
- break;
- }
- }
- System.Threading.Thread.Sleep(150);
- } while (true);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement