Skip to content

Modern Tui TuiRunOptions

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

Home › Terminal TUI Library › Application Loop › TuiRunOptions

TuiRunOptions

Holds loop settings: frames per second and whether Ctrl+C quits.

Syntax

type TuiRunOptions
    as int32 fps            '' 0 = the default 60
    as boolean quitOnCtrlC
end type

Description

Loop tuning. quitOnCtrlC exists because raw mode clears ISIG: Ctrl+C arrives neither as a signal nor as a key unless the loop synthesises it.

Example

#import "std/tui"
using tui

dim as TuiRunOptions ro = TuiRunOptionsDefault( )
print ro.fps, ro.quitOnCtrlC      '' 60 true

ro.fps = 30                       '' a dashboard does not need 60
ro.quitOnCtrlC = FALSE            '' an editor wants Ctrl+C for itself

See also

TuiApp TuiApp.Update TuiApp.Shutdown TuiNone TuiQuit TuiInvalidate
TuiApp.Init TuiApp.View TuiCmd TuiRedraw TuiTick TuiSuspend

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


Home · Keyword Index

Clone this wiki locally