Gren ANSI

ANSI escape sequences for gren node apps.

import Ansi
import Stream exposing (Stream)

coolGreeting : Stream -> Cmd msg
coolGreeting stdout =
    "Hello!"
        |> Ansi.wrapItalic
        |> Ansi.wrapColor Ansi.Green
        |> Stream.sendLine stdout

See Ansi module docs for everything that's available.

There are also functions for controlling the screen and cursor. See the gren-tui examples for usage in a full program, including interactivity!