Skip to content

Modern Tui TuiCell SetChar

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

Home › Terminal TUI Library › Buffer and Frame › TuiCell.SetChar

TuiCell.SetChar

Sets the cell's character and works out its width in columns.

Syntax

TuiCell.SetChar( byval cp as uint32 )

Description

Sets the base codepoint and recomputes the cell's column width from the Unicode table.

Example

#import "std/tui"
using tui

dim as TuiCell c = TuiCellBlank( TuiStyleDefault( ) )
c.SetChar( &h3042 )               '' HIRAGANA A -- East Asian Wide
print c.width                     '' 2
c.SetChar( asc( "x" ) )
print c.width                     '' 1

See also

TuiCell TuiCellBlank TuiBuffer.Resize TuiBuffer.InBounds TuiBuffer.Count TuiFrame.Area
TuiCell.Equals TuiBuffer TuiBuffer.Clear TuiBuffer.At TuiFrame TuiFrame.Clip

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