-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Address feedback from #17510 #17645
Address feedback from #17510 #17645
Conversation
src/host/_stream.cpp
Outdated
@@ -368,6 +372,7 @@ void WriteCharsVT(SCREEN_INFORMATION& screenInfo, const std::wstring_view& str) | |||
{ "\x1b[?1004h\x1b[?9001h" }, // RIS: Focus Event Mode + Win32 Input Mode | |||
{ "\033[?1004h" } // DECSET_FOCUS: Focus Event Mode |
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.
while you're here
{ "\033[?1004h" } // DECSET_FOCUS: Focus Event Mode | |
{ "\x1b[?1004h" } // DECSET_FOCUS: Focus Event Mode |
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.
Right, I can also fix the BEL vs ST thing too.
{ | ||
WriteUTF8("\x1b]0;"); | ||
WriteUTF16StripControlChars(title); | ||
WriteUTF8("\x1b\\"); |
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.
Here's the ST.
This comment was marked as spam.
This comment was marked as spam.
@mominshaikhdevs Could you either explain why you keep linking #1765, or stop doing so? 2 words are insufficient for me to understand what you're trying to say. That issue hasn't been fixed either. |
resize_and_overwrite
hack into the STL.Write
functions for xterm's window API.VtIo::Writer
is because we used it in a ternary in
CONSOLE_INFORMATION
.Ternaries are like if branches with hidden move assignments.
Instead, we simply construct each
Writer
in place.No ternary = No move = No problems in life.
The best benefit of this is that this makes calling
GetVtWriter
a hundred times cheaper.
Otherwise, I still need to extend a few tests in
VtIoTests
,but I'm planning to do that later.