Skip to content

Commit

Permalink
fix: detect tmux TERM
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Apr 15, 2022
1 parent 730b6c3 commit 095f4fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osc52.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 095f4fb

Please sign in to comment.