Skip to content

Modern Tui TuiDefaultColor

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

Home › Terminal TUI Library › Colour and Style › TuiDefaultColor

TuiDefaultColor

Returns the terminal's own default colour; as a background it does not paint.

Syntax

TuiDefaultColor( ) as TuiColor

Description

The terminal's own default foreground or background -- whatever the user configured. A default background does not paint over what is beneath it.

Example

#import "std/tui"
using tui

dim as TuiStyle s = TuiStyleOf( TuiRgb( 200, 200, 200 ), TuiDefaultColor( ), TUIATTR_NONE )
print s.bg.IsDefault( )           '' true -- text over the user's own background

See also

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

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