terminfo-0.4.1.1: Haskell bindings to the terminfo library.

Maintainer[email protected]
Stabilityexperimental
Portabilityportable (FFI)
Safe HaskellSafe
LanguageHaskell2010

System.Console.Terminfo.Keys

Contents

Description

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

Synopsis

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.

Arrow keys

Miscellaneous

functionKey :: Int -> Capability String Source #

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