vty-4.7.5: A simple terminal UI library

Safe HaskellNone

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.