Skip to content

Modern Tui TuiScreen Invalidate

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

Home › Terminal TUI Library › Buffer and Frame › TuiScreen.Invalidate

TuiScreen.Invalidate

Makes the next Render clear and repaint the whole screen.

Syntax

TuiScreen.Invalidate( )

Description

Forgets what the terminal is showing, so the next Render is a full repaint including a clear. Use it after anything that changed the screen behind the module's back -- a resize, a suspend, a shell-out.

Example

#import "std/tui"
using tui

dim as TuiScreen scr
scr.Resize( 10, 3 )
scr.BeginFrame( )
scr.Render( TUIDEPTH_ANSI16 )

scr.BeginFrame( )
print len( scr.Render( TUIDEPTH_ANSI16 ) )         '' 0 -- unchanged

scr.Invalidate( )
scr.BeginFrame( )
print len( scr.Render( TUIDEPTH_ANSI16 ) ) > 0 '' -1 (true)  -- full repaint

See also

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

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