Skip to content
Myr

Ignore NULL byte before CSI 6N response

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Close #2455

authored by Junegunn Choi · committed by Junegunn Choi · parent 38e4020 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/tui/light.go+1 added-1 removed
27 unmodified lines
28)2930const consoleDevice string = "/dev/tty"3132var offsetRegexp = regexp.MustCompile("(.*)\x1b\\[([0-9]+);([0-9]+)R")32var offsetRegexp = regexp.MustCompile("(.*?)\x00?\x1b\\[([0-9]+);([0-9]+)R")33var offsetRegexpBegin = regexp.MustCompile("^\x1b\\[[0-9]+;[0-9]+R")3435func (r *LightRenderer) Bell() {36 r.flushRaw("\a")
1223 unmodified lines