swarm-0.1.0.0: 2D resource gathering game with programmable robots
CopyrightBrent Yorgey
LicenseBSD-3-Clause
Maintainerbyorgey@gmail.com
Safe HaskellSafe-Inferred
LanguageHaskell2010

Swarm.TUI.Attr

Description

Rendering attributes (i.e. foreground and background colors, styles, etc.) used by the Swarm TUI.

We export constants only for those we use in the Haskell code and not those used in the world map, to avoid abusing attributes. For example using the robot attribute to highlight some text.

The few attributes that we use for drawing the logo are an exeption.

Synopsis

Documentation

swarmAttrMap :: AttrMap Source #

A mapping from the defined attribute names to TUI attributes.

worldAttributes :: [(AttrName, Attr)] Source #

Colors of entities in the world.

Also used to color messages, so water is special and excluded.

Terrain attributes

Common attributes

robotAttr :: AttrName Source #

The default robot attribute.

Swarm TUI Attributes

highlightAttr :: AttrName Source #

Some defined attribute names used in the Swarm TUI.

notifAttr :: AttrName Source #

Some defined attribute names used in the Swarm TUI.

infoAttr :: AttrName Source #

Some defined attribute names used in the Swarm TUI.

boldAttr :: AttrName Source #

Some defined attribute names used in the Swarm TUI.

dimAttr :: AttrName Source #

Some defined attribute names used in the Swarm TUI.

cyanAttr :: AttrName Source #

Some basic colors used in TUI.

yellowAttr :: AttrName Source #

Some basic colors used in TUI.

blueAttr :: AttrName Source #

Some basic colors used in TUI.

greenAttr :: AttrName Source #

Some basic colors used in TUI.

redAttr :: AttrName Source #

Some basic colors used in TUI.

defAttr :: AttrName Source #

Some defined attribute names used in the Swarm TUI.

Orphan instances