wolfadex/elm-ansi/3.0.0

NOTE: the latest version is 3.0.1

Ansi.Decode

type alias Key =
{ code : Maybe String
, ctrl : Bool
, meta : Bool
, name : String
, sequence : String
, shift : Bool
}
decodeKey : Decoder Key

You can configure Node to listen for key events, this will parse those into a nice record.

getCommand : String -> Maybe String

If the input is an ansi command, return the command portion, with the escape code removed.

isDownArrow : String -> Bool
isLeftArrow : String -> Bool
isRightArrow : String -> Bool
isUpArrow : String -> Bool