vty-4.7.0.14: A simple terminal access library

Safe HaskellSafe-Infered

Graphics.Vty.LLInput

Synopsis

Documentation

data Key Source

Representations of non-modifier keys.

Instances

data Modifier Source

Modifier keys. Key codes are interpreted such that users are more likely to have Meta than Alt; for instance on the PC Linux console, MMeta will generally correspond to the physical Alt key.

Constructors

MShift 
MCtrl 
MMeta 
MAlt 

data Button Source

Mouse buttons. Not yet used.

Constructors

BLeft 
BMiddle 
BRight 

Instances

data Event Source

Generic events.

Instances

initTermInput :: Int -> Terminal -> IO (IO Event, IO ())Source

Set up the terminal for input. Returns a function which reads key events, and a function for shutting down the terminal access.