LambdaHack-0.2.10.6: A roguelike game engine in early and active development

Safe HaskellNone

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

fdisplaySource

Arguments

:: FrontendSession

frontend session data

-> Bool 
-> Maybe SingleFrame

the screen frame to draw

-> IO () 

Output to the screen via the frontend.

fpromptGetKey :: FrontendSession -> SingleFrame -> IO KMSource

Display a prompt, wait for any key.

Frontend administration tools

frontendName :: StringSource

The name of the frontend.

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

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