Skip to content

Modern Tui TuiColor IsDefault

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

Home › Terminal TUI Library › Colour and Style › TuiColor.IsDefault

TuiColor.IsDefault

Returns true if the colour is the terminal's own default.

Syntax

TuiColor.IsDefault( ) as boolean

Description

True when this is the terminal's own default colour rather than a chosen one. It matters because a default background does not paint: drawing with it leaves whatever was underneath, which is the whole reason TuiStyle.Patch exists.

Example

#import "std/tui"
using tui

print TuiDefaultColor( ).IsDefault( )        '' true
print TuiRgb( 0, 0, 0 ).IsDefault( )         '' false -- black is not default

See also

TuiColor TuiColor.Index TuiAnsi TuiRgb TuiRed TuiYellow
TuiColor.Equals TuiDefaultColor 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