Skip to content

Add support for VT200 mouse tracking#27

Merged
kdj0c merged 1 commit intokmscon:mainfrom
caramelli:main
Mar 10, 2026
Merged

Add support for VT200 mouse tracking#27
kdj0c merged 1 commit intokmscon:mainfrom
caramelli:main

Conversation

@caramelli
Copy link
Copy Markdown
Contributor

This change adds support for VT200 mouse tracking mode, allowing applications to enable mouse reporting using:

ESC [?1000h

such as ncurses-based terminal applications like htop.

In this mode, mouse reports are generated on both button press and release events, modifier key (shift, ctrl, meta) information is also sent.
The X10 legacy mode reports mouse position only on button press as historically defined.

@kdj0c
Copy link
Copy Markdown
Contributor

kdj0c commented Mar 7, 2026

Thanks for your contribution.

It looks good to me, let me a few days to test it, and I will merge it.

@kdj0c kdj0c merged commit 9c84314 into kmscon:main Mar 10, 2026
2 checks passed
@kdj0c
Copy link
Copy Markdown
Contributor

kdj0c commented Mar 10, 2026

Thanks a lot, it makes htop experience much better.

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