Ctrl arrow keys don't behave as expected #132

Open
opened 2026-01-30 21:43:23 +00:00 by claunia · 0 comments
Owner

Originally created by @bitcrazed on GitHub (Feb 16, 2018).

From @Karasuni on May 25, 2017 16:19

Using Bash on Windows the ctrl+arrow keys don't behave as expected. Instead of navigating per word it instead prints a few characters:

  • Ctrl + UP => ;5A
  • Ctrl + DOWN => ;5B
  • Ctrl + LEFT => ;5C
  • Ctrl + RIGHT => ;5D

The issue also appears in tmux when trying to resize te terminal using Oh My Tmux command Ctrl+A + arrow key

Copied from original issue: Microsoft/WSL#2153

Originally created by @bitcrazed on GitHub (Feb 16, 2018). _From @Karasuni on May 25, 2017 16:19_ Using Bash on Windows the ctrl+arrow keys don't behave as expected. Instead of navigating per word it instead prints a few characters: * Ctrl + UP => `;5A` * Ctrl + DOWN => `;5B` * Ctrl + LEFT => `;5C` * Ctrl + RIGHT => `;5D` The issue also appears in `tmux` when trying to resize te terminal using [Oh My Tmux](https://github.com/gpakosz/.tmux) command `Ctrl+A + arrow key` _Copied from original issue: Microsoft/WSL#2153_
claunia added the Product-ConhostIssue-BugArea-VTNeeds-Author-Feedback labels 2026-01-30 21:43:23 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#132