Console Graphics
ConsoleCodes.Graphics
— ModuleGraphics
Module for setting console graphics options. Note that many of these are not universally supported.
ConsoleCodes.Graphics.set
— FunctionGraphics.set(args...)
Set console graphics options.
ConsoleCodes.Graphics.reset
— FunctionGraphics.reset()
Reset all console graphics options to their defaults.
ConsoleCodes.Graphics.bold
— FunctionGraphics.bold(on)
Set (on=true
) or disable (on=true
) console graphics printing as bold.
ConsoleCodes.Graphics.italic
— FunctionGraphics.italic(on)
Set (on=true
) or disable (on=false
) console graphics printing as italic.
Note that, oddly, this is option is not listed in man console_codes
but seems to be supported by Linux anyway.
ConsoleCodes.Graphics.strike
— FunctionGraphics.strike(on)
Set (on=true
) or disable (on=false
) console graphics printing with a strike-through.
Note that, oddly, this is option is not listed in man console_codes
but seems to be supported by Linux anyway.
ConsoleCodes.Graphics.blink
— FunctionGraphics.blink(on)
Set (on=true
) or disable (on=false
) blinking console graphics.
ConsoleCodes.Graphics.reversecolors
— FunctionGraphics.reversecolors(on)
Set (on=true
) or disable (on=false
) console printing with inverted colors.
ConsoleCodes.Graphics.underline
— FunctionGraphics.underline(on)
Set (on=true
) or disable (on=false
) console printing with underlines.
ConsoleCodes.Graphics.foreground
— FunctionGraphics.foreground(c)
Graphics.foreground(r, g, b)
Set console graphics to print with foreground color c
, which can be either a Symbol
or an integer. If an integer, this will set a 256 foreground value. Alternatively, the integer triplet r, g, b
can be used to set 24-bit foreground.
Valid Symbol
options are:
:default, :black, :red, :green, :brown, :blue, :magenta, :cayn, :white
ConsoleCodes.Graphics.background
— FunctionGraphics.background(c)
Graphics.background(r, g, b)
Set console graphics to print with background color c
, which can be either a Symbol
or an integer. If an integer, this will set a 256 background value. Alternatively, the integer triplet r, g, b
can be used to set 24-bit background.
Valid Symbol
options are:
:default, :black, :red, :green, :brown, :blue, :magenta, :cayn, :white