[System.Console]
STDIN, STDOUT, STDERR streams.Object –> Console
properties
BufferHeight- Get or set the buffer heightBufferWidthCursorSize- Get or set the size of the console cursor.WindowHeight- Get or set the console window heightWindowWidthWindowTop- Get or set the top position of the console window.WindowsLeft- Get or set the left position of the console window.
colors
BackgroundColor = ConsoleColor.color
ForegroundColor = ConsoleColor.color
static methods
BeepBeep(n, m)- Beep at n frequency for m durationClearResetColorReadKey- Read an individual character.ReadLine- Read a line of input.SetBufferSizeSetWindowSize
reading input
ConsoleKeyInfo key = ReadKey();
key.Key // returns key that was pressed
key.KeyChar // returns case-sensitive character that was pressed
key.Modifiers // returns modifiers (Control, Alt, Shift)
replace line of output
Console.Write("\r"); // Carrier Return; moves cursor back to position #1 on current line