/purescript-charm

A PureScript wrapper for Charm

Primary LanguagePureScript

Purescript Charm

A PureScript wrapper for Charm.

Use ansi terminal characters to write colors and cursor positions.

Example

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

Missing

  • Right now purescript-charm only works with the default process.stdin / process.stdout.

  • getPosition doesn't work.