int position1H = 3; int position1V = 3; int position2H = 75; int position2V = 3; while (true) { Console.SetCursorPosition(position1H, position1V); Console.BackgroundColor = ConsoleColor.Black; Console.WriteLine(" "); //take input to move cursor //ConsoleKeyInfo KInfo = Console.ReadKey(true); //Console.WriteLine(KInfo.Key.ToString()); System.Threading.Thread.Sleep(1); Console.SetCursorPosition(position2H, position2V); }
System.Console.ReadKey(true)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)