enum Console::Style

Defined in:

console/style.cr

Enum Members

Black = 30_u8
Red = 31_u8
Green = 32_u8
Yellow = 33_u8
Blue = 34_u8
Magenta = 35_u8
Cyan = 36_u8
Grey = 37_u8
White = 37_u8
Bold = 1_u8
Intense = 1_u8
Itaic = 3_u8
Faint = 3_u8
Underline = 4_u8
Blink = 5_u8

Class Method Summary

Instance Method Summary

Class Method Detail

def self.begin(style : Style?) : Style.class #

[View source]
def self.begin(styles : Enumerable(Style)) : Style.class #

[View source]
def self.end : Style.class #

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

[View source]
def self.print(styles : Enumerable(Style), &block : -> Nil) : Style.class #

[View source]
def self.print(style : Style?, &block : -> Nil) : Style.class #

[View source]

Instance Method Detail

def black? #

[View source]
def blink? #

[View source]
def blue? #

[View source]
def bold? #

[View source]
def cyan? #

[View source]
def faint? #

[View source]
def green? #

[View source]
def grey? #

[View source]
def intense? #

[View source]
def itaic? #

[View source]
def magenta? #

[View source]
def red? #

[View source]
def to_s(io : IO) #
Description copied from struct Enum

Appends a String representation of this enum member to the given io.

See also: #to_s.


[View source]
def underline? #

[View source]
def white? #

[View source]
def yellow? #

[View source]