taskGNU 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

Submitted by:  Mohammad Akhlaghi <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
Effort:  0.00

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>
Project Administrator
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.

Fortunately all modern terminal emulators (even on Windows), follow the same ANSI escape codes to define colors (summary, or full Wikipedia description.

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.

Mohammad Akhlaghi <makhlaghi>
Project Administrator

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by makhlaghi (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.4