File: capabilities.go

package info (click to toggle)
kitty 0.45.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 27,468 kB
  • sloc: ansic: 84,285; python: 57,992; objc: 5,432; sh: 1,333; xml: 364; makefile: 144; javascript: 78
file content (34 lines) | stat: -rw-r--r-- 573 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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
}