From 80a6acc55b11976571a5fa0683024dcbdd6bcad7 Mon Sep 17 00:00:00 2001 From: Charlie Kindel Date: Sun, 7 Jun 2020 22:06:02 -0600 Subject: [PATCH] removed warnings --- .../ConsoleDrivers/MockDriver/MockConsole.cs | 332 +++++++++++++++++- .../ConsoleDrivers/MockDriver/MockDriver.cs | 89 ++++- 2 files changed, 413 insertions(+), 8 deletions(-) diff --git a/Terminal.Gui/ConsoleDrivers/MockDriver/MockConsole.cs b/Terminal.Gui/ConsoleDrivers/MockDriver/MockConsole.cs index ffb3b0c32..d69b52ea9 100644 --- a/Terminal.Gui/ConsoleDrivers/MockDriver/MockConsole.cs +++ b/Terminal.Gui/ConsoleDrivers/MockDriver/MockConsole.cs @@ -36,6 +36,9 @@ namespace Terminal.Gui { // // T:System.IO.IOException: // Error reading or writing information. + /// + /// + /// public static int WindowWidth { get; set; } = 80; // // Summary: @@ -44,6 +47,9 @@ namespace Terminal.Gui { // // Returns: // true if output is redirected; otherwise, false. + /// + /// + /// public static bool IsOutputRedirected { get; } // // Summary: @@ -52,6 +58,9 @@ namespace Terminal.Gui { // // Returns: // true if error output is redirected; otherwise, false. + /// + /// + /// public static bool IsErrorRedirected { get; } // // Summary: @@ -59,6 +68,9 @@ namespace Terminal.Gui { // // Returns: // A System.IO.TextReader that represents the standard input stream. + /// + /// + /// public static TextReader In { get; } // // Summary: @@ -66,6 +78,9 @@ namespace Terminal.Gui { // // Returns: // A System.IO.TextWriter that represents the standard output stream. + /// + /// + /// public static TextWriter Out { get; } // // Summary: @@ -73,6 +88,9 @@ namespace Terminal.Gui { // // Returns: // A System.IO.TextWriter that represents the standard error output stream. + /// + /// + /// public static TextWriter Error { get; } // // Summary: @@ -90,6 +108,9 @@ namespace Terminal.Gui { // // T:System.Security.SecurityException: // Your application does not have permission to perform this operation. + /// + /// + /// public static Encoding InputEncoding { get; set; } // // Summary: @@ -107,6 +128,9 @@ namespace Terminal.Gui { // // T:System.Security.SecurityException: // Your application does not have permission to perform this operation. + /// + /// + /// public static Encoding OutputEncoding { get; set; } // // Summary: @@ -171,6 +195,9 @@ namespace Terminal.Gui { // // T:System.IO.IOException: // An I/O error occurred. + /// + /// + /// public static int BufferHeight { get; set; } = 25; // // Summary: @@ -190,6 +217,9 @@ namespace Terminal.Gui { // // T:System.IO.IOException: // An I/O error occurred. + /// + /// + /// public static int BufferWidth { get; set; } = 80; // // Summary: @@ -210,6 +240,9 @@ namespace Terminal.Gui { // // T:System.IO.IOException: // Error reading or writing information. + /// + /// + /// public static int WindowHeight { get; set; } = 25; // // Summary: @@ -223,6 +256,9 @@ namespace Terminal.Gui { // Exceptions: // T:System.IO.IOException: // Unable to get or set the input mode of the console input buffer. + /// + /// + /// public static bool TreatControlCAsInput { get; set; } // // Summary: @@ -231,6 +267,9 @@ namespace Terminal.Gui { // // Returns: // The width of the largest possible console window measured in columns. + /// + /// + /// public static int LargestWindowWidth { get; } // // Summary: @@ -239,6 +278,9 @@ namespace Terminal.Gui { // // Returns: // The height of the largest possible console window measured in rows. + /// + /// + /// public static int LargestWindowHeight { get; } // // Summary: @@ -256,6 +298,9 @@ namespace Terminal.Gui { // // T:System.IO.IOException: // Error reading or writing information. + /// + /// + /// public static int WindowLeft { get; set; } // // Summary: @@ -273,6 +318,9 @@ namespace Terminal.Gui { // // T:System.IO.IOException: // Error reading or writing information. + /// + /// + /// public static int WindowTop { get; set; } // // Summary: @@ -291,6 +339,9 @@ namespace Terminal.Gui { // // T:System.IO.IOException: // An I/O error occurred. + /// + /// + /// public static int CursorLeft { get; set; } // // Summary: @@ -309,6 +360,9 @@ namespace Terminal.Gui { // // T:System.IO.IOException: // An I/O error occurred. + /// + /// + /// public static int CursorTop { get; set; } // // Summary: @@ -327,6 +381,9 @@ namespace Terminal.Gui { // // T:System.IO.IOException: // An I/O error occurred. + /// + /// + /// public static int CursorSize { get; set; } // // Summary: @@ -341,6 +398,9 @@ namespace Terminal.Gui { // // T:System.IO.IOException: // An I/O error occurred. + /// + /// + /// public static bool CursorVisible { get; set; } // // Summary: @@ -362,6 +422,9 @@ namespace Terminal.Gui { // // T:System.IO.IOException: // An I/O error occurred. + /// + /// + /// public static string Title { get; set; } // // Summary: @@ -376,6 +439,9 @@ namespace Terminal.Gui { // // T:System.InvalidOperationException: // Standard input is redirected to a file instead of the keyboard. + /// + /// + /// public static bool KeyAvailable { get; } // // Summary: @@ -384,6 +450,9 @@ namespace Terminal.Gui { // // Returns: // true if NUM LOCK is turned on; false if NUM LOCK is turned off. + /// + /// + /// public static bool NumberLock { get; } // // Summary: @@ -392,6 +461,9 @@ namespace Terminal.Gui { // // Returns: // true if CAPS LOCK is turned on; false if CAPS LOCK is turned off. + /// + /// + /// public static bool CapsLock { get; } // // Summary: @@ -400,15 +472,11 @@ namespace Terminal.Gui { // // Returns: // true if input is redirected; otherwise, false. + /// + /// + /// public static bool IsInputRedirected { get; } - // - // Summary: - // Occurs when the System.ConsoleModifiers.Control modifier key (Ctrl) and either - // the System.ConsoleKey.C console key (C) or the Break key are pressed simultaneously - // (Ctrl+C or Ctrl+Break). - //public static event ConsoleCancelEventHandler CancelKeyPress; - // // Summary: // Plays the sound of a beep through the console speaker. @@ -417,6 +485,9 @@ namespace Terminal.Gui { // T:System.Security.HostProtectionException: // This method was executed on a server, such as SQL Server, that does not permit // access to a user interface. + /// + /// + /// public static void Beep () { throw new NotImplementedException (); @@ -441,6 +512,9 @@ namespace Terminal.Gui { // T:System.Security.HostProtectionException: // This method was executed on a server, such as SQL Server, that does not permit // access to the console. + /// + /// + /// public static void Beep (int frequency, int duration) { throw new NotImplementedException (); @@ -452,6 +526,9 @@ namespace Terminal.Gui { // Exceptions: // T:System.IO.IOException: // An I/O error occurred. + /// + /// + /// public static void Clear () { _buffer = new char [WindowWidth, WindowHeight]; @@ -497,6 +574,9 @@ namespace Terminal.Gui { // // T:System.IO.IOException: // An I/O error occurred. + /// + /// + /// public static void MoveBufferArea (int sourceLeft, int sourceTop, int sourceWidth, int sourceHeight, int targetLeft, int targetTop) { throw new NotImplementedException (); @@ -553,6 +633,9 @@ namespace Terminal.Gui { // T:System.IO.IOException: // An I/O error occurred. //[SecuritySafeCritical] + /// + /// + /// public static void MoveBufferArea (int sourceLeft, int sourceTop, int sourceWidth, int sourceHeight, int targetLeft, int targetTop, char sourceChar, ConsoleColor sourceForeColor, ConsoleColor sourceBackColor) { throw new NotImplementedException (); @@ -564,6 +647,9 @@ namespace Terminal.Gui { // // Returns: // The standard error stream. + /// + /// + /// public static Stream OpenStandardError () { throw new NotImplementedException (); @@ -583,6 +669,9 @@ namespace Terminal.Gui { // Exceptions: // T:System.ArgumentOutOfRangeException: // bufferSize is less than or equal to zero. + /// + /// + /// public static Stream OpenStandardError (int bufferSize) { throw new NotImplementedException (); @@ -602,6 +691,9 @@ namespace Terminal.Gui { // Exceptions: // T:System.ArgumentOutOfRangeException: // bufferSize is less than or equal to zero. + /// + /// + /// public static Stream OpenStandardInput (int bufferSize) { throw new NotImplementedException (); @@ -613,6 +705,9 @@ namespace Terminal.Gui { // // Returns: // The standard input stream. + /// + /// + /// public static Stream OpenStandardInput () { throw new NotImplementedException (); @@ -632,6 +727,9 @@ namespace Terminal.Gui { // Exceptions: // T:System.ArgumentOutOfRangeException: // bufferSize is less than or equal to zero. + /// + /// + /// public static Stream OpenStandardOutput (int bufferSize) { throw new NotImplementedException (); @@ -643,6 +741,9 @@ namespace Terminal.Gui { // // Returns: // The standard output stream. + /// + /// + /// public static Stream OpenStandardOutput () { throw new NotImplementedException (); @@ -659,6 +760,9 @@ namespace Terminal.Gui { // Exceptions: // T:System.IO.IOException: // An I/O error occurred. + /// + /// + /// public static int Read () { throw new NotImplementedException (); @@ -686,6 +790,9 @@ namespace Terminal.Gui { // The System.Console.In property is redirected from some stream other than the // console. //[SecuritySafeCritical] + /// + /// + /// public static ConsoleKeyInfo ReadKey (bool intercept) { if (MockKeyPresses.Count > 0) { @@ -695,6 +802,9 @@ namespace Terminal.Gui { } } + /// + /// + /// public static Stack MockKeyPresses = new Stack (); // @@ -713,6 +823,9 @@ namespace Terminal.Gui { // T:System.InvalidOperationException: // The System.Console.In property is redirected from some stream other than the // console. + /// + /// + /// public static ConsoleKeyInfo ReadKey () { throw new NotImplementedException (); @@ -735,6 +848,9 @@ namespace Terminal.Gui { // // T:System.ArgumentOutOfRangeException: // The number of characters in the next line of characters is greater than System.Int32.MaxValue. + /// + /// + /// public static string ReadLine () { throw new NotImplementedException (); @@ -751,6 +867,9 @@ namespace Terminal.Gui { // T:System.IO.IOException: // An I/O error occurred. //[SecuritySafeCritical] + /// + /// + /// public static void ResetColor () { BackgroundColor = _defaultBackgroundColor; @@ -781,6 +900,9 @@ namespace Terminal.Gui { // T:System.IO.IOException: // An I/O error occurred. //[SecuritySafeCritical] + /// + /// + /// public static void SetBufferSize (int width, int height) { throw new NotImplementedException (); @@ -810,6 +932,9 @@ namespace Terminal.Gui { // T:System.IO.IOException: // An I/O error occurred. //[SecuritySafeCritical] + /// + /// + /// public static void SetCursorPosition (int left, int top) { CursorLeft = left; @@ -832,6 +957,9 @@ namespace Terminal.Gui { // T:System.Security.SecurityException: // The caller does not have the required permission. //[SecuritySafeCritical] + /// + /// + /// public static void SetError (TextWriter newError) { throw new NotImplementedException (); @@ -852,6 +980,9 @@ namespace Terminal.Gui { // T:System.Security.SecurityException: // The caller does not have the required permission. //[SecuritySafeCritical] + /// + /// + /// public static void SetIn (TextReader newIn) { throw new NotImplementedException (); @@ -872,6 +1003,10 @@ namespace Terminal.Gui { // T:System.Security.SecurityException: // The caller does not have the required permission. //[SecuritySafeCritical] + /// + /// + /// + /// public static void SetOut (TextWriter newOut) { throw new NotImplementedException (); @@ -900,6 +1035,11 @@ namespace Terminal.Gui { // T:System.IO.IOException: // An I/O error occurred. //[SecuritySafeCritical] + /// + /// + /// + /// + /// public static void SetWindowPosition (int left, int top) { throw new NotImplementedException (); @@ -929,6 +1069,11 @@ namespace Terminal.Gui { // T:System.IO.IOException: // An I/O error occurred. //[SecuritySafeCritical] + /// + /// + /// + /// + /// public static void SetWindowSize (int width, int height) { throw new NotImplementedException (); @@ -945,6 +1090,10 @@ namespace Terminal.Gui { // Exceptions: // T:System.IO.IOException: // An I/O error occurred. + /// + /// + /// + /// public static void Write (string value) { throw new NotImplementedException (); @@ -962,6 +1111,10 @@ namespace Terminal.Gui { // Exceptions: // T:System.IO.IOException: // An I/O error occurred. + /// + /// + /// + /// public static void Write (object value) { throw new NotImplementedException (); @@ -980,6 +1133,10 @@ namespace Terminal.Gui { // T:System.IO.IOException: // An I/O error occurred. //[CLSCompliant (false)] + /// + /// + /// + /// public static void Write (ulong value) { throw new NotImplementedException (); @@ -997,6 +1154,10 @@ namespace Terminal.Gui { // Exceptions: // T:System.IO.IOException: // An I/O error occurred. + /// + /// + /// + /// public static void Write (long value) { throw new NotImplementedException (); @@ -1026,6 +1187,12 @@ namespace Terminal.Gui { // // T:System.FormatException: // The format specification in format is invalid. + /// + /// + /// + /// + /// + /// public static void Write (string format, object arg0, object arg1) { throw new NotImplementedException (); @@ -1043,6 +1210,10 @@ namespace Terminal.Gui { // Exceptions: // T:System.IO.IOException: // An I/O error occurred. + /// + /// + /// + /// public static void Write (int value) { throw new NotImplementedException (); @@ -1069,6 +1240,11 @@ namespace Terminal.Gui { // // T:System.FormatException: // The format specification in format is invalid. + /// + /// + /// + /// + /// public static void Write (string format, object arg0) { throw new NotImplementedException (); @@ -1087,12 +1263,24 @@ namespace Terminal.Gui { // T:System.IO.IOException: // An I/O error occurred. //[CLSCompliant (false)] + /// + /// + /// + /// public static void Write (uint value) { throw new NotImplementedException (); } //[CLSCompliant (false)] + /// + /// + /// + /// + /// + /// + /// + /// public static void Write (string format, object arg0, object arg1, object arg2, object arg3) { throw new NotImplementedException (); @@ -1119,6 +1307,11 @@ namespace Terminal.Gui { // // T:System.FormatException: // The format specification in format is invalid. + /// + /// + /// + /// + /// public static void Write (string format, params object [] arg) { throw new NotImplementedException (); @@ -1136,6 +1329,10 @@ namespace Terminal.Gui { // Exceptions: // T:System.IO.IOException: // An I/O error occurred. + /// + /// + /// + /// public static void Write (bool value) { throw new NotImplementedException (); @@ -1152,6 +1349,10 @@ namespace Terminal.Gui { // Exceptions: // T:System.IO.IOException: // An I/O error occurred. + /// + /// + /// + /// public static void Write (char value) { _buffer [CursorLeft, CursorTop] = value; @@ -1168,6 +1369,10 @@ namespace Terminal.Gui { // Exceptions: // T:System.IO.IOException: // An I/O error occurred. + /// + /// + /// + /// public static void Write (char [] buffer) { throw new NotImplementedException (); @@ -1199,6 +1404,12 @@ namespace Terminal.Gui { // // T:System.IO.IOException: // An I/O error occurred. + /// + /// + /// + /// + /// + /// public static void Write (char [] buffer, int index, int count) { throw new NotImplementedException (); @@ -1231,6 +1442,13 @@ namespace Terminal.Gui { // // T:System.FormatException: // The format specification in format is invalid. + /// + /// + /// + /// + /// + /// + /// public static void Write (string format, object arg0, object arg1, object arg2) { throw new NotImplementedException (); @@ -1248,6 +1466,10 @@ namespace Terminal.Gui { // Exceptions: // T:System.IO.IOException: // An I/O error occurred. + /// + /// + /// + /// public static void Write (decimal value) { throw new NotImplementedException (); @@ -1265,6 +1487,10 @@ namespace Terminal.Gui { // Exceptions: // T:System.IO.IOException: // An I/O error occurred. + /// + /// + /// + /// public static void Write (float value) { throw new NotImplementedException (); @@ -1282,6 +1508,10 @@ namespace Terminal.Gui { // Exceptions: // T:System.IO.IOException: // An I/O error occurred. + /// + /// + /// + /// public static void Write (double value) { throw new NotImplementedException (); @@ -1294,6 +1524,9 @@ namespace Terminal.Gui { // Exceptions: // T:System.IO.IOException: // An I/O error occurred. + /// + /// + /// public static void WriteLine () { throw new NotImplementedException (); @@ -1311,6 +1544,10 @@ namespace Terminal.Gui { // Exceptions: // T:System.IO.IOException: // An I/O error occurred. + /// + /// + /// + /// public static void WriteLine (float value) { throw new NotImplementedException (); @@ -1328,6 +1565,10 @@ namespace Terminal.Gui { // Exceptions: // T:System.IO.IOException: // An I/O error occurred. + /// + /// + /// + /// public static void WriteLine (int value) { throw new NotImplementedException (); @@ -1346,6 +1587,10 @@ namespace Terminal.Gui { // T:System.IO.IOException: // An I/O error occurred. //[CLSCompliant (false)] + /// + /// + /// + /// public static void WriteLine (uint value) { throw new NotImplementedException (); @@ -1363,6 +1608,10 @@ namespace Terminal.Gui { // Exceptions: // T:System.IO.IOException: // An I/O error occurred. + /// + /// + /// + /// public static void WriteLine (long value) { throw new NotImplementedException (); @@ -1381,6 +1630,10 @@ namespace Terminal.Gui { // T:System.IO.IOException: // An I/O error occurred. //[CLSCompliant (false)] + /// + /// + /// + /// public static void WriteLine (ulong value) { throw new NotImplementedException (); @@ -1398,6 +1651,10 @@ namespace Terminal.Gui { // Exceptions: // T:System.IO.IOException: // An I/O error occurred. + /// + /// + /// + /// public static void WriteLine (object value) { throw new NotImplementedException (); @@ -1415,6 +1672,10 @@ namespace Terminal.Gui { // Exceptions: // T:System.IO.IOException: // An I/O error occurred. + /// + /// + /// + /// public static void WriteLine (string value) { throw new NotImplementedException (); @@ -1441,6 +1702,11 @@ namespace Terminal.Gui { // // T:System.FormatException: // The format specification in format is invalid. + /// + /// + /// + /// + /// public static void WriteLine (string format, object arg0) { throw new NotImplementedException (); @@ -1473,12 +1739,27 @@ namespace Terminal.Gui { // // T:System.FormatException: // The format specification in format is invalid. + /// + /// + /// + /// + /// + /// + /// public static void WriteLine (string format, object arg0, object arg1, object arg2) { throw new NotImplementedException (); } //[CLSCompliant (false)] + /// + /// + /// + /// + /// + /// + /// + /// public static void WriteLine (string format, object arg0, object arg1, object arg2, object arg3) { throw new NotImplementedException (); @@ -1506,6 +1787,11 @@ namespace Terminal.Gui { // // T:System.FormatException: // The format specification in format is invalid. + /// + /// + /// + /// + /// public static void WriteLine (string format, params object [] arg) { throw new NotImplementedException (); @@ -1538,6 +1824,12 @@ namespace Terminal.Gui { // // T:System.IO.IOException: // An I/O error occurred. + /// + /// + /// + /// + /// + /// public static void WriteLine (char [] buffer, int index, int count) { throw new NotImplementedException (); @@ -1555,6 +1847,10 @@ namespace Terminal.Gui { // Exceptions: // T:System.IO.IOException: // An I/O error occurred. + /// + /// + /// + /// public static void WriteLine (decimal value) { throw new NotImplementedException (); @@ -1572,6 +1868,10 @@ namespace Terminal.Gui { // Exceptions: // T:System.IO.IOException: // An I/O error occurred. + /// + /// + /// + /// public static void WriteLine (char [] buffer) { throw new NotImplementedException (); @@ -1589,6 +1889,10 @@ namespace Terminal.Gui { // Exceptions: // T:System.IO.IOException: // An I/O error occurred. + /// + /// + /// + /// public static void WriteLine (char value) { throw new NotImplementedException (); @@ -1606,6 +1910,10 @@ namespace Terminal.Gui { // Exceptions: // T:System.IO.IOException: // An I/O error occurred. + /// + /// + /// + /// public static void WriteLine (bool value) { throw new NotImplementedException (); @@ -1635,6 +1943,12 @@ namespace Terminal.Gui { // // T:System.FormatException: // The format specification in format is invalid. + /// + /// + /// + /// + /// + /// public static void WriteLine (string format, object arg0, object arg1) { throw new NotImplementedException (); @@ -1652,6 +1966,10 @@ namespace Terminal.Gui { // Exceptions: // T:System.IO.IOException: // An I/O error occurred. + /// + /// + /// + /// public static void WriteLine (double value) { throw new NotImplementedException (); diff --git a/Terminal.Gui/ConsoleDrivers/MockDriver/MockDriver.cs b/Terminal.Gui/ConsoleDrivers/MockDriver/MockDriver.cs index c236cd0b9..8442b5c29 100644 --- a/Terminal.Gui/ConsoleDrivers/MockDriver/MockDriver.cs +++ b/Terminal.Gui/ConsoleDrivers/MockDriver/MockDriver.cs @@ -11,9 +11,18 @@ using System.Threading; using NStack; namespace Terminal.Gui { + /// + /// Implements a mock ConsoleDriver for unit testing + /// public class MockDriver : ConsoleDriver, IMainLoopDriver { int cols, rows; + /// + /// + /// public override int Cols => cols; + /// + /// + /// public override int Rows => rows; // The format is rows, columns and 3 values on the last column: Rune, Attribute and Dirty Flag @@ -40,6 +49,9 @@ namespace Terminal.Gui { static bool sync = false; + /// + /// + /// public MockDriver () { cols = MockConsole.WindowWidth; @@ -50,6 +62,11 @@ namespace Terminal.Gui { bool needMove; // Current row, and current col, tracked by Move/AddCh only int ccol, crow; + /// + /// + /// + /// + /// public override void Move (int col, int row) { ccol = col; @@ -67,6 +84,10 @@ namespace Terminal.Gui { } + /// + /// + /// + /// public override void AddRune (Rune rune) { if (Clip.Contains (ccol, crow)) { @@ -91,12 +112,19 @@ namespace Terminal.Gui { UpdateScreen (); } + /// + /// + /// + /// public override void AddStr (ustring str) { foreach (var rune in str) AddRune (rune); } + /// + /// + /// public override void End () { MockConsole.ResetColor (); @@ -109,7 +137,10 @@ namespace Terminal.Gui { return new Attribute () { value = ((((int)f) & 0xffff) << 16) | (((int)b) & 0xffff) }; } - + /// + /// + /// + /// public override void Init (Action terminalResized) { Colors.TopLevel = new ColorScheme (); @@ -180,6 +211,12 @@ namespace Terminal.Gui { //MockConsole.Clear (); } + /// + /// + /// + /// + /// + /// public override Attribute MakeAttribute (Color fore, Color back) { return MakeColor ((ConsoleColor)fore, (ConsoleColor)back); @@ -200,6 +237,9 @@ namespace Terminal.Gui { } } + /// + /// + /// public override void UpdateScreen () { int rows = Rows; @@ -219,6 +259,9 @@ namespace Terminal.Gui { } } + /// + /// + /// public override void Refresh () { int rows = Rows; @@ -250,24 +293,40 @@ namespace Terminal.Gui { MockConsole.CursorLeft = savedCol; } + /// + /// + /// public override void UpdateCursor () { // } + /// + /// + /// public override void StartReportingMouseMoves () { } + /// + /// + /// public override void StopReportingMouseMoves () { } + /// + /// + /// public override void Suspend () { } int currentAttribute; + /// + /// + /// + /// public override void SetAttribute (Attribute c) { currentAttribute = c.value; @@ -351,6 +410,14 @@ namespace Terminal.Gui { KeyModifiers keyModifiers = new KeyModifiers (); + /// + /// + /// + /// + /// + /// + /// + /// public override void PrepareToRun (MainLoop mainLoop, Action keyHandler, Action keyDownHandler, Action keyUpHandler, Action mouseHandler) { // Note: Net doesn't support keydown/up events and thus any passed keyDown/UpHandlers will never be called @@ -363,20 +430,36 @@ namespace Terminal.Gui { }; } + /// + /// + /// + /// + /// public override void SetColors (ConsoleColor foreground, ConsoleColor background) { throw new NotImplementedException (); } + /// + /// + /// + /// + /// public override void SetColors (short foregroundColorId, short backgroundColorId) { throw new NotImplementedException (); } + /// + /// + /// public override void CookMouse () { } + /// + /// + /// public override void UncookMouse () { } @@ -384,6 +467,10 @@ namespace Terminal.Gui { AutoResetEvent keyReady = new AutoResetEvent (false); AutoResetEvent waitForProbe = new AutoResetEvent (false); ConsoleKeyInfo? windowsKeyResult = null; + + /// + /// + /// public Action WindowsKeyPressed; MainLoop mainLoop;