Class: Tuile::TerminalBackground::Result
- Inherits:
-
Data
- Object
- Data
- Tuile::TerminalBackground::Result
- Defined in:
- lib/tuile/terminal_background.rb,
sig/tuile.rbs
Overview
What a detection found: the light/dark scheme, and the background
color when a terminal actually reported one.
color is nil whenever the scheme came from the COLORFGBG
fallback, so a consumer deriving a tint from the background must
handle nil — plenty of terminals answer neither query.
Instance Attribute Summary collapse
-
#color ⇒ Color?
readonly
@return — the reported background as 24-bit RGB, or nil when only
COLORFGBGanswered. -
#scheme ⇒ Symbol
readonly
@return —
:lightor:dark.
Instance Attribute Details
#color ⇒ Color? (readonly)
@return — the reported background as 24-bit RGB, or nil
when only COLORFGBG answered.
45 |
# File 'lib/tuile/terminal_background.rb', line 45 Result = Data.define(:scheme, :color) |
#scheme ⇒ Symbol (readonly)
@return — :light or :dark.
45 |
# File 'lib/tuile/terminal_background.rb', line 45 Result = Data.define(:scheme, :color) |