timeless-0.8.1.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 
-> (Int, Int) 
-> (Int, Int) 
-> IO (Int, Int) 

Statefully draw 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