struct Term::Color::Support
- Term::Color::Support
- Struct
- Value
- Object
Defined in:
color/support.crConstant Summary
-
ENV_VARS =
["COLORTERM", "ANSICON"] of ::String
-
TERM_REGEX =
/\ color| # explicitly claims color support in the name direct| # explicitly claims "direct color" (24 bit) support #{Mode::TERM_256}| #{Mode::TERM_64}| #{Mode::TERM_52}| #{Mode::TERM_16}| #{Mode::TERM_8}| ^ansi(\.sys.*)?$| ^cygwin| ^linux| ^putty| ^rxvt| ^screen| ^tmux| ^xterm| ^ms\-terminal/ix
Constructors
Instance Method Summary
-
#disabled?
Detect if color support has been disabled with NO_COLOR ENV var.
-
#from_curses(curses_class = Curses)
Attempt to load curses to check color support TODO: Implement from_curses
-
#from_env
Check if environment specifies color variables
-
#from_term
Inspect environment $TERM variable for color support
-
#from_tput
Shell out to tput to check color support
- #from_windows_term
-
#support?
Detect if terminal supports color
Constructor Detail
Instance Method Detail
def from_curses(curses_class = Curses)
#
Attempt to load curses to check color support
TODO Implement from_curses