microsoft / microsoft/terminal

sendInput sending no input on `\u001b\u007f`

Open
#16,889 6 comments 1 reaction 1 assignee Claimed by @zadjii-msft View on GitHub
Issue-Bug Needs-Tag-Fix Product-Terminal
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

### Windows Terminal version

1.19.10573.0

### Windows build number

10.0.22631.0

### Other Software

_No response_

### Steps to reproduce

Define actions using:
```
{
"command":
{
// This send Alt + Backspace which deletes the last word.
// However on powershell in windows this is binded to `ShellBackwardKillWord`
// which deletes full word without caring about delimiters
// Can be fixed using Set-PSReadLineKeyHandler -Function BackwardKillWord -Key Alt+Backspace

"action": "sendInput",
"input": "\u001b\u007f"
},
"keys": "ctrl+backspace"
},
```

In a linux shell (WSL or over SSH), run `showkey -a`, no input is received when pressing `Ctrl+Backspace`.

### Expected Behavior

Output of `showkey -a` should show something like below when pressing `Ctrl+Backspace`.
```
27 0033 0x1b
8 0010 0x7f
```

### Actual Behavior

Output of `showkey -a` is empty when pressing `Ctrl+Backspace`.
```[tasklist]
### Tasks
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.