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

Swarm.TUI.Panel

Description

A small custom "panel widget" for use in the Swarm TUI. Panels draw a border around some content, with the color of the border depending on whether the panel is currently focused. Panels exist within a FocusRing such that the user can cycle between the panels (using e.g. the Tab key).

Synopsis

Documentation

panel Source #

Arguments

:: Eq n 
=> AttrName

Border attribute to use when the panel is focused.

-> FocusRing n

Focus ring the panel should be part of.

-> n

The name of the panel. Must be unique.

-> BorderLabels n

The labels to use around the border.

-> Widget n

The content of the panel.

-> Widget n 

Create a panel.