docs(tui): correct the VTE and WezTerm notes around the Shift+Enter hint
This commit is contained in:
2 files changed
+9
-3
No files matched your search
@@ -438,6 +438,11 @@ impl TerminalContext {
|
|||||||
/// release carries the protocol). Two skips still deliver it — Apple
|
/// release carries the protocol). Two skips still deliver it — Apple
|
||||||
/// Terminal drops the flags but `route_enter` polls CoreGraphics, and
|
/// Terminal drops the flags but `route_enter` polls CoreGraphics, and
|
||||||
/// Windows console key records carry SHIFT with no protocol at all.
|
/// Windows console key records carry SHIFT with no protocol at all.
|
||||||
|
///
|
||||||
|
/// KNOWN GAP: WezTerm inside screen or an old tmux gets Alt+Enter as the
|
||||||
|
/// advice while its own default binding spends that chord on
|
||||||
|
/// ToggleFullScreen. Neither chord reaches kigi there; the multiplexer
|
||||||
|
/// warning carries the real fix, and `\`+Enter still inserts a newline.
|
||||||
pub fn shift_enter_unavailable(&self) -> bool {
|
pub fn shift_enter_unavailable(&self) -> bool {
|
||||||
match self.kitty_skip_reason() {
|
match self.kitty_skip_reason() {
|
||||||
None | Some("apple_terminal") => false,
|
None | Some("apple_terminal") => false,
|
||||||
|
|||||||
@@ -1443,7 +1443,7 @@ fn kitty_skip_vscode_over_tmux() {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn kitty_skip_vte_version() {
|
fn kitty_skip_vte_version() {
|
||||||
// VTE below 0.82 has no Kitty keyboard protocol and crossterm's probe
|
// No VTE release has the Kitty keyboard protocol and crossterm's probe
|
||||||
// can false-positive on it. https://gitlab.gnome.org/GNOME/vte/-/issues/2601
|
// can false-positive on it. https://gitlab.gnome.org/GNOME/vte/-/issues/2601
|
||||||
let ctx = TerminalContext {
|
let ctx = TerminalContext {
|
||||||
vte_version: Some("7402".to_owned()),
|
vte_version: Some("7402".to_owned()),
|
||||||
@@ -1486,7 +1486,8 @@ fn shift_enter_unavailable_on_every_vte() {
|
|||||||
fn shift_enter_unavailable_follows_every_kitty_skip() {
|
fn shift_enter_unavailable_follows_every_kitty_skip() {
|
||||||
// A skipped protocol means the modifier never arrives, whatever the
|
// A skipped protocol means the modifier never arrives, whatever the
|
||||||
// reason — JediTerm, screen and a multiplexer that eats extended keys
|
// reason — JediTerm, screen and a multiplexer that eats extended keys
|
||||||
// included. Apple Terminal is the one skip with another way in.
|
// included. Apple Terminal and Windows Terminal are the two skips with
|
||||||
|
// another way in.
|
||||||
for ctx in [
|
for ctx in [
|
||||||
TerminalContext {
|
TerminalContext {
|
||||||
brand: TerminalName::JetBrains,
|
brand: TerminalName::JetBrains,
|
||||||
@@ -1506,7 +1507,7 @@ fn shift_enter_unavailable_follows_every_kitty_skip() {
|
|||||||
tmux_version: Some("3.2".to_owned()),
|
tmux_version: Some("3.2".to_owned()),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
// A VTE that speaks the protocol still loses it to the multiplexer.
|
// A VTE carrying a recent VTE_VERSION is no different.
|
||||||
TerminalContext {
|
TerminalContext {
|
||||||
brand: TerminalName::Vte,
|
brand: TerminalName::Vte,
|
||||||
env_brand: TerminalName::Vte,
|
env_brand: TerminalName::Vte,
|
||||||
|
|||||||
Reference in new issue
Block a user