Workarounds for broken terminfo that notates Backspace as Ctrl-H
There are many (most?) broken terminfo databases that claim that the Backspace key sends the ASCII BS byte, despite the fact that the terminal is actually observed to send ASCII DEL instead. This confuses the key input parser on the event that a user types a real Ctrl-H combination, because the terminal will probably represent that as a single BS byte, thus leading the parser to presume a Backspace key.
Some thought needs to be put in to how this will work in practice.
Blueprint information
- Status:
- Complete
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- Paul "LeoNerd" Evans
- Direction:
- Needs approval
- Assignee:
- None
- Definition:
- Discussion
- Series goal:
- None
- Implementation:
- Implemented
- Milestone target:
- v0.3
- Started by
- Paul "LeoNerd" Evans
- Completed by
- Paul "LeoNerd" Evans
Related branches
Related bugs
Sprints
Whiteboard
(legacy) vim and tmux both solve this by ignoring what terminfo has to say on the subject of `key_backspace` and instead asking `termios(3)` what it has for `VERASE`. Maybe we should do this?
--
revno: 658
committer: Paul "LeoNerd" Evans <email address hidden>
branch nick: libtickit
timestamp: Sat 2019-02-23 16:03:55 +0000
message:
Don't indiscriminantly set TERMKEY_
Work Items
Work items:
code: DONE