mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-17 14:04:52 +02:00
Handle color scheme changes in choose-files kitten
This commit is contained in:
@@ -218,6 +218,10 @@ func NoFocusTracking(self *Loop) {
|
||||
self.terminal_options.focus_tracking = false
|
||||
}
|
||||
|
||||
func (self *Loop) RequestCurrentColorScheme() {
|
||||
self.QueueWriteString("\x1b[?996n")
|
||||
}
|
||||
|
||||
func (self *Loop) ColorSchemeChangeNotifications() *Loop {
|
||||
self.terminal_options.color_scheme_change_notification = true
|
||||
return self
|
||||
|
||||
@@ -14,6 +14,17 @@ const (
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user