Skip to content

Add support for DECSCUSR (Set Cursor Style)#21

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

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

Conversation

@reubeno
Copy link
Copy Markdown

@reubeno reubeno commented Dec 14, 2025

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

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