-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for the S8C1T/S7C1T escape sequences #17945
Changes from 4 commits
dd829e2
a4067fc
1118f54
ed33afd
8e191f8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,7 +62,7 @@ void InteractDispatch::WriteString(const std::wstring_view string) | |
{ | ||
if (!string.empty()) | ||
{ | ||
const auto codepage = _api.GetConsoleOutputCP(); | ||
const auto codepage = _api.GetOutputCodePage(); | ||
InputEventQueue keyEvents; | ||
Comment on lines
-65
to
66
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I forgot to mention that I noticed we're using the output code page here to generate input events, which seemed wrong to me. Was that intentional? That codepage is only used if the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's an excellent question. Personally I'm not sure, though I suspect that it was an oversight.
|
||
|
||
for (const auto& wch : string) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason why we should check this outside the two set functions? I think it may be safer if it was inside them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It just seemed a little more efficient, but that's not really important here. I've moved the checks back into the
DoSrvSet*
functions now.