Skip to main content

Module system_theme

Module system_theme 

Source

Enums§

SystemTheme
System theme detected from terminal

Functions§

get_system_theme_name
Get the current terminal theme. Cached after first detection; the watcher updates the cache on live changes.
resolve_theme_setting
Resolve a ThemeSetting (which may be ‘auto’) to a concrete theme name.
set_cached_system_theme
Update the cached terminal theme. Called by the watcher when the OSC 11 query returns so non-React call sites stay in sync.
theme_from_osc_color
Parse an OSC color response data string into a theme.