Module ansi

Module ansi 

Source
Expand description

ANSI escape codes for direct terminal control

Constants§

BOLD
Bold
BRIGHT
Bright/bold default foreground - works on light AND dark terminals
CLEAR_LINE
Clear current line
CRITICAL
CURSOR_UP
Move cursor up one line
CYAN
DIM
Dim (use sparingly - varies across terminals)
DOCKER_BLUE
GRAY
HIDE_CURSOR
Hide cursor
HIGH
INFO_BLUE
ITALIC
Italic
LOW
MAGENTA
MEDIUM
ORANGE
PINK
PURPLE
RESET
Reset all styles
SHOW_CURSOR
Show cursor
STD_BLUE
Standard blue (adapts to terminal theme)
STD_CYAN
Standard cyan (adapts to terminal theme)
STD_GREEN
Standard green (adapts to terminal theme)
STD_MAGENTA
Standard magenta (adapts to terminal theme)
STD_RED
Standard red (adapts to terminal theme)
STD_YELLOW
Standard yellow (adapts to terminal theme)
SUBDUED
Standard dim that’s still readable (uses italic instead of dim for better visibility)
SUCCESS
TEAL
WHITE