Skip to content

Modern Tui TuiScreen Resize

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

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

TuiScreen.Resize

Changes the screen size in cells and forces a full repaint.

Syntax

TuiScreen.Resize( byval ncols as int32, byval nrows as int32 )

Description

Reshapes both buffers and invalidates. Call this on a resize event -- TuiRun already does.

Example

#import "std/tui"
using tui

dim as TuiScreen scr
scr.Resize( 80, 24 )
print scr.Cols( ), scr.Rows( )    '' 80 24
scr.Resize( 120, 40 )
print scr.Cols( ), scr.Rows( )    '' 120 40

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