Skip to content

Modern Tui TuiScreen Front

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

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

TuiScreen.Front

Returns the buffer the terminal is taken to show: the last frame sent.

Syntax

TuiScreen.Front( ) as TuiBuffer ptr

Description

What the terminal is believed to be showing. After Render the two buffers have swapped, so this is the frame just sent.

Example

#import "std/numeric"
#import "std/tui"
using tui, numeric

dim as TuiScreen scr
scr.Resize( 20, 3 )
dim as TuiFrame ptr f = scr.BeginFrame( )
f->DrawText( 0, 0, "x", TuiStyleDefault( ) )
scr.Render( TUIDEPTH_ANSI16 )
print scr.Front( )->Count( )      '' 60

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