Use ansi terminal characters to write colors and cursor positions.
Port from @substack
Reset the entire screen, like the /usr/bin/reset command.
Charm.write "Nom nom nom"
Pass along msg
to the output stream.
Set the cursor position to the absolute coordinates x, y
.
Charm.display :bright
Set the display mode with the atom defined in IO.ANSI
.
Charm.foreground :blue
Set the foreground color with the atom :color
, which can be:
- :red
- :yellow
- :green
- :blue
- :cyan
- :magenta
- :black
- :white
Charm.background :red
Set the background color with the atom :color
, which can be:
- :red
- :yellow
- :green
- :blue
- :cyan
- :magenta
- :black
- :white
Set the cursor visibility with a boolean.
Charm.cursor true
With hex do: