Skip to content
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

Merged
merged 4 commits into from
Aug 7, 2024
Merged

Address feedback from #17510 #17645

merged 4 commits into from
Aug 7, 2024

Conversation

lhecker
Copy link
Member

@lhecker lhecker commented Aug 1, 2024

  • Added/changed comments as mentioned.
  • Improved the ugly resize_and_overwrite hack into the STL.
  • Add Write functions for xterm's window API.
  • The only reason we needed a move operator for 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.

@lhecker lhecker added the Area-CodeHealth Issues related to code cleanliness, linting, rules, warnings, errors, static analysis, etc. label Aug 1, 2024
@@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

while you're here

Suggested change
{ "\033[?1004h" } // DECSET_FOCUS: Focus Event Mode
{ "\x1b[?1004h" } // DECSET_FOCUS: Focus Event Mode

Copy link
Member Author

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\\");
Copy link
Member Author

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

This comment was marked as spam.

@lhecker
Copy link
Member Author

lhecker commented Aug 2, 2024

@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.

@lhecker lhecker merged commit f6a4155 into main Aug 7, 2024
20 checks passed
@lhecker lhecker deleted the dev/lhecker/17510-feedback branch August 7, 2024 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-CodeHealth Issues related to code cleanliness, linting, rules, warnings, errors, static analysis, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Known unresolved issues after removing VtEngine / adding VT passthrough
4 participants