Safe Haskell | None |
---|---|
Language | Haskell2010 |
Text frontend based on stdin/stdout, intended for bots.
- data FrontendSession
- fdisplay :: FrontendSession -> Bool -> Maybe SingleFrame -> IO ()
- fpromptGetKey :: FrontendSession -> SingleFrame -> IO KM
- fsyncFrames :: FrontendSession -> IO ()
- frontendName :: String
- startup :: DebugModeCli -> (FrontendSession -> IO ()) -> IO ()
Session data type for the frontend
data FrontendSession Source
No session data needs to be maintained by this frontend.
The output and input operations
:: FrontendSession | frontend session data |
-> Bool | |
-> Maybe SingleFrame | the screen frame to draw |
-> IO () |
Output to the screen via the frontend.
fpromptGetKey :: FrontendSession -> SingleFrame -> IO KM Source
Display a prompt, wait for any key.
fsyncFrames :: FrontendSession -> IO () Source
Frontend administration tools
The name of the frontend.
startup :: DebugModeCli -> (FrontendSession -> IO ()) -> IO () Source
Starts the main program loop using the frontend input and output.