Skip to content

Modern Tui TuiInput Buffered

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

Home › Terminal TUI Library › Events › TuiInput.Buffered

TuiInput.Buffered

Counts the bytes held that do not yet make a whole event.

Syntax

TuiInput.Buffered( ) as int32

Description

Bytes held that have not yet formed an event.

Example

#import "std/tui"
using tui

dim as TuiInput keys
keys.Feed( chr( 27 ) & "[" )
print keys.Buffered( ) > 0         '' -1 (true)  -- an incomplete sequence

See also

TuiEvent TuiKey.IsChar TuiMouse TuiInput TuiInput.NextEvent TuiInput.Reset
TuiKey TuiKey.HasMod TuiKeyName TuiInput.Feed TuiInput.PushEvent TuiInput.Queued

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


Home · Keyword Index

Clone this wiki locally