|
ttx 0.1.0
|
Dark/Light mode detection report. More...
#include <ttx/terminal/escapes/device_status.h>
Public Member Functions | |
| auto | serialize () const -> di::String |
| auto | operator== (DarkLightModeDetectionReport const &other) const -> bool=default |
Static Public Member Functions | |
| static auto | from_csi (CSI const &csi) -> di::Optional< DarkLightModeDetectionReport > |
Public Attributes | |
| ThemeMode | mode { ThemeMode::Dark } |
Friends | |
| constexpr friend auto | tag_invoke (di::Tag< di::reflect >, di::InPlaceType< DarkLightModeDetectionReport >) |
Dark/Light mode detection report.
This is requested via CSI ? 996 n, and indicates whether the user's color preference (light or dark mode). When unsolicited reports are enabled on palette changes (DEC private mode 2031), these reports are whenever the terminal's color scheme changes, or the color preference changes.
|
static |
|
default |
| auto ttx::terminal::DarkLightModeDetectionReport::serialize | ( | ) | const -> di::String |
|
friend |
| ThemeMode ttx::terminal::DarkLightModeDetectionReport::mode { ThemeMode::Dark } |