xterm.go

 1package tea
 2
 3// TerminalVersionMsg is a message that represents the terminal version.
 4type TerminalVersionMsg string
 5
 6// terminalVersion is an internal message that queries the terminal for its
 7// version using XTVERSION.
 8type terminalVersion struct{}
 9
10// TerminalVersion is a command that queries the terminal for its version using
11// XTVERSION. Note that some terminals may not support this command.
12func TerminalVersion() Msg {
13	return terminalVersion{}
14}