#if __GLASGOW_HASKELL__ >= 703
#endif
module System.Console.Terminfo.Keys(
keypadOn,
keypadOff,
keyUp,
keyDown,
keyLeft,
keyRight,
functionKey,
keyBackspace,
keyDeleteChar,
keyHome,
keyEnd,
keyPageUp,
keyPageDown,
keyEnter,
) where
import System.Console.Terminfo.Base
keypadOn :: TermStr s => Capability s
keypadOn = tiGetOutput1 "smkx"
keypadOff :: TermStr s => Capability s
keypadOff = tiGetOutput1 "rmkx"
keyUp :: Capability String
keyUp = tiGetOutput1 "kcuu1"
keyDown :: Capability String
keyDown = tiGetOutput1 "kcud1"
keyLeft :: Capability String
keyLeft = tiGetOutput1 "kcub1"
keyRight :: Capability String
keyRight = tiGetOutput1 "kcuf1"
functionKey :: Int -> Capability String
functionKey n = tiGetOutput1 ("kf" ++ show n)
keyBackspace :: Capability String
keyBackspace = tiGetOutput1 "kbs"
keyDeleteChar :: Capability String
keyDeleteChar = tiGetOutput1 "kdch1"
keyHome :: Capability String
keyHome = tiGetOutput1 "khome"
keyEnd :: Capability String
keyEnd = tiGetOutput1 "kend"
keyPageUp :: Capability String
keyPageUp = tiGetOutput1 "kpp"
keyPageDown :: Capability String
keyPageDown = tiGetOutput1 "knp"
keyEnter :: Capability String
keyEnter = tiGetOutput1 "kent"