aboutsummaryrefslogtreecommitdiff
path: root/README.md
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 /README.md
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 'README.md')
-rw-r--r--README.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/README.md b/README.md
index b85153df..f67ac691 100644
--- a/README.md
+++ b/README.md
@@ -15,6 +15,7 @@
1. [Mouse](#mouse)
1. [Server (daemon) mode](#server-daemon-mode)
1. [Alt/meta](#alt-meta)
+1. [Backspace](#backspace)
1. [DPI and font size](#dpi-and-font-size)
1. [Requirements](#requirements)
1. [Running](#running)
@@ -220,6 +221,22 @@ mode_, `\E[?1034l`), and enabled again with `smm` (_set meta mode_,
'\E[?1034h`).
+## Backspace
+
+Foot transmits DEL (`^?`) on <kbd>backspace</kbd>. This corresponds to
+XTerm's `backarrowKey` option set to `false`, and to DECBKM being
+_reset_.
+
+To instead transmit BS (`^H`), press
+<kbd>ctrl</kbd>+<kbd>backspace</kbd>.
+
+Note that foot does **not** implement DECBKM, and that the behavior
+described above **cannot** be changed.
+
+Finally, pressing <kbd>alt</kbd> will prefix the transmitted byte with
+ESC.
+
+
## DPI and font size
Font sizes are apparently a complex thing. Many applications use a