colorprofile library

Classes

Rgb

Enums

Profile
Internal terminal color profile representation.

Extensions

ProfileOrdering on Profile

Functions

ansi256ToAnsi16(int index) int
ansi256ToRgb(int index) Rgb
cliColor(Map<String, String> env) bool
cliColorForced(Map<String, String> env) bool
colorTerm(Map<String, String> env) bool
detect({required bool isTty, required Map<String, String> env, bool isWindows = false}) Profile
Detect the terminal color profile from an "is TTY?" signal and environment.
downsampleSgr(String input, Profile profile) String
Downsample ANSI SGR color sequences in input to match profile.
envNoColor(Map<String, String> env) bool
rgbToAnsi16(int r, int g, int b) int
rgbToAnsi256(int r, int g, int b) int
sgrColor({required Profile profile, bool background = false, bool underline = false, int? ansi16, int? ansi256, Rgb? rgb}) String