Method GetColumns
GetColumns(string, bool)
Gets the number of columns the string occupies in the terminal.
public static int GetColumns(this string str, bool ignoreLessThanZero = true)
Parameters
strstringThe string to measure.
ignoreLessThanZeroboolIndicates whether to ignore values less than zero, such as control keys.
Returns
Remarks
This is a Terminal.Gui extension method to string to support TUI text manipulation.