Skip to content

Commit

Permalink
chore(test): add sgr mouse msg detect test
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Oct 16, 2023
1 parent e07c862 commit abbf90f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions key_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@ func TestDetectOneMsg(t *testing.T) {
[]byte{'\x1b', '[', 'M', byte(32) + 0b0100_0000, byte(65), byte(49)},
MouseMsg{X: 32, Y: 16, Type: MouseWheelUp, Button: MouseButtonWheelUp, Action: MouseActionPress},
},
// SGR Mouse event.
seqTest{
[]byte("\x1b[<0;33;17M"),
MouseMsg{X: 32, Y: 16, Type: MouseLeft, Button: MouseButtonLeft, Action: MouseActionPress},
},
// Runes.
seqTest{
[]byte{'a'},
Expand Down

0 comments on commit abbf90f

Please sign in to comment.