vty-5.0.0: A simple terminal UI library

Safe HaskellNone
LanguageHaskell2010

Graphics.Vty.Input.Loop

Description

The input layer used to be a single function that correctly accounted for the non-threaded runtime by emulating the terminal VMIN adn VTIME handling. This has been removed and replace with a more straightforward parser. The non-threaded runtime is no longer supported.

This is an example of an algorithm where code coverage could be high, even 100%, but the behavior is still under tested. I should collect more of these examples...

Documentation

data Input Source

Constructors

Input 

Fields

_eventChannel :: Chan Event

Channel of events direct from input processing. Unlike nextEvent this will not refresh the display if the next event is an EvResize.

shutdownInput :: IO ()

Shuts down the input processing. This should return the terminal input state to before the input initialized.

_configRef :: IORef Config

Changes to this value are reflected after the next event.

_inputFd :: Fd

File descriptor used for input.

_inputDebug :: Maybe Handle

input debug log

data InputBuffer Source

Constructors

InputBuffer 

Fields

_ptr :: Ptr Word8
 
_size :: Int
 

attributeControl :: Fd -> IO (IO (), IO ()) Source

setTermTiming :: Fd -> Int -> Int -> IO () Source