bubbletea/xterm.go
Ayman Bagabas 2df9ed00e3 refactor: use x/input for input events
This moves the existing input event handling to the x/input package. All
input events are translated to tea messages in
`tea.translateInputEvent`.
2024-12-12 10:51:58 -05:00

14 lines
459 B
Go

package tea
// TerminalVersionMsg is a message that represents the terminal version.
type TerminalVersionMsg string
// terminalVersion is an internal message that queries the terminal for its
// version using XTVERSION.
type terminalVersion struct{}
// TerminalVersion is a command that queries the terminal for its version using
// XTVERSION. Note that some terminals may not support this command.
func TerminalVersion() Msg {
return terminalVersion{}
}