Safe Haskell | None |
---|
- data Vty = Vty {}
- mkVty :: IO Vty
- mkVtyEscDelay :: Int -> IO Vty
- module Graphics.Vty.Terminal
- module Graphics.Vty.Picture
- module Graphics.Vty.DisplayRegion
- data Key
- data Modifier
- data Button
- data Event
Documentation
The main object. At most one should be created. An alternative is to use unsafePerformIO to automatically create a singleton Vty instance when required.
This does not assure any thread safety. In theory, as long as an update action is not executed when another update action is already then it's safe to call this on multiple threads.
todo: Once the Terminal interface encompasses input this interface will be deprecated. Currently, just using the Terminal interface there is no support for input events.
Vty | |
|
Set up the state object for using vty. At most one state object should be created at a time.
mkVtyEscDelay :: Int -> IO VtySource
Set up the state object for using vty. At most one state object should be created at a time. The delay, in microseconds, specifies the period of time to wait for a key following reading ESC from the terminal before considering the ESC key press as a discrete event.
module Graphics.Vty.Terminal
module Graphics.Vty.Picture
module Graphics.Vty.DisplayRegion
Representations of non-modifier keys.
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.
Mouse buttons. Not yet used.