fix: properly skip over unrecognized CSI sequences.

This commit is contained in:
Raphael 'kena' Poss
2022-09-27 17:29:44 +02:00
committed by Christian Muehlhaeuser
parent d20732aaea
commit b074f6f5a4
2 changed files with 10 additions and 0 deletions

View File

@@ -152,6 +152,10 @@ func TestReadInput(t *testing.T) {
},
},
},
"unrecognized": {
[]byte{'\x1b', '[', '-', '-', '-', '-', 'X'},
[]Msg{},
},
} {
t.Run(out, func(t *testing.T) {
msgs, err := readInputs(bytes.NewReader(td.in))