class Term::Color::Mode

Defined in:

color/mode.cr

Constant Summary

TERM_16 = /^(amiga-vnc|d430-dg|d430-unix|d430-unix-25|d430-unix-s| d430-unix-sr|d430-unix-w|d430c-dg|d430c-unix|d430c-unix-25| d430c-unix-s|d430c-unix-sr|d430c-unix-w|d470|d470-7b|d470-dg| d470c|d470c-7b|d470c-dg|dg+color|dg\+fixed|dgunix\+fixed| dgmode\+color|hp\+color|ncr260wy325pp|ncr260wy325wpp| ncr260wy350pp|ncr260wy350wpp|nsterm-c|nsterm-c-acs| nsterm-c-s|nsterm-c-s-7|nsterm-c-s-acs|nsterm\+c| nsterm-7-c|nsterm-bce)$/x
TERM_24BIT = /[+-]direct/
TERM_256 = /^(alacritty|iTerm\s?\d*\.app|kitty|mintty|ms-terminal| nsterm|nsterm-build\d+|terminator|terminology(-[0-9.]+)?| termite|vscode)$/x
TERM_52 = /^(dg+ccc|dgunix+ccc|d430.*?[-+](dg|unix).*?[-+]ccc)$/x
TERM_64 = /^(hpterm-color|wy370|wy370-105k|wy370-EPC|wy370-nk| wy370-rv|wy370-tek|wy370-vb|wy370-w|wy370-wvb)$/x
TERM_8 = /vt100|xnuppc|wy350/x
TRUECOLORS = 2 ** 24

Constructors

Instance Method Summary

Constructor Detail

def self.new(env : Hash(String, String)) #

[View source]

Instance Method Detail

def from_term #

[View source]
def from_tput #

[View source]
def from_windows_term #

[View source]
def mode #

Detect supported colors


[View source]