Commit 713e8487 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Removed color BLACK from output.

parent 0127ef5a
...@@ -337,7 +337,7 @@ Info(void *process) ...@@ -337,7 +337,7 @@ Info(void *process)
{ {
if ((tsID == 0 && recID == 0) || operatorID == MAP) if ((tsID == 0 && recID == 0) || operatorID == MAP)
{ {
set_text_color(stdout, BRIGHT, BLACK); set_text_color(stdout, BRIGHT);
MpMO::Print("%6d : Date Time %s Gridsize Miss : Minimum Mean Maximum : %s%s", -(indf + 1), MpMO::Print("%6d : Date Time %s Gridsize Miss : Minimum Mean Maximum : %s%s", -(indf + 1),
lvinfo ? "Nlevs" : "Level", e, v); lvinfo ? "Nlevs" : "Level", e, v);
reset_text_color(stdout); reset_text_color(stdout);
...@@ -377,12 +377,8 @@ Info(void *process) ...@@ -377,12 +377,8 @@ Info(void *process)
if (operfunc == E_NAME) vlistInqVarName(vlistID, varID, varname); if (operfunc == E_NAME) vlistInqVarName(vlistID, varID, varname);
set_text_color(stdout, BRIGHT, BLACK);
fprintf(stdout, "%6d ", indg); fprintf(stdout, "%6d ", indg);
reset_text_color(stdout);
set_text_color(stdout, BLACK);
fprintf(stdout, ":"); fprintf(stdout, ":");
reset_text_color(stdout);
set_text_color(stdout, MAGENTA); set_text_color(stdout, MAGENTA);
fprintf(stdout, "%s %s ", vdatestr, vtimestr); fprintf(stdout, "%s %s ", vdatestr, vtimestr);
...@@ -395,10 +391,9 @@ Info(void *process) ...@@ -395,10 +391,9 @@ Info(void *process)
fprintf(stdout, "%7g ", level); fprintf(stdout, "%7g ", level);
fprintf(stdout, "%8zu %7zu ", gridsize, infostatr.nmiss); fprintf(stdout, "%8zu %7zu ", gridsize, infostatr.nmiss);
reset_text_color(stdout);
set_text_color(stdout, BLACK);
fprintf(stdout, ":"); fprintf(stdout, ":");
reset_text_color(stdout);
set_text_color(stdout, BLUE); set_text_color(stdout, BLUE);
} }
...@@ -500,18 +495,16 @@ Info(void *process) ...@@ -500,18 +495,16 @@ Info(void *process)
{ {
reset_text_color(stdout); reset_text_color(stdout);
set_text_color(stdout, BLACK);
fprintf(stdout, " : "); fprintf(stdout, " : ");
reset_text_color(stdout);
set_text_color(stdout, BLACK); // set_text_color(stdout, GREEN);
if (operfunc == E_NAME) if (operfunc == E_NAME)
fprintf(stdout, "%-14s", varname); fprintf(stdout, "%-14s", varname);
else if (operfunc == E_CODE) else if (operfunc == E_CODE)
fprintf(stdout, "%4d ", code); fprintf(stdout, "%4d ", code);
else else
fprintf(stdout, "%-14s", paramstr); fprintf(stdout, "%-14s", paramstr);
reset_text_color(stdout); // reset_text_color(stdout);
if (Options::cdoVerbose) if (Options::cdoVerbose)
{ {
...@@ -549,7 +542,7 @@ Info(void *process) ...@@ -549,7 +542,7 @@ Info(void *process)
if (operatorID != MAP) if (operatorID != MAP)
{ {
set_text_color(stdout, BRIGHT, BLACK); set_text_color(stdout, BRIGHT);
MpMO::Print(" : Date Time %s Gridsize Miss : Minimum Mean Maximum : %s%s", MpMO::Print(" : Date Time %s Gridsize Miss : Minimum Mean Maximum : %s%s",
lvinfo ? "Nlevs" : "Level", e, v); lvinfo ? "Nlevs" : "Level", e, v);
reset_text_color(stdout); reset_text_color(stdout);
......
...@@ -91,7 +91,7 @@ Sinfo(void *process) ...@@ -91,7 +91,7 @@ Sinfo(void *process)
const int streamID = cdoStreamOpenRead(cdoStreamName(indf)); const int streamID = cdoStreamOpenRead(cdoStreamName(indf));
const int vlistID = cdoStreamInqVlist(streamID); const int vlistID = cdoStreamInqVlist(streamID);
set_text_color(stdout, BRIGHT, BLACK); set_text_color(stdout, BRIGHT);
fprintf(stdout, " File format"); fprintf(stdout, " File format");
reset_text_color(stdout); reset_text_color(stdout);
fprintf(stdout, " : "); fprintf(stdout, " : ");
...@@ -100,7 +100,7 @@ Sinfo(void *process) ...@@ -100,7 +100,7 @@ Sinfo(void *process)
const int nvars = vlistNvars(vlistID); const int nvars = vlistNvars(vlistID);
const int nsubtypes = vlistNsubtypes(vlistID); const int nsubtypes = vlistNsubtypes(vlistID);
set_text_color(stdout, BRIGHT, BLACK); set_text_color(stdout, BRIGHT);
fprintf(stdout, "%6d : Institut Source T Steptype", -(indf + 1)); fprintf(stdout, "%6d : Institut Source T Steptype", -(indf + 1));
if (lensemble) fprintf(stdout, " Einfo"); if (lensemble) fprintf(stdout, " Einfo");
if (nsubtypes > 1) fprintf(stdout, " Subtypes"); if (nsubtypes > 1) fprintf(stdout, " Subtypes");
...@@ -119,12 +119,8 @@ Sinfo(void *process) ...@@ -119,12 +119,8 @@ Sinfo(void *process)
const int gridID = vlistInqVarGrid(vlistID, varID); const int gridID = vlistInqVarGrid(vlistID, varID);
const int zaxisID = vlistInqVarZaxis(vlistID, varID); const int zaxisID = vlistInqVarZaxis(vlistID, varID);
set_text_color(stdout, BRIGHT, BLACK);
fprintf(stdout, "%6d", varID + 1); fprintf(stdout, "%6d", varID + 1);
reset_text_color(stdout);
set_text_color(stdout, BLACK);
fprintf(stdout, " : "); fprintf(stdout, " : ");
reset_text_color(stdout);
set_text_color(stdout, BLUE); set_text_color(stdout, BLUE);
// institute info // institute info
...@@ -210,23 +206,21 @@ Sinfo(void *process) ...@@ -210,23 +206,21 @@ Sinfo(void *process)
reset_text_color(stdout); reset_text_color(stdout);
set_text_color(stdout, BLACK);
fprintf(stdout, ": "); fprintf(stdout, ": ");
reset_text_color(stdout);
// parameter info // parameter info
cdiParamToString(param, paramstr, sizeof(paramstr)); cdiParamToString(param, paramstr, sizeof(paramstr));
if (operfunc == func_name) vlistInqVarName(vlistID, varID, varname); if (operfunc == func_name) vlistInqVarName(vlistID, varID, varname);
set_text_color(stdout, BLACK); // set_text_color(stdout, GREEN);
if (operfunc == func_name) if (operfunc == func_name)
fprintf(stdout, "%-14s", varname); fprintf(stdout, "%-14s", varname);
else if (operfunc == func_code) else if (operfunc == func_code)
fprintf(stdout, "%4d %4d ", tabnum, code); fprintf(stdout, "%4d %4d ", tabnum, code);
else else
fprintf(stdout, "%-14s", paramstr); fprintf(stdout, "%-14s", paramstr);
reset_text_color(stdout); // reset_text_color(stdout);
if (Options::cdoVerbose) if (Options::cdoVerbose)
{ {
...@@ -238,14 +232,14 @@ Sinfo(void *process) ...@@ -238,14 +232,14 @@ Sinfo(void *process)
fprintf(stdout, "\n"); fprintf(stdout, "\n");
} }
set_text_color(stdout, BRIGHT, BLACK); set_text_color(stdout, BRIGHT);
fprintf(stdout, " Grid coordinates"); fprintf(stdout, " Grid coordinates");
reset_text_color(stdout); reset_text_color(stdout);
fprintf(stdout, " :\n"); fprintf(stdout, " :\n");
printGridInfo(vlistID); printGridInfo(vlistID);
set_text_color(stdout, BRIGHT, BLACK); set_text_color(stdout, BRIGHT);
fprintf(stdout, " Vertical coordinates"); fprintf(stdout, " Vertical coordinates");
reset_text_color(stdout); reset_text_color(stdout);
fprintf(stdout, " :\n"); fprintf(stdout, " :\n");
...@@ -265,7 +259,7 @@ Sinfo(void *process) ...@@ -265,7 +259,7 @@ Sinfo(void *process)
if (ntsteps != 0) if (ntsteps != 0)
{ {
set_text_color(stdout, BRIGHT, BLACK); set_text_color(stdout, BRIGHT);
fprintf(stdout, " Time coordinate"); fprintf(stdout, " Time coordinate");
reset_text_color(stdout); reset_text_color(stdout);
if (ntsteps == CDI_UNDEFID) if (ntsteps == CDI_UNDEFID)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment