• Kevin J. McCarthy's avatar
    Fix ansi escape sequences with both reset and color parameters. (closes #3689) · 3ccd1990
    Kevin J. McCarthy authored
    The initial 0 "reset/normal" was setting attr = ANSI_OFF, which was
    subsequently being or'ed with ANSI_COLOR.
    
    The color resolution was then checking for the ANSI_OFF bit and
    turning all coloring off, even though ANSI_COLOR was also set.
    
    Change the color resolution to check for "attr == ANSI_OFF" instead, so
    the color isn't reset unless the reset occurs last in the sequence.
    3ccd1990
pager.c 73.8 KB