LambdaHack-0.4.100.0: A game engine library for roguelike dungeon crawlers

Safe HaskellNone
LanguageHaskell2010

Game.LambdaHack.Client.UI.Frontend.Std

Contents

Description

Text frontend based on stdin/stdout, intended for bots.

Synopsis

Session data type for the frontend

data FrontendSession Source

No session data needs to be maintained by this frontend.

The output and input operations

fdisplay Source

Arguments

:: FrontendSession

frontend session data

-> Bool 
-> Maybe SingleFrame

the screen frame to draw

-> SIO.IO () 

Output to the screen via the frontend.

fpromptGetKey :: FrontendSession -> SingleFrame -> SIO.IO KM Source

Display a prompt, wait for any key.

Frontend administration tools

frontendName :: String Source

The name of the frontend.

startup :: DebugModeCli -> (FrontendSession -> SIO.IO ()) -> SIO.IO () Source

Starts the main program loop using the frontend input and output.