module Console

Defined in:

console.cr
console/stylized.cr

Constant Summary

CAPTURE_STYLE = Style::White
HEADING_STYLE = [Style::Underline, Style::Bold]
SUB_HEADING_STYLE = [] of Style

Class Method Summary

Class Method Detail

def self.<<(string) : Console.class #

[View source]
def self.capture_style : StyleTypes #

[View source]
def self.capture_style=(capture_style : StyleTypes) #

[View source]
def self.delete(count : Int = 1) : Console.class #

[View source]
def self.flush #

[View source]
def self.heading(*strings, separator = ' ', terminator = ':') : Console.class #

[View source]
def self.heading(*strings, separator = ' ', terminator = ':', &block : -> _) #

[View source]
def self.item(label, extra = nil, justify : Int = 0, *, symbol = '-', separator : Char = ' ', style : StyleTypes? = nil) : Console.class #

[View source]
def self.line(*strings, separator = nil, terminator = '\n') : Console.class #

[View source]
def self.newline(count : Int = 1) : Console.class #

[View source]
def self.output(output : IO, &) : Nil #

[View source]
def self.output=(output : IO) : Nil #

[View source]
def self.print(*strings, separator = nil, terminator = nil) : Console.class #

[View source]
def self.repeat(string, count : Int = 1) : Console.class #

[View source]
def self.silence : Console.class #

[View source]
def self.silenced(&block : -> Nil) : Console.class #

[View source]
def self.silenced? : Bool #

[View source]
def self.status(label, status, justify : Int = 0, *, separator : Char = ' ', symbol = '-', style : StyleTypes? = nil) : Console.class #

[View source]
def self.stylize(styles : StyleTypes?, &block : -> Nil) : Console.class #

[View source]
def self.stylize(*strings, styles : StyleTypes?, separator = nil, terminator = nil) : Console.class #

[View source]
def self.stylize=(value : Bool?) : Nil #

[View source]
def self.stylize? : Bool #

[View source]
def self.sub_heading(*strings, separator = ' ', terminator = ':') : Console.class #

[View source]
def self.sub_heading(*strings, separator = ' ', terminator = ':', &block : -> _) #

[View source]
def self.to_buffer(&block : -> Nil) : String #

FIXME - Not fork safe.


[View source]
def self.to_error(&block : -> Nil) : Nil #

[View source]
def self.tty? : Bool #

[View source]
def self.unsilence : Console.class #

[View source]
def self.words(*strings, separator = ' ', terminator = nil) : Console.class #

[View source]