Skip to content

Commit

Permalink
Properly support tmux in termStatusReport
Browse files Browse the repository at this point in the history
  • Loading branch information
knz authored and muesli committed Aug 19, 2022
1 parent 0899c83 commit 504165e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion termenv_unix.go
Expand Up @@ -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
}

Expand Down

0 comments on commit 504165e

Please sign in to comment.