Ticket #2 (enhancement)

Opened 1 year ago

Last modified 1 year ago

do not write special characters to log if it is not a tty

Status: closed (fixed)

Reported by: gary Assigned to: somebody
Priority: trivial Milestone:
Component: component1 Version:
Keywords: guts Cc:

Running the test script for "guts main" and sending the output to a file, I notice that there are highlighting characters written to the file. For example,

Change History

09/05/07 18:16:58: Modified by gary

I don't know why part of my previous note was truncated.

Here's the example output:

{{{{ pointer_to_shared_neg [[0m[[5m[[1m[[35m --> Number of units PASSED : 51

--> Number of units FAILED : 10 --> 83 0f the units have PASSED [[0m=========================== TEST END ==================================== }}}

It would be easier to handle the log output if those special characters don't appear in the log file, or if there is a command line switch that suppressess them.

10/14/07 15:14:15: Modified by apokayi

  • status changed from new to closed.
  • resolution set to fixed.

a flag is introduced to differentiate the colored and non-colored output. So the usage of the script is as follows:

./guts_main.sh [# of THREADS] [ON(optional to turn on the coloring)]