소스 검색

Fix ansiSequence bug not being clear after finish get the response which were adding a Esc character if pressed alone.

BDisp 9 달 전
부모
커밋
6bac65244c
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      Terminal.Gui/ConsoleDrivers/WindowsDriver/WindowsConsole.cs

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

@@ -117,11 +117,13 @@ internal class WindowsConsole
 
                                     lock (seqReqStatus!.AnsiRequest._responseLock)
                                     {
-                                        readingSequence=false;
+                                        readingSequence = false;
                                         raisedResponse = true;
                                         seqReqStatus.AnsiRequest.RaiseResponseFromInput (ansiSequence.ToString ());
                                         // Clear the terminator for not be enqueued
                                         inputRecord = default (InputRecord);
+                                        // Clear the ansiSequence to avoid insert another Esc character
+                                        ansiSequence.Clear ();
                                     }
                                 }