chore: import official kitty sources from upstream
Bring the kovidgoyal/kitty codebase in as the base of FWS-Kitty, vendored at upstream commit 91fb38a without its git history.
This commit is contained in:
1134 files changed
+433629
No files matched your search
@@ -0,0 +1,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
|
||||
}
|
||||
Reference in new issue
Block a user