mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-02-06 20:27:02 +01:00
35 lines
573 B
Go
35 lines
573 B
Go
package loop
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
var _ = fmt.Print
|
|
|
|
type ColorPreference uint8
|
|
|
|
const (
|
|
NO_COLOR_PREFERENCE ColorPreference = iota
|
|
DARK_COLOR_PREFERENCE
|
|
LIGHT_COLOR_PREFERENCE
|
|
)
|
|
|
|
func (c ColorPreference) String() string {
|
|
switch c {
|
|
case DARK_COLOR_PREFERENCE:
|
|
return "dark"
|
|
case LIGHT_COLOR_PREFERENCE:
|
|
return "light"
|
|
default:
|
|
return "no-preference"
|
|
}
|
|
}
|
|
|
|
type TerminalCapabilities struct {
|
|
KeyboardProtocol bool
|
|
KeyboardProtocolResponseReceived bool
|
|
|
|
ColorPreference ColorPreference
|
|
ColorPreferenceResponseReceived bool
|
|
}
|