Skip to content

Modern Tui TuiMagenta

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

Home › Terminal TUI Library › Colour and Style › TuiMagenta

TuiMagenta

Returns the classic magenta, palette colour 5.

Syntax

TuiMagenta( ) as TuiColor

Description

Shorthand for TuiAnsi( TUIC_MAGENTA ) -- palette index 5.

Example

#import "std/tui"
using tui

dim as TuiColor c = TuiMagenta( )
print c.Index( )                  '' 5
dim as TuiStyle s = TuiStyleOf( c, TuiDefaultColor( ), TUIATTR_BOLD )
print s.HasAttr( TUIATTR_BOLD )   '' true

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