Skip to content

Modern Tui TuiBuffer Resize

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

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

TuiBuffer.Resize

Changes the grid size and blanks every cell.

Syntax

TuiBuffer.Resize( byval c as int32, byval r as int32 )

Description

Reshapes the grid and blanks it. Contents do not survive a resize, which is why a terminal resize also invalidates the screen.

Example

#import "std/tui"
using tui

dim as TuiBuffer b
b.Resize( 10, 3 )
print b.Count( )                  '' 30
b.Resize( 4, 2 )
print b.Count( )                  '' 8

See also

TuiCell TuiCell.Equals TuiBuffer TuiBuffer.InBounds TuiBuffer.Count TuiFrame.Area
TuiCell.SetChar TuiCellBlank TuiBuffer.Clear 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