diff --git a/src/tui/light.go b/src/tui/light.go index d0f02c99..eb4445b1 100644 --- a/src/tui/light.go +++ b/src/tui/light.go @@ -67,7 +67,8 @@ func (r *LightRenderer) stderrInternal(str string, allowNLCR bool, resetCode str for len(bytes) > 0 { r, sz := utf8.DecodeRune(bytes) nlcr := r == '\n' || r == '\r' - if r >= 32 || r == '\x1b' || nlcr { + isC1 := r >= 0x80 && r <= 0x9F + if (r >= 32 && !isC1) || r == '\x1b' || nlcr { if nlcr && !allowNLCR { if r == '\r' { runes = append(runes, []rune(CR+resetCode)...)