LambdaHack-0.5.0.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

-> 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.

Frontend administration tools

frontendName :: String Source #

The name of the frontend.

startup :: DebugModeCli -> (FrontendSession -> IO ()) -> IO () Source #

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