Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- setupScreenStyle :: IO ()
- askShouldExit :: TMState -> IO ResponseType
- forceQuit :: TMState -> IO ()
- setupAppCallbacks :: TMState -> TMConfig -> Application -> ApplicationWindow -> Notebook -> TMWindowId -> IO ()
- setupTermonad :: TMConfig -> Application -> ApplicationWindow -> Builder -> IO ()
- appActivate :: TMConfig -> Application -> IO ()
- appStartup :: Application -> IO ()
- start :: TMConfig -> IO ()
Documentation
setupScreenStyle :: IO () Source #
askShouldExit :: TMState -> IO ResponseType Source #
Try to figure out whether Termonad should exit. This also used to figure out if Termonad should close a given terminal.
This reads the confirmExit
setting from ConfigOptions
to check whether
the user wants to be notified when either Termonad or a given terminal is
about to be closed.
If confirmExit
is True
, then a dialog is presented to the user asking
them if they really want to exit or close the terminal. Their response is
sent back as a ResponseType
.
If confirmExit
is False
, then this function always returns
ResponseTypeYes
.
forceQuit :: TMState -> IO () Source #
Force Termonad to exit without asking the user whether or not to do so.
setupAppCallbacks :: TMState -> TMConfig -> Application -> ApplicationWindow -> Notebook -> TMWindowId -> IO () Source #
setupTermonad :: TMConfig -> Application -> ApplicationWindow -> Builder -> IO () Source #
appActivate :: TMConfig -> Application -> IO () Source #
appStartup :: Application -> IO () Source #