summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2024-08-26 07:45:06 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2024-08-26 07:45:06 +0000
commit1308edb25449bfa8a694a45073ba191fb85fe5de (patch)
treebdb7ad037f32d90288a4c62dfa7ba59c0c75bffa /usr.bin/tmux
parent6d2a852a557357182834b645247718241376780d (diff)
C-h should not be treated specially and represented internally as \b but
as C-h like the other Ctrl keys. Backspace is already handled separately if it VERASE.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/input-keys.c7
-rw-r--r--usr.bin/tmux/tty-keys.c7
2 files changed, 8 insertions, 6 deletions
diff --git a/usr.bin/tmux/input-keys.c b/usr.bin/tmux/input-keys.c
index d8dc2aa2127..42b5b235ee0 100644
--- a/usr.bin/tmux/input-keys.c
+++ b/usr.bin/tmux/input-keys.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: input-keys.c,v 1.97 2024/08/23 13:25:39 nicm Exp $ */
+/* $OpenBSD: input-keys.c,v 1.98 2024/08/26 07:45:05 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -608,8 +608,9 @@ input_key(struct screen *s, struct bufferevent *bev, key_code key)
* key and no modifiers.
*/
if (!(key & ~KEYC_MASK_KEY)) {
- if (key == C0_BS || key == C0_HT ||
- key == C0_CR || key == C0_ESC ||
+ if (key == C0_HT ||
+ key == C0_CR ||
+ key == C0_ESC ||
(key >= 0x20 && key <= 0x7f)) {
ud.data[0] = key;
input_key_write(__func__, bev, &ud.data[0], 1);
diff --git a/usr.bin/tmux/tty-keys.c b/usr.bin/tmux/tty-keys.c
index f859747e3c0..a3b5f624b67 100644
--- a/usr.bin/tmux/tty-keys.c
+++ b/usr.bin/tmux/tty-keys.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty-keys.c,v 1.177 2024/08/21 04:17:09 nicm Exp $ */
+/* $OpenBSD: tty-keys.c,v 1.178 2024/08/26 07:45:05 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -812,8 +812,9 @@ first_key:
* lowercase, so ^A becomes a|CTRL.
*/
onlykey = key & KEYC_MASK_KEY;
- if (onlykey < 0x20 && onlykey != C0_BS &&
- onlykey != C0_HT && onlykey != C0_CR &&
+ if (onlykey < 0x20 &&
+ onlykey != C0_HT &&
+ onlykey != C0_CR &&
onlykey != C0_ESC) {
onlykey |= 0x40;
if (onlykey >= 'A' && onlykey <= 'Z')