Skip to content

Modern Tui TuiStatusBar

Paul Squires edited this page Oct 19, 2026 · 6 revisions

Home › Terminal TUI Library › Overlays and Chrome › TuiStatusBar

TuiStatusBar

Draws one row of status items, some packed to the left and some to the right.

Syntax

type TuiStatusBar extends TuiWidget
    as TuiStatusItemArray items
    as TuiStyle background
end type

Description

One row of items, packed from the left and from the right. Left items run in the order added; right items sit hard against the right edge.

Example

#import "std/tui"
using tui

dim as TuiScreen scr
scr.Resize( 40, 1 )
dim as TuiFrame ptr f = scr.BeginFrame( )
dim as TuiTheme th = TuiThemeDefault( )

dim as TuiStatusBar sb
sb.background = th.dim_
sb.Add( " up/dn select ", th.normal, TUIALIGN_LEFT )
sb.Add( " q quit ", th.danger, TUIALIGN_LEFT )
sb.Add( "3/24 ", th.accent, TUIALIGN_RIGHT )       '' against the right edge
sb.Render( *f, f->Area( ) )
print sb.items.Count( )           '' 3

See also

TuiPopup TuiMessageBox.Cancelled TuiMenuBar.IsOpen TuiStatusBar.Add
TuiMessageBox TuiMenu TuiStatusItem TuiTreeNode
TuiMessageBox.Accepted TuiMenuBar TuiStatusItemOf TuiTreeState

Library: Terminal TUI Library
Category: Terminal TUI Library
Documented under: Overlays and Chrome
Working examples: hello.tiko · form.tiko · dashboard.tiko


Home · Keyword Index

Clone this wiki locally