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)
{
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),
lvinfo ? "Nlevs" : "Level", e, v);
reset_text_color(stdout);
......@@ -377,12 +377,8 @@ Info(void *process)
if (operfunc == E_NAME) vlistInqVarName(vlistID, varID, varname);
set_text_color(stdout, BRIGHT, BLACK);
fprintf(stdout, "%6d ", indg);
reset_text_color(stdout);
set_text_color(stdout, BLACK);
fprintf(stdout, ":");
reset_text_color(stdout);
set_text_color(stdout, MAGENTA);
fprintf(stdout, "%s %s ", vdatestr, vtimestr);
......@@ -395,10 +391,9 @@ Info(void *process)
fprintf(stdout, "%7g ", level);
fprintf(stdout, "%8zu %7zu ", gridsize, infostatr.nmiss);
reset_text_color(stdout);
set_text_color(stdout, BLACK);
fprintf(stdout, ":");
reset_text_color(stdout);
set_text_color(stdout, BLUE);
}
......@@ -500,18 +495,16 @@ Info(void *process)
{
reset_text_color(stdout);
set_text_color(stdout, BLACK);
fprintf(stdout, " : ");
reset_text_color(stdout);
set_text_color(stdout, BLACK);
// set_text_color(stdout, GREEN);
if (operfunc == E_NAME)
fprintf(stdout, "%-14s", varname);
else if (operfunc == E_CODE)
fprintf(stdout, "%4d ", code);
else
fprintf(stdout, "%-14s", paramstr);
reset_text_color(stdout);
// reset_text_color(stdout);
if (Options::cdoVerbose)
{
......@@ -549,7 +542,7 @@ Info(void *process)
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",
lvinfo ? "Nlevs" : "Level", e, v);
reset_text_color(stdout);
......
......@@ -91,7 +91,7 @@ Sinfo(void *process)
const int streamID = cdoStreamOpenRead(cdoStreamName(indf));
const int vlistID = cdoStreamInqVlist(streamID);
set_text_color(stdout, BRIGHT, BLACK);
set_text_color(stdout, BRIGHT);
fprintf(stdout, " File format");
reset_text_color(stdout);
fprintf(stdout, " : ");
......@@ -100,7 +100,7 @@ Sinfo(void *process)
const int nvars = vlistNvars(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));
if (lensemble) fprintf(stdout, " Einfo");
if (nsubtypes > 1) fprintf(stdout, " Subtypes");
......@@ -119,12 +119,8 @@ Sinfo(void *process)
const int gridID = vlistInqVarGrid(vlistID, varID);
const int zaxisID = vlistInqVarZaxis(vlistID, varID);
set_text_color(stdout, BRIGHT, BLACK);
fprintf(stdout, "%6d", varID + 1);
reset_text_color(stdout);
set_text_color(stdout, BLACK);
fprintf(stdout, " : ");
reset_text_color(stdout);
set_text_color(stdout, BLUE);
// institute info
......@@ -210,23 +206,21 @@ Sinfo(void *process)
reset_text_color(stdout);
set_text_color(stdout, BLACK);
fprintf(stdout, ": ");
reset_text_color(stdout);
// parameter info
cdiParamToString(param, paramstr, sizeof(paramstr));
if (operfunc == func_name) vlistInqVarName(vlistID, varID, varname);
set_text_color(stdout, BLACK);
// set_text_color(stdout, GREEN);
if (operfunc == func_name)
fprintf(stdout, "%-14s", varname);
else if (operfunc == func_code)
fprintf(stdout, "%4d %4d ", tabnum, code);
else
fprintf(stdout, "%-14s", paramstr);
reset_text_color(stdout);
// reset_text_color(stdout);
if (Options::cdoVerbose)
{
......@@ -238,14 +232,14 @@ Sinfo(void *process)
fprintf(stdout, "\n");
}
set_text_color(stdout, BRIGHT, BLACK);
set_text_color(stdout, BRIGHT);
fprintf(stdout, " Grid coordinates");
reset_text_color(stdout);
fprintf(stdout, " :\n");
printGridInfo(vlistID);
set_text_color(stdout, BRIGHT, BLACK);
set_text_color(stdout, BRIGHT);
fprintf(stdout, " Vertical coordinates");
reset_text_color(stdout);
fprintf(stdout, " :\n");
......@@ -265,7 +259,7 @@ Sinfo(void *process)
if (ntsteps != 0)
{
set_text_color(stdout, BRIGHT, BLACK);
set_text_color(stdout, BRIGHT);
fprintf(stdout, " Time coordinate");
reset_text_color(stdout);
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