swarm-0.5.0.0: 2D resource gathering game with programmable robots
LicenseBSD-3-Clause
Safe HaskellSafe-Inferred
LanguageHaskell2010

Swarm.TUI.View.Attribute.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 exception.

Synopsis

Documentation

swarmAttrMap :: AttrMap Source #

A mapping from the defined attribute names to TUI attributes.

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.

italicAttr :: AttrName Source #

Some defined attribute names used in the Swarm TUI.

dimAttr :: AttrName Source #

Some defined attribute names used in the Swarm TUI.

magentaAttr :: AttrName Source #

Some basic colors used in TUI.

cyanAttr :: AttrName Source #

Some basic colors used in TUI.

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