Skip to content

Modern Tui TuiTerminal TakeResize

Paul Squires edited this page Nov 9, 2026 · 7 revisions

Home › Terminal TUI Library › Terminal › TuiTerminal.TakeResize

TuiTerminal.TakeResize

Returns true once after each resize of the terminal, then false.

Syntax

TuiTerminal.TakeResize( ) as boolean

Description

Consumes the pending-resize flag: true once per resize, false afterwards. On Linux and macOS SIGWINCH sets it; on Windows the resize arrives as an input record instead. Taking it is what stops one resize being handled twice.

Example

#import "std/tui"
using tui

dim as TuiTerminal term
print term.TakeResize( )          '' false -- nothing pending
print term.TakeResize( )          '' false -- and it stays consumed

See also

TuiTerminal TuiTerminal.IsActive TuiTerminal.DetectCaps TuiTerminal.Flush
TuiTerminal.Enter TuiTerminal.Size TuiTerminal.Write TuiTerminal.Discard
TuiTerminal.Leave TuiTerminal.Caps TuiTerminal.WriteText TuiTerminal.Pending

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


Home · Keyword Index

Clone this wiki locally