mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-17 14:04:52 +02:00
Code to query terminal for capabilities
This commit is contained in:
23
tools/tui/loop/capabilities.go
Normal file
23
tools/tui/loop/capabilities.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package loop
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
var _ = fmt.Print
|
||||
|
||||
type ColorPreference uint8
|
||||
|
||||
const (
|
||||
NO_COLOR_PREFERENCE ColorPreference = iota
|
||||
DARK_COLOR_PREFERENCE
|
||||
LIGHT_COLOR_PREFERENCE
|
||||
)
|
||||
|
||||
type TerminalCapabilities struct {
|
||||
KeyboardProtocol bool
|
||||
KeyboardProtocolResponseReceived bool
|
||||
|
||||
ColorPreference ColorPreference
|
||||
ColorPreferenceResponseReceived bool
|
||||
}
|
||||
Reference in New Issue
Block a user