terminal_style/private/sgr

Search:
Group by:
Source   Edit  

Shared SGR reset parsing for composition and layout.

Procs

proc sgrResetTail(sequence: string): tuple[hasReset: bool, trailing: string] {.
    ...raises: [], tags: [], forbids: [].}
Finds the last full reset and the SGR parameters that follow it. Extended-color arguments belong to their color command, even when zero. Source   Edit