Skip to content
This repository has been archived by the owner on Jul 20, 2020. It is now read-only.

Send ANSI colors to non-tty output #4

Open
edmcman opened this issue Apr 10, 2017 · 3 comments
Open

Send ANSI colors to non-tty output #4

edmcman opened this issue Apr 10, 2017 · 3 comments

Comments

@edmcman
Copy link

edmcman commented Apr 10, 2017

Awesome tool!

It would be nice if there was an option to force ANSI colors to non-tty output. In particular, I'd like to use the tool like this:

command | gnomon --force-ansi --medium=1.0 | tee /tmp/log

I'm fine with having some ANSI jibberish in the log file.

@edmcman
Copy link
Author

edmcman commented Apr 10, 2017

After playing with gnomon some more, it looks like it's doing more than just sending ANSI control characters to update the time. Perhaps a better solution would be to have an option such as:

command | gnomon --medium 1.0 --save-log=/tmp/log

Where standard out would be updated in real time, and then the non real time log would be saved to /tmp/log.

@goranovs
Copy link

Would be nice if we have colors +1

@helpermethod
Copy link

That would be a great feature.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants