W3cubDocs

/Haskell 7

System.Console.Terminfo.Keys

Maintainer [email protected]
Stability experimental
Portability portable (FFI)
Safe Haskell Safe
Language Haskell2010

Description

The string capabilities in this module are the character sequences corresponding to user input such as arrow keys and function keys.

The keypad

The following commands turn the keypad on/off (smkx and rmkx). They have no effect if those capabilities are not defined. For portability between terminals, the keypad should be explicitly turned on before accepting user key input.

keypadOn :: TermStr s => Capability s Source

keypadOff :: TermStr s => Capability s Source

Arrow keys

keyUp :: Capability String Source

keyDown :: Capability String Source

keyLeft :: Capability String Source

keyRight :: Capability String Source

Miscellaneous

functionKey :: Int -> Capability String Source

Look up the control sequence for a given function sequence. For example, functionKey 12 retrieves the kf12 capability.

keyBackspace :: Capability String Source

keyDeleteChar :: Capability String Source

keyHome :: Capability String Source

keyEnd :: Capability String Source

keyPageUp :: Capability String Source

keyPageDown :: Capability String Source

keyEnter :: Capability String Source

© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/7.10.3/docs/html/libraries/terminfo-0.4.0.1/System-Console-Terminfo-Keys.html