Description
Adapt
function Adapt
(Item : Flyology_TUI.Colors.Color;
Target : Profile) return Flyology_TUI.Colors.Color
Adapt a source color to a terminal profile. Default colors stay default; monochrome drops only color while retaining other style attributes.
Parameters
- Item
- Target
Return value
Detect
function Detect
(NO_Color_Present : Boolean;
NO_Color_Value : String;
Color_Term : String;
Term : String) return Profile
Detect a conservative terminal profile from environment values supplied by a backend. NO_COLOR suppresses color only when it is both present and nonempty. This package never reads the process environment itself.
Parameters
- NO_Color_Present
- NO_Color_Value
- Color_Term
- Term
Return value
Policy
type Policy is
(Automatic,
Force_Monochrome,
Force_ANSI_16,
Force_ANSI_256,
Force_Truecolor);
Enumeration literals
- Automatic
- Force_Monochrome
- Force_ANSI_16
- Force_ANSI_256
- Force_Truecolor
Profile
type Profile is (Monochrome, ANSI_16, ANSI_256, Truecolor);
Enumeration literals
- Monochrome
- ANSI_16
- ANSI_256
- Truecolor
Resolve
function Resolve
(Requested : Policy;
Detected : Profile) return Profile
An explicit policy always takes precedence over backend detection.
Parameters
- Requested
- Detected