From 615b4b182194b6ebc8f04d6ba35c1fe37fab2514 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 20 Feb 2023 21:30:37 -0800 Subject: [PATCH] fixes #589 unexpected character linux console --- tscreen.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tscreen.go b/tscreen.go index 448324b..e36e6e4 100644 --- a/tscreen.go +++ b/tscreen.go @@ -344,6 +344,11 @@ func (t *tScreen) prepareBracketedPaste() { } func (t *tScreen) prepareExtendedOSC() { + // Linux is a special beast - because it has a mouse entry, but does + // not swallow these OSC commands properly. + if (strings.Contains(t.ti.Name, "linux")) { + return; + } // More stuff for limits in terminfo. This time we are applying // the most common OSC (operating system commands). Generally // terminals that don't understand these will ignore them.