Safe Haskell | None |
---|
Re-export the operations of the chosen raw frontend (determined at compile time with cabal flags).
- type FrontendSession = ()
- startup :: String -> (FrontendSession -> IO ()) -> IO ()
- frontendName :: String
- nextEvent :: FrontendSession -> Maybe Bool -> IO (Key, Modifier)
- promptGetAnyKey :: FrontendSession -> SingleFrame -> IO (Key, Modifier)
- display :: FrontendSession -> Bool -> Bool -> Maybe SingleFrame -> IO ()
Re-exported raw frontend
type FrontendSession = ()Source
No session data needs to be maintained by this frontend.
startup :: String -> (FrontendSession -> IO ()) -> IO ()Source
Starts the main program loop using the frontend input and output.
The name of the frontend.
promptGetAnyKey :: FrontendSession -> SingleFrame -> IO (Key, Modifier)Source
Display a prompt, wait for any key.
:: FrontendSession | frontend session data |
-> Bool | |
-> Bool | |
-> Maybe SingleFrame | the screen frame to draw |
-> IO () |
Output to the screen via the frontend.