class

Crab::Ansi_Parser

Inherits Reference / Object

A class to transform Shrimp syntax to appropriate terminal syntax to be rendered

Constructors

new(color_mode : String)
Source

Instance methods

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

The main function of the class, it takes a string and changes the 'crab' syntax to ansi color codes

Source