From c5231a7ed3d0787410c904698678786eae632ada Mon Sep 17 00:00:00 2001 From: lif <> Date: Tue, 13 Feb 2024 03:09:05 -0800 Subject: [PATCH] And let's double-tap that mouse mode one... --- src/raw.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/raw.rs b/src/raw.rs index 8f4962a..33c6fbb 100644 --- a/src/raw.rs +++ b/src/raw.rs @@ -197,6 +197,11 @@ mod platform_impl { ) { stdout.write_all(&exp).ok(); } + } else { + // despite it all, some terminfo entries are missing "XM" + // this despite being likely to be used in conjunction with + // mouse functionality -- tmux and screen, for example + stdout.write_all(b"\x1b[1006;1000l").ok(); } // relinquish ownership again - we may not want to close on drop stdout.into_raw_fd();