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

Shell+LibLine: Some nice fixes #25404

Merged
merged 3 commits into from
Nov 18, 2024
Merged

Conversation

alimpfard
Copy link
Member

No description provided.

This fixes a rendering issue where the first line of the prompt
overwrites a line with "% ...", which leaves the "%" in the terminal
if the prompt starts with "\n".
@github-actions github-actions bot added the 👀 pr-needs-review PR needs review from a maintainer or community member label Nov 16, 2024
@@ -2106,7 +2112,7 @@ Result<Vector<size_t, 2>, Editor::Error> Editor::vt_dsr()
if (m_input_error.has_value())
return m_input_error.value();

fputs("\033[6n", stderr);
fputs("\033[6n\n", stderr);
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this in here intentionally? Looks somewhat unrelated to the commit message from a distance.

Copy link
Member Author

Choose a reason for hiding this comment

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

It's intentional, should be a separate commit though, will fix.

Copy link
Contributor

@nico nico left a comment

Choose a reason for hiding this comment

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

nice

The terminal won't be in any known state, so handling these events
immediately is likely to cause desync or errors.
This generally yields nicer results around the bottom row of the
terminal.
@alimpfard alimpfard merged commit 14b6e5b into SerenityOS:master Nov 18, 2024
12 checks passed
@github-actions github-actions bot removed the 👀 pr-needs-review PR needs review from a maintainer or community member label Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants