mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-04 01:40:21 -05:00
keymap: align backspace escapes with XTerm
Backspace now emits DEL for all non-ctrl modifier combos, and BS for all ctrl modifier combos. The alt modifier prefixes DEL/BS with ESC. This also removes my own hack of mapping ctrl+backspace to alt+backspace. Describe backspace behavior in both the README and the man page. TODO: implement DECBKM to allow applications to toggle the backspace behavior.
This commit is contained in:
parent
54fbfb6405
commit
ae23023341
3 changed files with 44 additions and 3 deletions
|
|
@ -199,6 +199,17 @@ This can also be disabled programatically with *rmm* (Reset Meta Mode,
|
|||
*\E[?1034l*), and enabled again with *smm* (Set Meta Mode,
|
||||
*\E[?1034h*).
|
||||
|
||||
# BACKSPACE
|
||||
|
||||
Foot transmits DEL (*^?*) on backspace. This corresponds to XTerm's
|
||||
*backarrowKey* option set to *false*, and to DECBKM being _reset_.
|
||||
|
||||
To instead transmit BS (*^H*), press *ctrl*+*backspace*.
|
||||
|
||||
Note that foot does *not* implement DECBKM, and that the behavior
|
||||
described above *cannot* be changed.
|
||||
|
||||
Finally, pressing *alt* will prefix the transmitted byte with ESC.
|
||||
|
||||
# CONFIGURATION
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue