timeless-0.9.0.1: An Arrow based Functional Reactive Programming library

Copyright(c) 2015 Rongcui Dong
LicenseBSD3
MaintainerRongcui Dong <karl_1702@188.com>
Safe HaskellNone
LanguageHaskell2010

FRP.Timeless.Framework.Console

Description

 

Synopsis

Documentation

initConsole :: InitConfig -> IO () Source #

Initializes console

asciiBox :: Int -> Int -> ColorIntensity -> Color -> IO () Source #

Draw a filled ascii box with specified color and size. It will destroy SGR color state, be careful

drawChar :: Char -> Int -> Int -> ColorIntensity -> Color -> IO () Source #

Draw a character at a specific position. It will destroy SGR color state

drawCharS Source #

Arguments

:: Char

The character

-> ColorIntensity 
-> Color 
-> V2 Int

Previous Position, XY coordinate (Not R-C)

-> V2 Int

Next Position, XY coordinate

-> IO (V2 Int) 

Statefully draw character

sMoveChar :: MonadIO m => Char -> ColorIntensity -> Color -> V2 Int -> Signal s m (V2 Int) () Source #

Moves a character

clearLineRange Source #

Arguments

:: Int

Row

-> Int

Beginning Col

-> Int

End Col, non inclusive

-> IO () 

Clears a certain column range on a certain row

sInputNonBlocking :: Signal s IO () (Maybe Char) Source #

Gets character input from console without blocking