Skip to content

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

Open
KacperLa wants to merge 2 commits into
doy:mainfrom
KacperLa:add_HPA_REP
Open

Adding two new escape sequances to render a TUI correctly. #23
KacperLa wants to merge 2 commits into
doy: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
@KacperLa

Copy link
Copy Markdown
Author

Bump

Junyi-99 pushed a commit to Junyi-99/vt100-rust that referenced this pull request May 29, 2026
…ast printed character

(cherry picked from commit da2aa9e)
Upstream-PR: doy#23 by @KacperLa
Junyi-99 pushed a commit to Junyi-99/vt100-rust that referenced this pull request May 29, 2026
(cherry picked from commit 6a45351)
Upstream-PR: doy#23 by @KacperLa
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