Skip to content

Commit

Permalink
fix(termenv): prevent hang in Emacs shell
Browse files Browse the repository at this point in the history
  • Loading branch information
bard authored and muesli committed Dec 6, 2023
1 parent d7b2104 commit b08dd78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion termenv_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ func (o Output) termStatusReport(sequence int) (string, error) {
// screen/tmux 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") || strings.HasPrefix(term, "tmux") || strings.HasPrefix(term, "dumb") {
return "", ErrStatusReport
}

Expand Down

0 comments on commit b08dd78

Please sign in to comment.