From 1fbfbd9e0a4e01fc859deb668c9c546c5d1a0d8b Mon Sep 17 00:00:00 2001 From: Raphael 'kena' Poss Date: Tue, 16 Aug 2022 23:57:49 +0200 Subject: [PATCH] Properly support tmux in termStatusReport --- termenv_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/termenv_unix.go b/termenv_unix.go index 5ee7c08..5422463 100644 --- a/termenv_unix.go +++ b/termenv_unix.go @@ -214,7 +214,7 @@ func termStatusReport(sequence int) (string, error) { // screen/tmux can't support OSC, because they can be connected to multiple // terminals concurrently. term := os.Getenv("TERM") - if strings.HasPrefix(term, "screen") { + if strings.HasPrefix(term, "screen") || strings.HasPrefix(term, "tmux") { return "", ErrStatusReport }