Commit 74dbb2a7 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Set colors.

parent fde94612
......@@ -341,17 +341,19 @@ void *Info(void *argument)
fprintf(stdout, ":");
reset_text_color(stdout);
set_text_color(stdout, RESET, BLUE);
set_text_color(stdout, RESET, MAGENTA);
fprintf(stdout, "%s %s ", vdatestr, vtimestr);
reset_text_color(stdout);
level = zaxisInqLevel(zaxisID, levelID);
set_text_color(stdout, RESET, GREEN);
fprintf(stdout, "%7g ", level);
fprintf(stdout, "%8d %7d ", gridsize, nmiss);
reset_text_color(stdout);
set_text_color(stdout, RESET, BLACK);
fprintf(stdout, ":");
reset_text_color(stdout);
set_text_color(stdout, RESET, BLUE);
if ( /* gridInqType(gridID) == GRID_SPECTRAL || */
(gridsize == 1 && nmiss == 0 && number == CDI_REAL) )
{
......@@ -437,6 +439,7 @@ void *Info(void *argument)
fprintf(stdout, " - (%#12.5g,%#12.5g) -", arrmean_r, arrmean_i);
}
}
reset_text_color(stdout);
set_text_color(stdout, RESET, BLACK);
fprintf(stdout, " : ");
......
......@@ -203,21 +203,27 @@ void *Sinfo(void *argument)
fprintf(stdout, " %6d ", subtypesize);
fprintf(stdout, "%3d ", vlistSubtypeIndex(vlistID, subtypeID) + 1);
}
reset_text_color(stdout);
/* layer info */
levelsize = zaxisInqSize(zaxisID);
set_text_color(stdout, RESET, GREEN);
fprintf(stdout, "%6d ", levelsize);
reset_text_color(stdout);
fprintf(stdout, "%3d ", vlistZaxisIndex(vlistID, zaxisID) + 1);
/* grid info */
gridsize = gridInqSize(gridID);
set_text_color(stdout, RESET, GREEN);
fprintf(stdout, "%9d ", gridsize);
reset_text_color(stdout);
fprintf(stdout, "%3d ", vlistGridIndex(vlistID, gridID) + 1);
/* datatype */
datatype = vlistInqVarDatatype(vlistID, varID);
datatype2str(datatype, pstr);
set_text_color(stdout, RESET, BLUE);
fprintf(stdout, " %-3s", pstr);
if ( vlistInqVarCompType(vlistID, varID) == COMPRESS_NONE )
......
Supports Markdown
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