klyn.gui.terminal.TerminalFrame.invertRange
method
public invertRange(row as Int, startCol as Int, endCol as Int) as Void
Description

Inverts the visual style of a horizontal cell range [startCol, endCol) on a row.

Out-of-bounds columns or rows are safely clipped to the frame dimensions.

Parameters
ParameterDescription
row0-based row index.
startCol0-based inclusive start column index.
endCol0-based exclusive end column index.
Example
frame = TerminalFrame(20, 4)
frame.writeStyledText(0, 0, "Hello")
frame.invertRange(0, 1, 4)