Skip to content

Commit

Permalink
fix(output): tmux supports OSC 11 & 12
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Mar 9, 2023
1 parent 129e474 commit 2b19c54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions termenv_unix.go
Expand Up @@ -220,10 +220,10 @@ func (o *Output) readNextResponse(tty io.ReadWriter) (response string, isOSC boo
}

func (o Output) termStatusReport(sequence int) (string, error) {
// screen/tmux can't support OSC, because they can be connected to multiple
// screen can't support OSC, because they can be connected to multiple
// terminals concurrently.
term := o.environ.Getenv("TERM")
if strings.HasPrefix(term, "screen") || strings.HasPrefix(term, "tmux") {
if strings.HasPrefix(term, "screen") {
return "", ErrStatusReport
}

Expand Down

0 comments on commit 2b19c54

Please sign in to comment.