hscharm-0.0.1: Wau codec

Safe HaskellSafe
LanguageHaskell98

HsCharm

Description

HsCharm wraps charm, a minimal ncurses-like terminal UI library

Synopsis

Documentation

charmVersion :: String Source #

charmVersion is semver.

getWidth :: IO Int Source #

getWidth queries terminal width.

getHeight :: IO Int Source #

getHeight queries terminal height

cursorOff :: IO () Source #

cursorOff hides the cursor.

cursorOn :: IO () Source #

cursorOn shows the cursor.

echoOff :: IO () Source #

echoOff disables key echoing.

echoOn :: IO () Source #

echoOn enables key echoing.

rawOn :: IO () Source #

rawOn enables raw manipulation.

rawOff :: IO () Source #

rawOff disables raw manipulation.

getCursor :: IO (Int, Int) Source #

getCursor queries the cursor position.

moveCursor :: Int -> Int -> IO () Source #

moveCursor repositions the cursor.

blotChar :: Char -> IO () Source #

blotChar renders a chacter.

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.

endCharm :: IO () Source #

endCharm tears down charm session resources.

getKey :: IO Key Source #

getKey queries key presses.

data Key Source #

Key models keybard input.

Instances

Enum Key Source # 

Methods

succ :: Key -> Key #

pred :: Key -> Key #

toEnum :: Int -> Key #

fromEnum :: Key -> Int #

enumFrom :: Key -> [Key] #

enumFromThen :: Key -> Key -> [Key] #

enumFromTo :: Key -> Key -> [Key] #

enumFromThenTo :: Key -> Key -> Key -> [Key] #

Eq Key Source # 

Methods

(==) :: Key -> Key -> Bool #

(/=) :: Key -> Key -> Bool #

Ord Key Source # 

Methods

compare :: Key -> Key -> Ordering #

(<) :: Key -> Key -> Bool #

(<=) :: Key -> Key -> Bool #

(>) :: Key -> Key -> Bool #

(>=) :: Key -> Key -> Bool #

max :: Key -> Key -> Key #

min :: Key -> Key -> Key #

Show Key Source # 

Methods

showsPrec :: Int -> Key -> ShowS #

show :: Key -> String #

showList :: [Key] -> ShowS #