Utility methods for working with terminal text (cell width, rune navigation, word boundaries).
public static class TerminalTextUtility
kind:method, kind:property, kind:ctor. Press Esc to clear.GetPreviousRuneIndex(ReadOnlySpan<Char>, Int32)Gets the index of the previous rune boundary (UTF-16).GetPreviousTextElementIndex(ReadOnlySpan<Char>, Int32)Gets the index of the previous text element boundary (extended grapheme cluster) (UTF-16).GetRuneWidth(Rune, Int32)Gets the terminal cell width of a Unicode scalar value.GetWidth(ReadOnlySpan<Char>, Int32, Int32, Int32)Gets the terminal cell width of a slice of text (UTF-16).GetWidth(ReadOnlySpan<Char>, Int32)Gets the terminal cell width of a UTF-16 span.GetWordStart(ReadOnlySpan<Char>, Int32)Gets the start index of the word around index (best effort).IsLikelyEmojiScalar(Rune)Gets whether a Unicode scalar is likely to be rendered as an emoji-style wide glyph by terminals.IsWordStart(ReadOnlySpan<Char>, Int32)Gets whether index is at the start of a word.TryGetIndexAtCell(ReadOnlySpan<Char>, Int32, out Int32, Int32)Attempts to map a terminal cell offset to a UTF-16 index in text.