This moves the existing input event handling to the x/input package. All input events are translated to tea messages in `tea.translateInputEvent`.
14 lines
459 B
Go
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{}
|
|
}
|