Color struct
#include <nxt/vterm.hpp>
Terminal color as reported by libvterm.
Public static functions
-
static auto indexed(std::
uint8_t idx) → Color noexcept - Construct an indexed terminal-palette color.
-
static auto rgb(std::
uint8_t r, std:: uint8_t g, std:: uint8_t b) → Color noexcept - Construct a true-color RGB value.
Constructors, destructors, conversion operators
- Color() noexcept
- Construct a default foreground/background color sentinel.
Public functions
- auto is_default_bg() const → bool noexcept
- True when the color requests the terminal default background.
- auto is_default_fg() const → bool noexcept
- True when the color requests the terminal default foreground.
- auto is_indexed() const → bool noexcept
- True when the color refers to the terminal palette.
- auto is_rgb() const → bool noexcept
- True when the color carries explicit RGB components.
Public variables
- VTermColor c
- Raw libvterm color value.