-
Home
-
API
-
XenoAtom.Terminal
-
TerminalTextUtility
-
Methods
-
TryGetIndexAtCell(ReadOnlySpan, Int32, out Int32, Int32)
TryGetIndexAtCell(ReadOnlySpan, Int32, out Int32, Int32) Method
Definition
Attempts to map a terminal cell offset to a UTF-16 index in text.
public static bool TryGetIndexAtCell(ReadOnlySpan<char> text, int cellOffset, scoped out int index, int tabWidth = 4)
Parameters
Returns