[PR #4938] Add support for Ctrl+# keys #26034

Open
opened 2026-01-31 09:13:31 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/4938

State: closed
Merged: Yes


Summary of the Pull Request

Fixes the Ctrl+Num keys in both conhost and the Terminal. These keys are supposed to be mapped to specific characters according to this doc. Now we actually handle them correctly.

PR Checklist

Validation Steps Performed

  • Ran test
  • tested in gnome-terminal with showkeys -a
  • tested in conhost with showkeys -a
  • tested in Windows Terminal with showkeys -a
**Original Pull Request:** https://github.com/microsoft/terminal/pull/4938 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request Fixes the <kbd>Ctrl+Num</kbd> keys in both conhost and the Terminal. These keys are supposed to be mapped to specific characters according to [this doc](https://vt100.net/docs/vt220-rm/table3-5.html). Now we actually handle them correctly. ## PR Checklist * [x] Closes #3507 * [x] I work here * [x] Tests added/passed * [n/a] Requires documentation to be updated ## Validation Steps Performed * Ran test * tested in `gnome-terminal` with `showkeys -a` * tested in conhost with `showkeys -a` * tested in Windows Terminal with `showkeys -a`
claunia added the pull-request label 2026-01-31 09:13:31 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#26034