Can I force colour output? #4052
Answered
by
linuxcaffe
DDzwiedziu
asked this question in
Q&A
Replies: 3 comments 3 replies
|
Indeed, |
1 reply
|
There's also RC override _forcecolor=on. (See man taskrc for exact syntax)
…On Sun., Feb. 8, 2026, 7:20 a.m. Dźwiedziu ***@***.***> wrote:
Yes, will try to mail myself a few to test later.
Marked your comment as an answer, to show this topic as answered.
—
Reply to this email directly, view it on GitHub
<#4052 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAR6S65T3XMDFASIDX7ELZT4K4SXNAVCNFSM6AAAAACUIKQJTOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKNZTGM3DGOA>
.
You are receiving this because you are subscribed to this thread.Message
ID:
<GothenburgBitFactory/taskwarrior/repo-discussions/4052/comments/15733638@
github.com>
|
1 reply
Answer selected by
DDzwiedziu
|
So Perhaps Taskwarrior could use stdin instead of stdout for isatty()? This might work right. It means the user is interacting at a terminal, and probably the pipe can handle it. 'ls' and 'grep' both test stdout however, just looked. Maybe the descriptor to test could be configurable? It looks like I always add |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Pretty much as in the title. I want to have the possibility to render the
ghistoryoutput trough tools likeansilove,ansigo,ansitoimg,textimg, etc. to an image. The issue is the detection of pipes, and while many tools have options likegreporls--color=always, for Taskwarrior I've only seen+nocolor.Example output of
textimg:Edit: and I've answered myself looking more around the topic.

unbufferfrom theexpectsuite.unbuffer task ghistory.daily end.after:tomorrow-1wk | textimg -o result.png && feh result.png:Edit 2: sources: https://unix.stackexchange.com/questions/577106/shell-output-text-to-png-while-preserving-color
All reactions