aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-02-21 18:11:03 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-02-21 18:11:03 +0000
commitae23023341db2dc121f934dfe21e724d527da134 (patch)
tree69c25fc39beede752a99d753dfa1a0861284b56c /doc
parentclient: make sure 'cwd' is in scope of all goto's (diff)
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.
Diffstat (limited to 'doc')
-rw-r--r--doc/foot.1.scd11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/foot.1.scd b/doc/foot.1.scd
index fcd9d1f8..8b5268b7 100644
--- a/doc/foot.1.scd
+++ b/doc/foot.1.scd
@@ -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