[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-devel] [task #15138] Color command-line output
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-devel] [task #15138] Color command-line output |
Date: |
Sun, 30 Dec 2018 20:09:39 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0 |
URL:
<https://savannah.gnu.org/task/?15138>
Summary: Color command-line output
Project: GNU Astronomy Utilities
Submitted by: makhlaghi
Submitted on: Mon 31 Dec 2018 01:09:37 AM UTC
Should Start On: Mon 31 Dec 2018 12:00:00 AM UTC
Should be Finished on: Mon 31 Dec 2018 12:00:00 AM UTC
Category: All Gnuastro
Priority: 5 - Normal
Item Group: Enhancement
Status: Postponed
Privacy: Public
Percent Complete: 0%
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Effort: 0.00
_______________________________________________________
Details:
In many scenarios of Gnuastro's programs, it can be really helpful if the
output text (on the command-line) is color coded. For example the new
<http://git.savannah.gnu.org/cgit/gnuastro.git/commit/?id=42347053aa>
`--verify' option to the Fits program.
Fortunately all modern terminal emulators (even on Windows), follow the same
ANSI escape codes to define colors (summary
<https://stackoverflow.com/questions/3219393/stdlib-and-colored-output-in-c#3219471>,
or full Wikipedia description
<https://en.wikipedia.org/wiki/ANSI_escape_code#Colors>.
So the job isn't too hard, it just needs some checks (to remove when the
output isn't being directly printed on a terminal, for example being piped).
We should look to see how `ls' (in GNU Coreutils) does it.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/task/?15138>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [gnuastro-devel] [task #15138] Color command-line output,
Mohammad Akhlaghi <=