Safe Haskell | Safe |
---|---|
Language | Haskell98 |
HsCharm wraps charm, a minimal ncurses-like terminal UI library
- charmVersion :: String
- getWidth :: IO Int
- getHeight :: IO Int
- cursorOff :: IO ()
- cursorOn :: IO ()
- echoOff :: IO ()
- echoOn :: IO ()
- rawOn :: IO ()
- rawOff :: IO ()
- getCursor :: IO (Int, Int)
- moveCursor :: Int -> Int -> IO ()
- blotChar :: Char -> IO ()
- blotString :: String -> IO ()
- hCenterString :: String -> IO ()
- vCenterString :: String -> IO ()
- clearScreen :: IO ()
- handleSignal :: Int -> IO ()
- startCharm :: IO ()
- endCharm :: IO ()
- getKey :: IO Key
- data Key
- = KeyBackspace
- | KeyTab
- | KeyNewline
- | KeySpace
- | KeyExclamation
- | KeyDoubleQuote
- | KeyHash
- | KeyDollar
- | KeyPercent
- | KeyAmpersand
- | KeySingleQuote
- | KeyLeftParen
- | KeyRightParen
- | KeyAsterisk
- | KeyPlus
- | KeyComma
- | KeyMinus
- | KeyPeriod
- | KeySlash
- | KeyZero
- | KeyOne
- | KeyTwo
- | KeyThree
- | KeyFour
- | KeyFive
- | KeySix
- | KeySeven
- | KeyEight
- | KeyNine
- | KeyColon
- | KeySemicolon
- | KeyLessThan
- | KeyEquals
- | KeyGreaterThan
- | KeyQuestion
- | KeyAt
- | KeyCapitalA
- | KeyCapitalB
- | KeyCapitalC
- | KeyCapitalD
- | KeyCapitalE
- | KeyCapitalF
- | KeyCapitalG
- | KeyCapitalH
- | KeyCapitalI
- | KeyCapitalJ
- | KeyCapitalK
- | KeyCapitalL
- | KeyCapitalM
- | KeyCapitalN
- | KeyCapitalO
- | KeyCapitalP
- | KeyCapitalQ
- | KeyCapitalR
- | KeyCapitalS
- | KeyCapitalT
- | KeyCapitalU
- | KeyCapitalV
- | KeyCapitalW
- | KeyCapitalX
- | KeyCapitalY
- | KeyCapitalZ
- | KeyLeftBracket
- | KeyBackslash
- | KeyRightBracket
- | KeyCaret
- | KeyUnderscore
- | KeyBacktick
- | KeyA
- | KeyB
- | KeyC
- | KeyD
- | KeyE
- | KeyF
- | KeyG
- | KeyH
- | KeyI
- | KeyJ
- | KeyK
- | KeyL
- | KeyM
- | KeyN
- | KeyO
- | KeyP
- | KeyQ
- | KeyR
- | KeyS
- | KeyT
- | KeyU
- | KeyV
- | KeyW
- | KeyX
- | KeyY
- | KeyZ
- | KeyLeftBrace
- | KeyPipe
- | KeyRightBrace
- | KeyTilde
- | KeyUp
- | KeyDown
- | KeyRight
- | KeyLeft
- | KeyEscape
- | KeyUnknown
Documentation
charmVersion :: String Source #
charmVersion is semver.
blotString :: String -> IO () Source #
blotString renders a string message.
hCenterString :: String -> IO () Source #
hCenterString displays a string centered horizontally on screen.
vCenterString :: String -> IO () Source #
vCenterString displays a string centered vertically on screen.
clearScreen :: IO () Source #
clearScreen wipes the terminal display.
handleSignal :: Int -> IO () Source #
handleSignal dispatches events.
startCharm :: IO () Source #
startCharm prepares the charm session.
Key models keybard input.