Table of Contents

Method GetColumns

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

GetColumns(Rune)

Gets the number of columns the rune occupies in the terminal.

public static int GetColumns(this Rune rune)

Parameters

rune Rune

The rune to measure.

Returns

int

The number of columns required to fit the rune, 0 if the argument is the null character, or -1 if the value is not printable, otherwise the number of columns that the rune occupies.

Remarks

This is a Terminal.Gui extension method to Rune to support TUI text manipulation.