Skip to content

ANSI escapes for bold in tables headers are being sent even when output is not a terminal #491

@hindessm

Description

@hindessm

There was a bug introduced by 4befcee. ANSI escapes should only be output if stdout is a terminal. However, this line is causing ANSI escapes for bold to be added even if output is to a pipe or file. This is easy to reproduce/spot by piping any output that produces a table through od -c with the ANSI escapes starting with 033 octal ESC characters. Our plugin (eventstreams) produces tables with cells that have color, when stdout is not a terminal, the ANSI escapes for colors are correctly omitted but they are still being added to the headers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions