Skip to content

Fix panic messages being printed in raw mode - #118

Merged
itsjunetime merged 1 commit into
itsjunetime:mainfrom
maxdexh:fix-panic-messages
Nov 26, 2025
Merged

Fix panic messages being printed in raw mode#118
itsjunetime merged 1 commit into
itsjunetime:mainfrom
maxdexh:fix-panic-messages

Conversation

@maxdexh

@maxdexh maxdexh commented Nov 26, 2025

Copy link
Copy Markdown
Collaborator

While the panic hook resets the terminal to bring it out of the alternate screen, it does not disable raw mode.
On linux, which uses \n for newlines, text after a newline gets indented because the text cursor's column is not reset (in raw mode you need \r\n for this, so this probably looks fine on windows)

@itsjunetime

Copy link
Copy Markdown
Owner

Ah, yes thank you for this

@itsjunetime
itsjunetime merged commit 74def1c into itsjunetime:main Nov 26, 2025
1 check passed
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