Copyright | (c) 2015 Rongcui Dong |
---|---|
License | BSD3 |
Maintainer | Rongcui Dong <karl_1702@188.com> |
Safe Haskell | None |
Language | Haskell2010 |
- data InitConfig = InitConfig {}
- defaultInitConfig :: InitConfig
- initConsole :: InitConfig -> IO ()
- asciiBox :: Int -> Int -> ColorIntensity -> Color -> IO ()
- drawChar :: Char -> Int -> Int -> ColorIntensity -> Color -> IO ()
- drawCharS :: Char -> ColorIntensity -> Color -> V2 Int -> V2 Int -> IO (V2 Int)
- sMoveChar :: MonadIO m => Char -> ColorIntensity -> Color -> V2 Int -> Signal s m (V2 Int) ()
- clearLineRange :: Int -> Int -> Int -> IO ()
- sInputNonBlocking :: Signal s IO () (Maybe Char)
Documentation
data InitConfig Source #
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
:: 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
Clears a certain column range on a certain row