Skip to content

Commit

Permalink
fix(output): tmux supports OSC 10 & 11
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Aug 26, 2023
1 parent 3b3da4b commit d04cfd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions termenv_unix.go
Expand Up @@ -224,10 +224,10 @@ func (o *Output) readNextResponse() (response string, isOSC bool, err error) {
}

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 d04cfd7

Please sign in to comment.