Skip to content

screen/vte: add cursor style support via DECSCUSR (CSI Ps SP q) - #58

Merged
kdj0c merged 1 commit into
kmscon:mainfrom
underscoreevelyn:decscusr
Jul 24, 2026
Merged

screen/vte: add cursor style support via DECSCUSR (CSI Ps SP q)#58
kdj0c merged 1 commit into
kmscon:mainfrom
underscoreevelyn:decscusr

Conversation

@underscoreevelyn

Copy link
Copy Markdown
Contributor

Parse DECSCUSR escape sequences in vte and keep track of the cursor style in screen.

The idea is for a consumer (i.e. kmscon) to query the cursor style via tsm_screen_get_cursor_style when rendering and decide what to do from there, similarly to how one might query the TSM_SCREEN_HIDE_CURSOR flag.

@underscoreevelyn
underscoreevelyn force-pushed the decscusr branch 2 times, most recently from 36c4029 to 66ba802 Compare July 19, 2026 03:58
Comment thread src/tsm/libtsm.sym
LIBTSM_4_6 {
global:
tsm_screen_draw2;
tsm_screen_get_cursor_style;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LIBTSM_4_6 is already released.

so you should add

LIBTSM_4_7 {
global:
   tsm_screen_get_cursor_style;
   tsm_screen_set_cursor_style;
} LIBTSM_4_6

@kdj0c

kdj0c commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

It looks good to me.
Just fix the small issue in libtsm.sym and I will merge it.

Thanks for your contribution.

Parse DECSCUSR escape sequences in vte and keep track of the cursor
style in screen.
@underscoreevelyn

Copy link
Copy Markdown
Contributor Author

That's my bad, should be good now

@kdj0c
kdj0c merged commit 8a40f0b into kmscon:main Jul 24, 2026
2 checks passed
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.

2 participants