From 095f4fb7fc5e8928b96da4a92600a44749402a20 Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Fri, 15 Apr 2022 12:12:28 -0400 Subject: [PATCH] fix: detect tmux TERM --- osc52.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc52.go b/osc52.go index 6df5fac..ff281c6 100755 --- a/osc52.go +++ b/osc52.go @@ -55,7 +55,7 @@ func (o *Output) Copy(str string) { mode := "default" term := o.envs.Get("TERM") switch { - case o.envs.Get("TMUX") != "": + case o.envs.Get("TMUX") != "", strings.HasPrefix(term, "tmux"): mode = "tmux" case strings.HasPrefix(term, "screen"): mode = "screen"