Skip to content

blaix/gren-ansi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gren ANSI

Control terminal text, cursor, and screen with ANSI escape sequences in Gren.

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!

About

Control terminal text, cursor, and screen with ANSI escape sequences in Gren

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages