euporie.core.ft.table.fragment_list_width

euporie.core.ft.table.fragment_list_width(fragments: StyleAndTextTuples) int

Return the character width of this text fragment list.

Takes double width characters into account, and ignore special fragments: * ZeroWidthEscape * ReverseOverwrite

Parameters:

fragments – List of (style_str, text) or (style_str, text, mouse_handler) tuples.

Returns:

The width of the fragment list