Skip to content

Adding two new escape sequances to render a TUI correctly. #23

Open
KacperLa wants to merge 2 commits intodoy:mainfrom
KacperLa:add_HPA_REP
Open

Adding two new escape sequances to render a TUI correctly. #23
KacperLa wants to merge 2 commits intodoy:mainfrom
KacperLa:add_HPA_REP

Conversation

@KacperLa
Copy link
Copy Markdown

This pull request adds support for two new VT100 control sequences: HPA (Horizontal Position Absolute, CSI ) and REP (Repeat last printed character, CSI b). It also introduces internal state tracking for the last printed character to implement the REP sequence. Tests for both new sequences are included.

Opencode is wacky, and to be rendered correctly with vt100 I had to this otherwise the output was a complete mess.

@KacperLa KacperLa changed the title I had to add a two new escape sequances to render a TUI correctly. Adding a two new escape sequances to render a TUI correctly. Jan 22, 2026
@KacperLa KacperLa changed the title Adding a two new escape sequances to render a TUI correctly. Adding two new escape sequances to render a TUI correctly. Jan 22, 2026
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