microsoft / microsoft/terminal

Cannot create a binding to output Esc only

Open
#17,712 1 comment 0 reactions 0 assignees View on GitHub
Area-VT Issue-Bug Product-Conpty
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

### Windows Terminal version

_No response_

### Windows build number

_No response_

### Other Software

_No response_

### Steps to reproduce

Try to create a new binding to output Esc character (\x1B)

### Expected Behavior

Pressing the binding should send Esc character to the app

### Actual Behavior

Nothing gets sent, which in WSL can be confirmed by running `cat` program.
Interestingly, it is possible to create a binding that sends Escape Sequences, e.g. `Alt-q` (\x1Bq), but not the Esc itself.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the binding in Windows Terminal and verify the behavior with the `cat` program in WSL. Trace the binding path for outputting `\x1B`, compare it with the working `Alt-q` escape sequence, and consider the issue done when pressing the Esc-only binding sends the character to the app.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.