Skip to content

Add support for DECSCUSR (Set Cursor Style) - #21

Open
reubeno wants to merge 1 commit into
doy:mainfrom
reubeno:cursor-styles
Open

Add support for DECSCUSR (Set Cursor Style)#21
reubeno wants to merge 1 commit into
doy:mainfrom
reubeno:cursor-styles

Conversation

@reubeno

@reubeno reubeno commented Dec 14, 2025

Copy link
Copy Markdown

This set of changes adds support for DECSCUSR (CSI Ps SP q):

  • ESC [ 0 ␣ q - terminal default
  • ESC [ 1 ␣ q - blinking block
  • ESC [ 2 ␣ q - steady block
  • ESC [ 3 ␣ q - blinking underline
  • ESC [ 4 ␣ q - steady underline
  • ESC [ 5 ␣ q - blinking bar
  • ESC [ 6 ␣ q - steady bar

I've tried to model the code changes on how mouse modes are currently implemented, as this seemed like a natural analogue. I see that cursor hiding is represented as mode bits, but this didn't seem to be fit well with that.

(This is my first contribution to this project, so I'd appreciate any pointers for additional tests I should be authoring or other consideration. Thanks!)


References

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