Class Ansi
Source: ansi.ts
Provides utility functions for wrapping text in ANSI escape codes.
See
Methods
black()
staticblack(text:string):string
Makes text black using ANSI.fg.black.
Parameters
text
string
Returns
string
red()
staticred(text:string):string
Makes text red using ANSI.fg.red.
Parameters
text
string
Returns
string
green()
staticgreen(text:string):string
Makes text green using ANSI.fg.green.
Parameters
text
string
Returns
string
yellow()
staticyellow(text:string):string
Makes text yellow using ANSI.fg.yellow.
Parameters
text
string
Returns
string
blue()
staticblue(text:string):string
Makes text blue using ANSI.fg.blue.
Parameters
text
string
Returns
string
magenta()
staticmagenta(text:string):string
Makes text magenta using ANSI.fg.magenta.
Parameters
text
string
Returns
string
cyan()
staticcyan(text:string):string
Makes text cyan using ANSI.fg.cyan.
Parameters
text
string
Returns
string
white()
staticwhite(text:string):string
Makes text white using ANSI.fg.white.
Parameters
text
string
Returns
string
bold()
staticbold(text:string):string
Makes text bold using ANSI.decoration.bold.
Parameters
text
string
Returns
string
dim()
staticdim(text:string):string
Makes text dim using ANSI.decoration.dim.
Parameters
text
string
Returns
string