Skip to content

Modern Tui TuiThemeMono

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

Home › Terminal TUI Library › Colour and Style › TuiThemeMono

TuiThemeMono

Returns a theme made from bold, dim, reverse and underline, with no colours.

Syntax

TuiThemeMono( ) as TuiTheme

Description

A theme built from ATTRIBUTES rather than colours -- bold, dim, reverse, underline. Use it when TuiCaps reports TUIDEPTH_MONO, or for output that has to survive being piped through something colour-blind.

Example

#import "std/tui"
using tui

dim as TuiTheme mo = TuiThemeMono( )
print mo.normal.fg.IsDefault( )        '' true -- it chooses no colours
print mo.selected.HasAttr( TUIATTR_REVERSE )   '' true

'' pick a theme from what the terminal can do
dim as TuiTerminal term
dim as TuiTheme th = iif( term.DetectCaps( ).depth = TUIDEPTH_MONO, _
                          TuiThemeMono( ), TuiThemeDefault( ) )

See also

TuiColor TuiColor.Equals TuiDefaultColor TuiIndexed TuiBlack TuiGreen
TuiColor.IsDefault TuiColor.Index TuiAnsi TuiRgb TuiRed TuiYellow

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


Home · Keyword Index

Clone this wiki locally