A PureScript wrapper for Charm.
Use ansi terminal characters to write colors and cursor positions.
import Prelude
import Node.Charm
main :: Eff (charm :: CHARM) Unit
main = do
let c = charm []
render c do
reset
right 16
write "beep"
down 1
right 32
foreground $ Left Magenta
write "boop\n"
display Reset
end
-
Right now
purescript-charm
only works with the defaultprocess.stdin
/process.stdout
. -
getPosition
doesn't work.