Browse Source

Avoids exit after read the response with empty key.

BDisp 8 months ago
parent
commit
ce0183fea5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Terminal.Gui/ConsoleDrivers/WindowsDriver/WindowsConsole.cs

+ 2 - 0
Terminal.Gui/ConsoleDrivers/WindowsDriver/WindowsConsole.cs

@@ -123,6 +123,8 @@ internal class WindowsConsole
                                         seqReqStatus.AnsiRequest.RaiseResponseFromInput (ansiSequence.ToString ());
                                         // Clear the terminator for not be enqueued
                                         inputRecord = default (InputRecord);
+                                        // Clear numberEventsRead to not exit
+                                        numberEventsRead = 0;
                                         // Clear the ansiSequence to avoid insert another Esc character
                                         ansiSequence.Clear ();
                                     }