Skip to content

Commit

Permalink
Make Backspace behaves the same as xterm
Browse files Browse the repository at this point in the history
Fixes lxqt#1

Notes about other terminals:

Konsole:
^? for backspace and ^H for ctrl+backspace

Gnome Terminal (VTE3):
- ^? for backspace and ^H for ctrl+backspace by default, and
- ^H for backspace and ^? for ctrl+backspace if the option
  "Backspace key generates:" is set to "Control-H"
  • Loading branch information
Chih-Hsuan Yen authored and agaida committed Sep 30, 2018
1 parent 148cd2e commit 04293f7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/kb-layouts/default.keytab
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,13 @@ key Return-Shift+NewLine : "\r\n"
key Return+Shift : "\EOM"

# Backspace and Delete codes are preserving CTRL-H.
#
# Backspace without CTRL sends '^H'; this matches XTerm behaviour
# BS, hex \x08, \b
key Backspace -Control : "\b"

key Backspace : "\x7f"
# Match xterm behaviour: Backspace sends '^?' when Control is pressed
key Backspace +Control : "\x7f"

# Arrow keys in VT52 mode
# shift up/down are reserved for scrolling.
Expand Down

0 comments on commit 04293f7

Please sign in to comment.