public void Clear(int x, int y, int width, int height) { lock (padlock) { ConsoleForm.Clear(x, y, width, height); } }
/// <summary> /// Clears the buffer of this IConsole. /// </summary> public void ClearBuffer() { lock (padlock) { ConsoleForm.ClearBuffer(); } }
/// <summary> /// Reads a character from input /// </summary> /// <returns>The character read from input</returns> public char ReadKey() { lock (padlock) { return(ConsoleForm.ReadKey()); } }
void runConsole() { ConsoleForm.Show(); Application.Run(); }
/// <summary> /// Refreshes this IConsole, provided that it is double buffered /// Does nothing otherwise /// </summary> public void Refresh() { lock (padlock) { ConsoleForm.RefreshConsole(); } }
/// <summary> /// Places the cursor at the specified position /// </summary> /// <param name="x">The x corrdinate of the cursor position</param> /// <param name="y">The y coordinate of the cursor position</param> public void GoTo(int x, int y) { lock (padlock) { ConsoleForm.GoTo(x, y); } }
/// <summary> /// Writes the specified string at current cursor position /// </summary> /// <param name="c">The string to write</param> public void Write(string s) { lock (padlock) { ConsoleForm.Write(s); } }
/// <summary> /// Writes the specified character at current cursor position /// </summary> /// <param name="c">The character to write</param> public void Write(char c) { lock (padlock) { ConsoleForm.Write(c); } }
/// <summary> /// Writes the specified character at given coordinates /// </summary> /// <param name="c">The character to write</param> /// <param name="x">The x corrdinate of the write position</param> /// <param name="y">The y coordinate of the write position</param> public void Write(char c, int x, int y) { lock (padlock) { ConsoleForm.Write(c, x, y); } }