Browse Source

Fix a bug where for e.g. two 'c' terminator were included in the response.

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

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

@@ -117,6 +117,7 @@ internal class WindowsConsole
 
 
                                     lock (seqReqStatus!.AnsiRequest._responseLock)
                                     lock (seqReqStatus!.AnsiRequest._responseLock)
                                     {
                                     {
+                                        readingSequence=false;
                                         raisedResponse = true;
                                         raisedResponse = true;
                                         seqReqStatus.AnsiRequest.RaiseResponseFromInput (ansiSequence.ToString ());
                                         seqReqStatus.AnsiRequest.RaiseResponseFromInput (ansiSequence.ToString ());
                                         // Clear the terminator for not be enqueued
                                         // Clear the terminator for not be enqueued