Skip to main content

Module color

Module color 

Source
Expand description

Port of fontTools.diff.color: coloring the lines of a unified diff with ANSI escape codes.

Constants§

ANSICOLORS
ansicolors: the ANSI escape codes by name.
CYAN_START
cyan_start.
GREEN_START
green_start.
RED_START
red_start.
RESET
reset.

Functions§

color_unified_diff_line
color_unified_diff_line: the line colored according to its type in a unified diff: added lines green, removed lines red, hunk headers cyan.