Skip to content

Enable VT escapes at startup and translate LF to CRLF - #14

Open
wikifur wants to merge 1 commit into
fennec-support:masterfrom
wikifur:windows-console-vt-crlf-fix
Open

wikifur wants to merge 1 commit into
fennec-support:masterfrom
wikifur:windows-console-vt-crlf-fix

Conversation

@wikifur

@wikifur wikifur commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

toiletline's raw mode turns off newline auto-return, so a bare \n only moves
the cursor down, and write_fd sends bare \n, which left the cursor in the
middle of the line. Emit \r\n for console handles.

Also conhost has VT processing off, so escape sequences were printed as garbage.
Enable it on stdout and stderr at startup.

Before After
crazy ahh prompt output gucchi premium prompt output

conhost has VT processing off, so escape sequences from
the greeting and diagnostics printed as garbage. Enable it on
stdout and stderr at startup.

toiletline's raw mode turns off newline auto-return, so a bare \n
only moves the cursor down, and `write_fd` sends bare \n, which left
the cursor in the middle of the line. Emit \r\n for console handles.
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.

1 participant