Currently, Bubble Tea uses a simple lookup table to detect input events. Here, we're introducing an actual input sequence parser instead of simply using a lookup table. This will allow Bubble Tea programs to read all sorts of input events such Kitty keyboard, background color, mode report, and all sorts of ANSI sequence input events. Supersedes: https://github.com/charmbracelet/bubbletea/pull/1079 Supersedes: https://github.com/charmbracelet/bubbletea/issues/1014 Related: https://github.com/charmbracelet/bubbletea/issues/869 Related: https://github.com/charmbracelet/bubbletea/issues/163 Related: https://github.com/charmbracelet/bubbletea/issues/918 Related: https://github.com/charmbracelet/bubbletea/issues/850 Related: https://github.com/charmbracelet/bubbletea/issues/207
9 lines
247 B
Go
9 lines
247 B
Go
package tea
|
|
|
|
// FocusMsg represents a terminal focus message.
|
|
// This occurs when the terminal gains focus.
|
|
type FocusMsg struct{}
|
|
|
|
// BlurMsg represents a terminal blur message.
|
|
// This occurs when the terminal loses focus.
|
|
type BlurMsg struct{}
|