Copyright | (c) Eric Mertens 2016 |
---|---|
License | ISC |
Maintainer | emertens@gmail.com |
Safe Haskell | None |
Language | Haskell2010 |
This module is responsible for dispatching user-input, network, and timer events to the correct module. It renders the user interface once per event.
Synopsis
- eventLoop :: Vty -> ClientState -> IO ()
- updateTerminalSize :: Vty -> ClientState -> IO ClientState
Documentation
eventLoop :: Vty -> ClientState -> IO () Source #
Apply this function to an initial ClientState
to launch the client.
updateTerminalSize :: Vty -> ClientState -> IO ClientState Source #
Update the height and width fields of the client state