Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Running Taskbook thru watch disables colors

See original GitHub issue

Is your feature request related to a problem? Please describe. Terminal colors get disabled when running thru unix watch (at least on a Mac)

Describe the solution you’d like Terminals colors should still be displayed when running watch with the --color option set.

Additional context

The tab on to is running watch --color tb, while the one on the bottom is simply running tb

screen shot 2018-08-01 at 13 50 33

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

chrissinclaireditedcommented, Aug 2, 2018

FWIW if you’re willing to use fswatch rather than watch, you can do:

clear && tb; fswatch -0 ~/.taskbook/storage | xargs -0 -n 1 sh -c 'clear; tb'

to get the watch functionality but only updating when the data updates. I’ve been running that on a mac and the colours all work well: screen shot 2018-08-02 at 13 37 17

waldaufcommented, Mar 27, 2019

Hello, here I found out how to work taskbook with watch and have colored output. But at first I checked help output and there I didn’t find --color option:

$ taskbook -h | grep color

Can you add it to taskbook?

Many THX

Read more comments on GitHub >

github_iconTop Results From Across the Web

Colors with unix command "watch"? [closed] - Stack Overflow
Script command captures output as run by an interactive terminal session. With the combination of --color parameter of watch , it retains colors:...
Read more >
bash watch command with colors preserved - linux - Super User
The right command is watch --color "ls -a1 --color". It isn't documented in the man page or the --help screen. I has to...
Read more >
Kubuntu: how to disable color in output of 'watch' command
Maybe try piping your watched command through cat , watch -t 'date | cat' > /tmp/Wex1 . It should not behave differently, though....
Read more >
Why don't git colours appear when using watch? - Ask Ubuntu
watch runs the command in a new shell, sh . .bashrc aliases ls as ls --color=auto to enable colours. sh doesn't inherit or...
Read more >
Engine Operator - Student Workbook
Off-road diesel fuel can be identified by its reddish color (“red fuel”). Page 17. UNIT 1 – FIRE ENGINE MAINTENANCE. LESSON A –...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found