Browse Source

Fix a bug which was sending the terminator to the mainloop.

BDisp 9 months ago
parent
commit
64ad1a9901
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Terminal.Gui/ConsoleDrivers/WindowsDriver.cs

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

@@ -974,6 +974,8 @@ internal class WindowsConsole
                                     {
                                         seqReqStatus.AnsiRequest.Response = ansiSequence.ToString ();
                                         seqReqStatus.AnsiRequest.RaiseResponseFromInput (seqReqStatus.AnsiRequest, seqReqStatus.AnsiRequest.Response);
+                                        // Clear the terminator for not be enqueued
+                                        inputRecord = default (InputRecord);
                                     }
                                 }