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

fix: we don't initialize the terminal when using a nilRenderer #1120

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

aymanbagabas
Copy link
Member

Otherwise, a raw terminal will mess up the output. This is because a raw terminal disables termios OPOST mode which converts newlines to \r\n to reset the cursor to the beginning of the screen on new lines.

CC/ @cwarden

Fixes: #1069

Otherwise, a raw terminal will mess up the output. This is because a raw
terminal disables termios OPOST mode which converts newlines to `\r\n`
to reset the cursor to the beginning of the screen on new lines.
Copy link
Member

@meowgorithm meowgorithm left a comment

Choose a reason for hiding this comment

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

Niiiiice

@aymanbagabas aymanbagabas merged commit c69bd97 into main Aug 29, 2024
18 checks passed
@aymanbagabas aymanbagabas deleted the nil-raw branch August 29, 2024 17:41
cwarden referenced this pull request in charmbracelet/x Sep 4, 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.

tui-daemon-combo example output is not aligned correctly in daemon mode
2 participants