mirror of
https://github.com/ilyakooo0/vty.git
synced 2024-11-29 08:49:40 +03:00
Whitespace
This commit is contained in:
parent
092cca91ca
commit
b7861b38a5
@ -79,26 +79,27 @@ import Data.Semigroup ((<>))
|
||||
-- 5. Shutdown vty.
|
||||
--
|
||||
-- Operations on Vty handles are not thread-safe.
|
||||
data Vty = Vty
|
||||
{ -- | Outputs the given 'Picture'.
|
||||
update :: Picture -> IO ()
|
||||
-- | Return the next 'Event' or block until one becomes available.
|
||||
data Vty =
|
||||
Vty { update :: Picture -> IO ()
|
||||
-- ^ Outputs the given 'Picture'.
|
||||
, nextEvent :: IO Event
|
||||
-- | Non-blocking version of 'nextEvent'.
|
||||
-- ^ Return the next 'Event' or block until one becomes
|
||||
-- available.
|
||||
, nextEventNonblocking :: IO (Maybe Event)
|
||||
-- | The input interface. See 'Input'.
|
||||
-- ^ Non-blocking version of 'nextEvent'.
|
||||
, inputIface :: Input
|
||||
-- | The output interface. See 'Output'.
|
||||
-- ^ The input interface. See 'Input'.
|
||||
, outputIface :: Output
|
||||
-- | Refresh the display. If other programs output to the terminal
|
||||
-- and mess up the display then the application might want to
|
||||
-- force a refresh using this function.
|
||||
-- ^ The output interface. See 'Output'.
|
||||
, refresh :: IO ()
|
||||
-- | Clean up after vty. A call to this function is necessary to
|
||||
-- cleanly restore the terminal state before application exit. The
|
||||
-- above methods will throw an exception if executed after this is
|
||||
-- executed. Idempotent.
|
||||
-- ^ Refresh the display. If other programs output to the
|
||||
-- terminal and mess up the display then the application might
|
||||
-- want to force a refresh using this function.
|
||||
, shutdown :: IO ()
|
||||
-- ^ Clean up after vty. A call to this function is necessary to
|
||||
-- cleanly restore the terminal state before application exit.
|
||||
-- The above methods will throw an exception if executed after
|
||||
-- this is executed. Idempotent.
|
||||
, isShutdown :: IO Bool
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user