module

Crab

Crab: A CLI framework/helper shard Made by JaktonDev

Constants

Parser = Ansi_Parser.new("256")
VERSION = "0.3.0"

Class methods

change_color_mode(color_mode : String)

A function to change the global default color mode The options are "full", to use true-color rgb values "255" to use only the 256 ANSI colors "8" To use only the classical 8 colors Any other string will make the output just on black or white The default is "256"

Source
get_cols

The way to get the terminals columns If it can not be found it will default to 80

Source
get_rows

The way to get the terminals rows If it can not be found it will default to 24

Source
puts(text : String | Crab::Renderable, return_to_default : Bool = true)

The default way to output a Crab::Renderable or strings return_to_default makes sure the text returns to the terminal's default color, if false it will retain the last colors used

Source

Nested types