microsoft / microsoft/terminal
sendInput sending no input on `\u001b\u007f`
- 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
Assessment
This issue has not been assessed yet.