-
Notifications
You must be signed in to change notification settings - Fork 9k
Address feedback from #17510 #17645
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
Conversation
src/host/_stream.cpp
Outdated
|
|
||
| static constexpr std::array<std::string_view, 2> mapping{ { | ||
| { "\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.
|
@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_overwritehack into the STL.Writefunctions for xterm's window API.VtIo::Writeris because we used it in a ternary in
CONSOLE_INFORMATION.Ternaries are like if branches with hidden move assignments.
Instead, we simply construct each
Writerin place.No ternary = No move = No problems in life.
The best benefit of this is that this makes calling
GetVtWritera hundred times cheaper.
Otherwise, I still need to extend a few tests in
VtIoTests,but I'm planning to do that later.