Skip to content

Modern Tui TuiBuffer Clear

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

Home › Terminal TUI Library › Buffer and Frame › TuiBuffer.Clear

TuiBuffer.Clear

Fills every cell with a space in the given style.

Syntax

TuiBuffer.Clear( byval st as TuiStyle )

Description

Fills every cell with a blank in the given style.

Example

#import "std/tui"
using tui

dim as TuiBuffer b
b.Resize( 4, 2 )
b.Clear( TuiStyleOf( TuiWhite( ), TuiBlue( ) ) )
print b.At( 3, 1 )->st.bg.Index( )     '' 4 -- blue, everywhere

See also

TuiCell TuiCell.Equals TuiBuffer TuiBuffer.InBounds TuiBuffer.Count TuiFrame.Area
TuiCell.SetChar TuiCellBlank TuiBuffer.Resize TuiBuffer.At TuiFrame TuiFrame.Clip

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


Home · Keyword Index

Clone this wiki locally