Ctrl-/ does not get sent to Windows Terminal #23643

Closed
opened 2026-01-31 08:48:02 +00:00 by claunia · 3 comments
Owner

Originally created by @trajano on GitHub (Sep 25, 2025).

Windows Terminal version

1.23.12371.0

Windows build number

Microsoft Windows [Version 10.0.26220.6690]

Other Software

micro

Steps to reproduce

I am trying to set up a key binding with micro and they have a mode called raw which tracks what keys get sent.

  1. scoop install micro
  2. micro
  3. CtrlE
  4. raw
  5. Press Ctrl/

Expected Behavior

EventKey: Ctrl-/

appears

Actual Behavior

EventKey: Ctrl-/

does not appear

Originally created by @trajano on GitHub (Sep 25, 2025). ### Windows Terminal version 1.23.12371.0 ### Windows build number Microsoft Windows [Version 10.0.26220.6690] ### Other Software micro ### Steps to reproduce I am trying to set up a key binding with `micro` and they have a mode called `raw` which tracks what keys get sent. 1. `scoop install micro` 2. `micro` 3. <kbd>Ctrl</kbd><kbd>E</kbd> 4. `raw` 5. Press <kbd>Ctrl</kbd><kbd>/</kbd> ### Expected Behavior > EventKey: Ctrl-/ appears ### Actual Behavior > EventKey: Ctrl-/ does not appear
claunia added the Needs-TriageIssue-Bug labels 2026-01-31 08:48:02 +00:00
Author
Owner

@DHowett commented on GitHub (Sep 25, 2025):

Interesting. PowerShell seems to be able to read it.

PS> [console]::readkey()

KeyChar  Key Modifiers
-------  --- ---------
       Oem2   Control

as does showkey -a from Linux:

(ultraviolet) ~ % showkey -a

Press any keys - Ctrl-D will terminate this program

^_       31 0037 0x1f

The documented VT-100 encoding of Ctrl+/ (and Ctrl+Shift+/ or Ctrl+?) is \x1F. That tracks with the behavior you see when you clear bits 6-8 and set bit 5 on 0x2F / or 0x3F ? (which is effectively what the Control key does).

If micro is unable to read it, I suspect an issue on their end.

@DHowett commented on GitHub (Sep 25, 2025): Interesting. PowerShell seems to be able to read it. ``` PS> [console]::readkey() KeyChar Key Modifiers ------- --- --------- Oem2 Control ``` as does `showkey -a` from Linux: ``` (ultraviolet) ~ % showkey -a Press any keys - Ctrl-D will terminate this program ^_ 31 0037 0x1f ``` The documented VT-100 encoding of <kbd>Ctrl+/</kbd> (and <kbd>Ctrl+Shift+/</kbd> or <kbd>Ctrl+?</kbd>) is `\x1F`. That tracks with the behavior you see when you clear bits 6-8 and set bit 5 on `0x2F /` or `0x3F ?` (which is effectively what the Control key does). If micro is unable to read it, I suspect an issue on their end.
Author
Owner

@trajano commented on GitHub (Sep 26, 2025):

Thanks it's interesting that git bash which runs the micro does that, I wonder if I run micro in powershell if it would do that.

It doesn't it may be something in micro as well.

@trajano commented on GitHub (Sep 26, 2025): Thanks it's interesting that git bash which runs the micro does that, I wonder if I run micro in powershell if it would do that. It doesn't it may be something in `micro` as well.
Author
Owner

@trajano commented on GitHub (Sep 26, 2025):

I think it may be something to with git bash now... SSH to a linux device with micro seems to get it to work.

showkey -a on Ubuntu in WSL works as expected as well. So far it's coming down to git bash, but I am going to try it without oh-my-posh

Without oh-my-posh so it's the default prompt it doesn't work either with git bash, it may be something that gets set on the terminal

@trajano commented on GitHub (Sep 26, 2025): I think it may be something to with git bash now... SSH to a linux device with micro seems to get it to work. `showkey -a` on Ubuntu in WSL works as expected as well. So far it's coming down to git bash, but I am going to try it without oh-my-posh Without oh-my-posh so it's the default prompt it doesn't work either with git bash, it may be something that gets set on the terminal
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23643