-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Terminal should support libtickit style input #8719
Copy link
Copy link
Open
Labels
Area-InputRelated to input processing (key presses, mouse, etc.)Related to input processing (key presses, mouse, etc.)Help WantedWe encourage anyone to jump in on these.We encourage anyone to jump in on these.Issue-TaskIt's a feature request, but it doesn't really need a major design.It's a feature request, but it doesn't really need a major design.Product-ConptyFor console issues specifically related to conptyFor console issues specifically related to conpty
Milestone
Metadata
Metadata
Assignees
Labels
Area-InputRelated to input processing (key presses, mouse, etc.)Related to input processing (key presses, mouse, etc.)Help WantedWe encourage anyone to jump in on these.We encourage anyone to jump in on these.Issue-TaskIt's a feature request, but it doesn't really need a major design.It's a feature request, but it doesn't really need a major design.Product-ConptyFor console issues specifically related to conptyFor console issues specifically related to conpty
Environment
Steps to reproduce
Open a new tab with a shell from ubuntu 20.04, run
showkey -a, then hitbackspace, thenshift+backspaceetc, WT sends:0x7fforbackspace0x08forctrl+backspace0x7fforshift+backspace0x7fforctrl+shift+backspace(hit
ctrl+dto end theshowkey -asession)Expected behavior
Expecting to be able to distinguish modifier + backspace key presses.
I like to make it so that
ctrl+backspacedeletes previous word, andctrl+shift+backspacedeletes everything preceding the cursor. I do so via~/.inputrc, which works on most VT terminals:I was able to make it work easily by adding this to my
settings.jsonin WT:Actual behavior
WT does not seem to distinguish modifier + backspace key presses (at least not in WSL).