Console Graphics

ConsoleCodes.GraphicsModule
Graphics

Module for setting console graphics options. Note that many of these are not universally supported.

ConsoleCodes.Graphics.italicFunction
Graphics.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.strikeFunction
Graphics.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.foregroundFunction
Graphics.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.backgroundFunction
Graphics.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