From 835ee677d0af688585c69ded541be143075481a1 Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Mon, 13 Mar 2017 06:00:00 -0500 Subject: [PATCH] top: by default, show cmd line vs. cmd name at startup All of top's display was designed to fit into an 80x24 terminal. This includes the help screens plus both the Summary and Task Areas, assuming no saved config file. With release 3.3.10, the startup defaults were changed assuming ./configure --disable-modern-top wasn't used. This was done in the hope of introducing some users to unknown capabilities such as colors, forest view, etc. The purpose of this commit is to coax a few more users into possibly exploring another capability: scrolling. We do so by tweaking the default startup display so as to show full command lines. Now, when things no longer fit in 80x24, horizontal scrolling might be exploited. [ of course, this can be reversed with the -c switch ] [ this patch has been adapted from the master branch ] Signed-off-by: Jim Warner --- top/top.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/top/top.h b/top/top.h index 4761e49e..c0d37b92 100644 --- a/top/top.h +++ b/top/top.h @@ -254,7 +254,7 @@ typedef long long SIC_t; #define ALT_WINFLGS DEF_WINFLGS #define ALT_GRAPHS2 0, 0 #else -#define DEF_WINFLGS ( View_LOADAV | View_STATES | View_MEMORY \ +#define DEF_WINFLGS ( View_LOADAV | View_STATES | View_MEMORY | Show_CMDLIN \ | Show_COLORS | Show_FOREST | Show_HIROWS | Show_IDLEPS | Show_JRNUMS | Show_TASKON \ | Qsrt_NORMAL ) #define DEF_GRAPHS2 1, 2