Skip to content

Instantly share code, notes, and snippets.

@csharpforevermore
Created June 12, 2018 14:49
Show Gist options
  • Save csharpforevermore/afdc925104a31d73def0657266791372 to your computer and use it in GitHub Desktop.
Save csharpforevermore/afdc925104a31d73def0657266791372 to your computer and use it in GitHub Desktop.
C# - print string of text at a specific position on the screen. Research for the Rogue-style game.
Console.SetCursorPosition(20, 0);
Console.WriteLine("Hello");
Console.SetCursorPosition(20, 2);
Console.WriteLine("World");
Console.ReadLine();
Console.ForegroundColor = ConsoleColor.Gray;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment