Skip to content

make option --force-color work while outputing to a shell pipe - #261

Open
juarezr wants to merge 1 commit into
sharkdp:masterfrom
juarezr:force_interactive_mode
Open

juarezr wants to merge 1 commit into
sharkdp:masterfrom
juarezr:force_interactive_mode

Conversation

@juarezr

@juarezr juarezr commented Jul 22, 2025

Copy link
Copy Markdown

make option --force-color work while outputing to a shell pipe

Currently, when pastel is used to write to a shell pipe, it always outputs without colors.
This change makes it to respect the value of option --force-color when called in a shell pipe.

Example usage

$ pastel --force-color list | column

Result

pastel --force-color list | column

@sharkdp

sharkdp commented Aug 31, 2025

Copy link
Copy Markdown
Owner

Thank you for your contribution.

Did you see #219? In particular, did you see #219 (comment) and can comment on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants