termtab-0.1.0.0: TUI guitar tablature and score editor
Safe HaskellNone
LanguageGHC2021

Termtab.UI.Widgets.StatusBar

Description

The single-line status bar pinned at the bottom of the editor (Termtab.UI.drawUI): file/modified state, tempo and time signature, cursor position and zoom, playback state, and any transient status message — or, while typing a command, the command line itself in place of all of that.

Synopsis

Documentation

renderStatusBar :: AppState -> Widget ResourceName Source #

Render the status bar for the current AppState. Shows the raw command buffer (prefixed with :) when asInputMode is CommandMode; otherwise shows the usual file/tempo/position/playback summary, with any asMessage appended at the end.

statusBarAttr :: AttrName Source #

Attribute name for the normal status-bar styling (see Termtab.UI's theAttrMap for the actual Vty style).

commandModeAttr :: AttrName Source #

Attribute name for the :-prefixed command line shown while CommandMode is active.