struct Colorize::Object(T)
Defined in:
colorize.crConstant Summary
-
BACK_BLACK =
"40"
-
BACK_BLUE =
"44"
-
BACK_CYAN =
"46"
-
BACK_DARK_GRAY =
"100"
-
BACK_DEFAULT =
"49"
-
BACK_GREEN =
"42"
-
BACK_LIGHT_BLUE =
"104"
-
BACK_LIGHT_CYAN =
"106"
-
BACK_LIGHT_GRAY =
"47"
-
BACK_LIGHT_GREEN =
"102"
-
BACK_LIGHT_MAGENTA =
"105"
-
BACK_LIGHT_RED =
"101"
-
BACK_LIGHT_YELLOW =
"103"
-
BACK_MAGENTA =
"45"
-
BACK_RED =
"41"
-
BACK_WHITE =
"107"
-
BACK_YELLOW =
"43"
-
COLORS =
["black", "red", "green", "yellow", "blue", "magenta", "cyan", "light_gray", "dark_gray", "light_red", "light_green", "light_yellow", "light_blue", "light_magenta", "light_cyan", "white"] of ::String
-
FORE_BLACK =
"30"
-
FORE_BLUE =
"34"
-
FORE_CYAN =
"36"
-
FORE_DARK_GRAY =
"90"
-
FORE_DEFAULT =
"39"
-
FORE_GREEN =
"32"
-
FORE_LIGHT_BLUE =
"94"
-
FORE_LIGHT_CYAN =
"96"
-
FORE_LIGHT_GRAY =
"37"
-
FORE_LIGHT_GREEN =
"92"
-
FORE_LIGHT_MAGENTA =
"95"
-
FORE_LIGHT_RED =
"91"
-
FORE_LIGHT_YELLOW =
"93"
-
FORE_MAGENTA =
"35"
-
FORE_RED =
"31"
-
FORE_WHITE =
"97"
-
FORE_YELLOW =
"33"
-
MODE_BLINK =
"5"
-
MODE_BLINK_FLAG =
8
-
MODE_BOLD =
"1"
-
MODE_BOLD_FLAG =
1
-
MODE_BRIGHT =
"1"
-
MODE_BRIGHT_FLAG =
1
-
MODE_DEFAULT =
"0"
-
MODE_DIM =
"2"
-
MODE_DIM_FLAG =
2
-
MODE_HIDDEN =
"8"
-
MODE_HIDDEN_FLAG =
32
-
MODE_REVERSE =
"7"
-
MODE_REVERSE_FLAG =
16
-
MODE_UNDERLINE =
"4"
-
MODE_UNDERLINE_FLAG =
4
-
MODES =
["bold", "bright", "dim", "underline", "blink", "reverse", "hidden"] of ::String
-
STACK =
[] of Colorize::Object(String)
Class Method Summary
Instance Method Summary
- #back(color : Symbol)
- #black
- #blink
- #blue
- #bold
- #bright
- #cyan
- #dark_gray
- #dim
- #fore(color : Symbol)
- #green
- #hidden
- #inspect(io)
- #light_blue
- #light_cyan
- #light_gray
- #light_green
- #light_magenta
- #light_red
- #light_yellow
- #magenta
- #mode(mode : Symbol)
- #on(color : Symbol)
- #on_black
- #on_blue
- #on_cyan
- #on_dark_gray
- #on_green
- #on_light_blue
- #on_light_cyan
- #on_light_gray
- #on_light_green
- #on_light_magenta
- #on_light_red
- #on_light_yellow
- #on_magenta
- #on_red
- #on_white
- #on_yellow
- #push(io = STDOUT, &block)
- #red
- #reverse
- #surround(io = STDOUT, &block)
- #to_s(io)
- #toggle(on)
- #underline
- #white
- #yellow
Instance methods inherited from struct Struct
==(other : self) : Bool
==,
hash : Int32
hash,
inspect(io : IO) : Nil
inspect,
to_s(io)
to_s
Instance methods inherited from struct Value
==(other)
==
Instance methods inherited from class Object
!=(other)
!=,
!~(other)
!~,
==(other)
==,
===(other)===(other : YAML::Any)
===(other : JSON::Any) ===, =~(other) =~, class class, clone clone, crystal_type_id crystal_type_id, dup dup, hash hash, inspect
inspect(io : IO) inspect, itself itself, not_nil! not_nil!, tap(&block) tap, to_json to_json, to_pretty_json(io : IO)
to_pretty_json to_pretty_json, to_s
to_s(io : IO) to_s, to_yaml(io : IO)
to_yaml to_yaml, try(&block) try