mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-14 16:51:09 -07:00
fix: properly skip over unrecognized CSI sequences.
This commit is contained in:
committed by
Christian Muehlhaeuser
parent
d20732aaea
commit
b074f6f5a4
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user