Skip to content

Modern Tui TuiFrame CursorPos

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

Home › Terminal TUI Library › Buffer and Frame › TuiFrame.CursorPos

TuiFrame.CursorPos

Returns the cell where the cursor was last put.

Syntax

TuiFrame.CursorPos( ) as TuiPos

Description

Where the cursor was last put.

Example

#import "std/tui"
using tui

dim as TuiScreen scr
scr.Resize( 10, 3 )
dim as TuiFrame ptr f = scr.BeginFrame( )
f->SetCursor( 4, 1 )
dim as TuiPos p = f->CursorPos( )
print p.x, p.y                    '' 4 1

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