From nobody Mon Feb 23 14:36:13 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4fKNhL4ZrFz6TVGW for ; Mon, 23 Feb 2026 14:36:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fKNhL305hz3SSw for ; Mon, 23 Feb 2026 14:36:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1771857378; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6wZb1FwRiMDWxe2U24fDuJRHsmdnnR3nLRQwjYYMCIc=; b=iD7q2Ixffuz6lTc1nq8Rf2f701WGnZfx+NzOnImIlHGAaLMNc65koB4mbyfuIqLjI4qGnm jq/aywF4fHp+llpIGVzPQjeEVUY/SB5griWRzSoDuACBJfS7ahQTSF4DXzNr+vVqg/49dq q370CVWZQ6KVpiZYeX4lo8VeXGhck/t//HXMwcuXrLE4aXOqAwLQokS/3g1AxBn+5CJDMQ 9FgC89LVeiS/Zn7WeZbifldB0uqHI1U69pYGMps/i7UsDv5hXOSW9Erz42xtoHDmj6YmxB VzNkFN618ZuKx1oY7MSVtpmwsD7V/ntTrSGIsVZ5SvKp2kI10x3hcW4jxBtcvg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1771857378; a=rsa-sha256; cv=none; b=O1Ldq7If4T4En8SmjbsiqNpJ28tS9PYqRTHntgo3CJuVbTxyCZ5kdrGSA9O2YmR/r3V1Bw oRWxYzVHF3HxfN/L0/TUaFZPYTkI/zfiR/vtcfbjC3FZyfcw1JyA0eZsvWPzqV3LJ6duUQ 5DC5a0i0Rgur8UYXUlkl4ZqYZzvo7+y92TYBNJ/EnwoVfPJfo/YL/Z+bwGSD8u/AUypnCu JLWgKdSvUY4/VvOpddFGlw8139utEYIla1377rWcttYcslEsOpCyngwbu/ta4jaIwt6Ti4 EKoaC7TKeWHWl4Z0tiY3jt1VM7gWHDpY7t47ieNJYG4AAt9W0BTfbX8nZudEMA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1771857378; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6wZb1FwRiMDWxe2U24fDuJRHsmdnnR3nLRQwjYYMCIc=; b=Bzw+aUDPKFio5xmG17NC4vQRDU0/Cu5F0hHSHsyONIEdDKTrquh5xlLrKHMz8YcdYtcv4V 05xm5ds8rWjNkan+1NGfcZQk8ycM3S51FfcJZzbPUDNLTLhFy5kuDta9vdF6oRqvbB2qst ttGyqJ5eYP+ZWinGuI7W5vQFF2KyQ4BEyDqsR/y3KRiY5ITvJFHbF0zDF/qrjgZmY1I/V+ 9vP3XUx8t9Fuh9K1uoyDuy3MfGf69kWsuJJbxWv8swd+ROvHcp8ZwXZAS/qLPRGjk2U0AK kv7UbJCoI8cFvOI0gNEZTqt6x3suG0knv1xHr21us5Szqek05gf1VgNRVlCaEA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fKNhL1xxwzZWv for ; Mon, 23 Feb 2026 14:36:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1e5f2 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 23 Feb 2026 14:36:13 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Nathaniel Braun From: Ed Maste Subject: git: 3ca02a70f7f9 - stable/15 - vt: Fix handling of backtab List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 3ca02a70f7f94f7479ffcd3ed7ca6d83ec58af10 Auto-Submitted: auto-generated Date: Mon, 23 Feb 2026 14:36:13 +0000 Message-Id: <699c65dd.1e5f2.5f659a2d@gitrepo.freebsd.org> The branch stable/15 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=3ca02a70f7f94f7479ffcd3ed7ca6d83ec58af10 commit 3ca02a70f7f94f7479ffcd3ed7ca6d83ec58af10 Author: Nathaniel Braun AuthorDate: 2026-01-17 17:14:42 +0000 Commit: Ed Maste CommitDate: 2026-02-23 14:22:55 +0000 vt: Fix handling of backtab PR: 292463 Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/2002 (cherry picked from commit 5fec99caff3ac4f476bb88078ebf85fbecf6afb3) --- sys/dev/vt/vt_core.c | 6 ++++++ sys/teken/teken.c | 4 ++++ sys/teken/teken.h | 2 ++ 3 files changed, 12 insertions(+) diff --git a/sys/dev/vt/vt_core.c b/sys/dev/vt/vt_core.c index 6d1012110678..bd6596eceacb 100644 --- a/sys/dev/vt/vt_core.c +++ b/sys/dev/vt/vt_core.c @@ -950,6 +950,9 @@ vt_processkey(keyboard_t *kbd, struct vt_device *vd, int c) VT_UNLOCK(vd); break; } + case BKEY | BTAB: /* Back tab (usually, shift+tab). */ + terminal_input_special(vw->vw_terminal, TKEY_BTAB); + break; case FKEY | F(1): case FKEY | F(2): case FKEY | F(3): case FKEY | F(4): case FKEY | F(5): case FKEY | F(6): case FKEY | F(7): case FKEY | F(8): case FKEY | F(9): @@ -1962,6 +1965,9 @@ vtterm_cngetc(struct terminal *tm) VTBUF_SLCK_DISABLE(&vw->vw_buf); } break; + case SPCLKEY | BTAB: /* Back tab (usually, shift+tab). */ + vw->vw_kbdsq = "\x1b[Z"; + break; /* XXX: KDB can handle history. */ case SPCLKEY | FKEY | F(50): /* Arrow up. */ vw->vw_kbdsq = "\x1b[A"; diff --git a/sys/teken/teken.c b/sys/teken/teken.c index b0161a2e3b20..a1522e00ecf7 100644 --- a/sys/teken/teken.c +++ b/sys/teken/teken.c @@ -703,6 +703,8 @@ static const char * const special_strings_cons25[] = { [TKEY_F7] = "\x1B[S", [TKEY_F8] = "\x1B[T", [TKEY_F9] = "\x1B[U", [TKEY_F10] = "\x1B[V", [TKEY_F11] = "\x1B[W", [TKEY_F12] = "\x1B[X", + + [TKEY_BTAB] = "\x1B[Z", }; static const char * const special_strings_ckeys[] = { @@ -726,6 +728,8 @@ static const char * const special_strings_normal[] = { [TKEY_F7] = "\x1B[18~", [TKEY_F8] = "\x1B[19~", [TKEY_F9] = "\x1B[20~", [TKEY_F10] = "\x1B[21~", [TKEY_F11] = "\x1B[23~", [TKEY_F12] = "\x1B[24~", + + [TKEY_BTAB] = "\x1B[Z", }; const char * diff --git a/sys/teken/teken.h b/sys/teken/teken.h index 38a85e80110e..c8c73db55f06 100644 --- a/sys/teken/teken.h +++ b/sys/teken/teken.h @@ -206,6 +206,8 @@ void teken_set_winsize_noreset(teken_t *, const teken_pos_t *); #define TKEY_F10 0x13 #define TKEY_F11 0x14 #define TKEY_F12 0x15 + +#define TKEY_BTAB 0x16 const char *teken_get_sequence(const teken_t *, unsigned int); /* Legacy features. */