module Console
Defined in:
console.crconsole/stylized.cr
Constant Summary
-
CAPTURE_STYLE =
Style::White
-
HEADING_STYLE =
[Style::Underline, Style::Bold]
-
SUB_HEADING_STYLE =
[] of Style
Class Method Summary
- .<<(string) : Console.class
- .capture_style : StyleTypes
- .capture_style=(capture_style : StyleTypes)
- .delete(count : Int = 1) : Console.class
- .flush
- .heading(*strings, separator = ' ', terminator = ':') : Console.class
- .heading(*strings, separator = ' ', terminator = ':', &block : -> _)
- .item(label, extra = nil, justify : Int = 0, *, symbol = '-', separator : Char = ' ', style : StyleTypes? = nil) : Console.class
- .line(*strings, separator = nil, terminator = '\n') : Console.class
- .newline(count : Int = 1) : Console.class
- .output(output : IO, &) : Nil
- .output=(output : IO) : Nil
- .print(*strings, separator = nil, terminator = nil) : Console.class
- .repeat(string, count : Int = 1) : Console.class
- .silence : Console.class
- .silenced(&block : -> Nil) : Console.class
- .silenced? : Bool
- .status(label, status, justify : Int = 0, *, separator : Char = ' ', symbol = '-', style : StyleTypes? = nil) : Console.class
- .stylize(styles : StyleTypes?, &block : -> Nil) : Console.class
- .stylize(*strings, styles : StyleTypes?, separator = nil, terminator = nil) : Console.class
- .stylize=(value : Bool?) : Nil
- .stylize? : Bool
- .sub_heading(*strings, separator = ' ', terminator = ':') : Console.class
- .sub_heading(*strings, separator = ' ', terminator = ':', &block : -> _)
-
.to_buffer(&block : -> Nil) : String
FIXME - Not fork safe.
- .to_error(&block : -> Nil) : Nil
- .tty? : Bool
- .unsilence : Console.class
- .words(*strings, separator = ' ', terminator = nil) : Console.class
Class Method Detail
def self.item(label, extra = nil, justify : Int = 0, *, symbol = '-', separator : Char = ' ', style : StyleTypes? = nil) : Console.class
#
def self.status(label, status, justify : Int = 0, *, separator : Char = ' ', symbol = '-', style : StyleTypes? = nil) : Console.class
#
def self.stylize(*strings, styles : StyleTypes?, separator = nil, terminator = nil) : Console.class
#