Safe Haskell | None |
---|---|
Language | Haskell2010 |
Display game data on the screen and receive user input using one of the available raw frontends and derived operations.
- data FrontReq
- = FrontNormalFrame { }
- | FrontRunningFrame { }
- | FrontDelay
- | FrontKey {
- frontKM :: ![KM]
- frontFr :: !SingleFrame
- | FrontSlides {
- frontClear :: ![KM]
- frontSlides :: ![SingleFrame]
- | FrontAutoYes !Bool
- | FrontFinish
- data ChanFrontend = ChanFrontend {}
- frontendName :: String
- startupF :: DebugModeCli -> (Maybe (MVar ()) -> (ChanFrontend -> IO ()) -> IO ()) -> IO ()
Connection types.
FrontNormalFrame | show a frame |
FrontRunningFrame | show a frame in running mode (don't insert delay between frames) |
FrontDelay | perform a single explicit delay |
FrontKey | flush frames, possibly show fadeout/fadein and ask for a keypress |
| |
FrontSlides | show a whole slideshow without interleaving with other clients |
| |
FrontAutoYes !Bool | set the frontend option for auto-answering prompts |
FrontFinish | exit frontend loop |
data ChanFrontend Source
Connection channel between a frontend and a client. Frontend acts as a server, serving keys, when given frames to display.
Re-exported part of the raw frontend
The name of the chosen frontend.
A derived operation
startupF :: DebugModeCli -> (Maybe (MVar ()) -> (ChanFrontend -> IO ()) -> IO ()) -> IO () Source