-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor TerminalInput to return strings (#15611)
`TerminalInput` is configurable, but almost entirely state-less. As such it isn't helpful that it emits its output via a callback. It makes tracing the flow of data harder purely from reading the code and also raises uncertainty about when `TerminalInput` may generate output. This commit makes it more robust by having `TerminalInput` simply return its data. Furthermore, it returns that data as a string instead of converting back and forth between text and `IInputEvent`. This change will help me make conhost's `InputBuffer` implementation leaner and help me confidently make more difficult changes to it with the goal to improve our Unicode support/correctness. ## Validation Steps Performed * Windows Terminal produces correct results with `showkey -a` ✅
- Loading branch information
Showing
14 changed files
with
656 additions
and
1,072 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1031,6 +1031,7 @@ LOGFONT | |
LOGFONTA | ||
LOGFONTW | ||
logissue | ||
losslessly | ||
loword | ||
lparam | ||
LPCCH | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.