From ae23023341db2dc121f934dfe21e724d527da134 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Fri, 21 Feb 2020 19:11:03 +0100 Subject: 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. --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'README.md') 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 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. + + ## DPI and font size Font sizes are apparently a complex thing. Many applications use a -- cgit v1.3