module Lolcat::Lol

Extended Modules

Direct including types

Defined in:

lolcat.cr
lolcat/lol.cr

Constant Summary

ANSI_ESCAPE = /((?:\e(?:[ -\/]+.|[\]PX^_][^\a\e]*|\[[0-?]*.|.))*)(.?)/m
ESCAPE_SEQUENCES = /\e\[[0-?]*[@JKPX]/
HIDE_CURSOR = "\e[?25l"
INCOMPLETE_ESCAPE = /\e(?:[ -\/]*|[\]PX^_][^\a\e]*|\[[0-?]*)$/
RESET_ATTRIBUTES = "\e[m"
RESET_TERMINAL_MODES = "\e[?1;5;2004l"
SHOW_CURSOR = "\e[?25h"

Instance Method Summary

Instance Method Detail

def lol(input : String, options : Options, &) #

[View source]
def lol(input : IO, options : Options, &) #

[View source]
def lol_cat(input : IO | String, options : Options) #

[View source]
def rainbow_color(freq : Float64, offset : Float64) : Tuple(UInt8, UInt8, UInt8) #

[View source]
def rainbow_line(line : String, options : Options, index : Int32, pos : Int32) : String #

[View source]
def rainbow_line(line : String, options : Options, offset : Float64) : String #

[View source]