module TerminalRender::ANSI
Defined in:
render/terminal.cr
Constant Summary
-
COLOR_LOOKUP =
{"X" => [30, 90, 40, 100, 0, 0], "R" => [31, 91, 41, 101, 0, 0], "G" => [32, 92, 42, 102, 0, 0], "Y" => [33, 93, 43, 103, 0, 0], "B" => [34, 94, 44, 104, 1, 0], "P" => [35, 95, 45, 105, 5, 0], "C" => [36, 96, 46, 106, 0, 0], "W" => [37, 97, 47, 107, 0, 0], "U" => [0, 0, 0, 0, 4, 0], "E" => [0, 0, 0, 0, 22, 0], "I" => [0, 0, 0, 0, 7, 0], "F" => [0, 0, 0, 0, 2, 0]}
-
COLOR_ORDER =
["f", "F", "b", "B", "S", "X"]
-
ERASE_ALL =
"\e[2J"
-
RESET_COLOR =
"\e[m"
-
RESET_CURSOR =
"\e[H"
-
SET_COLOR =
->(color : Int32) do
"\e[#{color}m"
end
-
SET_TITLE =
->(title : String) do
"\e]0;#{title}\a"
end