Skip to content

Modern Tui TuiCell Equals

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

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

TuiCell.Equals

Returns true if two cells have the same character, style and width.

Syntax

TuiCell.Equals( byval o as TuiCell ) as boolean

Description

Character, combining tail, style and width. This is the comparison the diff runs ten thousand times a frame, which is why the cell is kept small.

Example

#import "std/tui"
using tui

dim as TuiCell a = TuiCellBlank( TuiStyleDefault( ) )
dim as TuiCell b = TuiCellBlank( TuiStyleDefault( ) )
print a.Equals( b )               '' true
b.SetChar( asc( "x" ) )
print a.Equals( b )               '' false

See also

TuiCell TuiCellBlank TuiBuffer.Resize TuiBuffer.InBounds TuiBuffer.Count TuiFrame.Area
TuiCell.SetChar 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