top: optional wider non-scalable cols

This commit accommodates those fields which may have
suffered truncation due to these default limits:
  . 5 digits for uid/gid type fields
  . 8 characters for user/group type fields

With a new interactive command, users can increase the
width of all such fields, or return to the defaults.

Note:
   There are no restrictions on the amount added to
   the defaults.  The user is free to vastly exceed
   screen limits which simply means such fields can
   never be displayed.

Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
Jim Warner
2012-09-21 01:01:01 -05:00
committed by Craig Small
parent 46bd0085b0
commit 384afa494a
4 changed files with 37 additions and 13 deletions

View File

@@ -327,6 +327,7 @@ typedef struct RCF_t {
float delay_time; // 'd'/'s' - How long to sleep twixt updates
int win_index; // Curwin, as index
RCW_t win [GROUPSMAX]; // a 'WIN_t.rc' for each window
int fixed_widest; // 'X' - wider non-scalable col addition
} RCF_t;
/* This structure stores configurable information for each window.
@@ -551,7 +552,7 @@ typedef struct WIN_t {
{ P_UEN, DEF_WINFLGS, 0, \
COLOR_YELLOW, COLOR_YELLOW, COLOR_GREEN, COLOR_YELLOW, \
"Usr", USR_FIELDS } \
} }
}, 0 }
/* Summary Lines specially formatted string(s) --
see 'show_special' for syntax details + other cautions. */