GNU Astronomy Utilities - Tasks: task #15138, Color command-line output
You are not allowed to post comments on this tracker with your current authentication level.
task #15138: Color command-line output
Submitter: | Mohammad Akhlaghi <makhlaghi> | ||
Submitted: | 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 | Assigned to: | None |
Percent Complete: | 0% | Open/Closed: | Open |
Effort: | 0.00 |
Wed 10 Apr 2024 02:33:45 PM UTC, comment #4: |
Warren Jacinto <warrenj> |
Sat 03 Apr 2021 04:51:43 PM UTC, comment #3: Thanks a lot Abhishek! This seems like a workable solution, nice work! I think you are ready to try it out in practice in your own development branch (if you haven't done so already).
|
Mohammad Akhlaghi <makhlaghi> |
Sat 03 Apr 2021 04:16:16 PM UTC, comment #2: Hi! I tried to color code the various outputs by creating functions of different colors that switch the output color.
|
Abhishek Yadav <abhishek_yadav> |
Mon 31 Dec 2018 01:11:04 AM UTC, comment #1: Another situation to check (for removing color) is in more limited terminals like the internal Emacs terminal (when you run `M-x compile'). |
Mohammad Akhlaghi <makhlaghi> |
Mon 31 Dec 2018 01:09:37 AM UTC, original submission:
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 `--verify' option to the Fits program.
|
Mohammad Akhlaghi <makhlaghi> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Powered by Savane 3.13-02a9.
Corresponding source code
Hi, I was working on this task and was able to get a basic implementation working for the verify option of astfits at my fork
I was wondering how this maybe generalized for the entire gnuastro and if there is some existing implementation I could refer to
ls from GNU Coreutils was not so helpful in this regard
Maybe some sort of module that provided functions to set the color of terminal output? and a command line flag to indicate color printing?