Skip to content

Piping history list to less is hard to read -- disable ANSI colors when process.stdout.isTTY is not true #771

Description

@Cafe137

I have a long upload history, so I piped it to less to navigate it better. However, the output was hard to read due to the ANSI escape codes.

Most CLI apps only enable colors when stdout is a TTY, and disable them when stdout is not a TTY.

Please apply this fix to the history list command so that it doesn't use colors when piped to another command.

Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions