CRE::Tui::Ansi
Minimal ANSI escape helpers. We hand-roll instead of depending on a TUI framework so the rendering is small, predictable, and easy to test by capturing IO writes.
Constants
BOLD = "#{ESC}1m"
CLEAR_LINE = "#{ESC}2K"
CLEAR_SCREEN = "#{ESC}2J"
DIM = "#{ESC}2m"
ESC = "\e["
FG_BLUE = "#{ESC}34m"
FG_CYAN = "#{ESC}36m"
FG_GRAY = "#{ESC}90m"
FG_GREEN = "#{ESC}32m"
FG_RED = "#{ESC}31m"
FG_WHITE = "#{ESC}37m"
FG_YELLOW = "#{ESC}33m"
HIDE_CURSOR = "#{ESC}?25l"
HOME = "#{ESC}H"
RESET = "#{ESC}0m"
SHOW_CURSOR = "#{ESC}?25h"
Class methods
Strip ANSI escape sequences (useful for testing rendered output).