]> granicus.if.org Git - procps-ng/commitdiff
A, -, a, i, w, A, A, + problem and auto-margin problem #217559
authoralbert <>
Mon, 22 Dec 2003 01:34:06 +0000 (01:34 +0000)
committeralbert <>
Mon, 22 Dec 2003 01:34:06 +0000 (01:34 +0000)
NEWS
top.c

diff --git a/NEWS b/NEWS
index 3014f635a564c5f099b883e5e29805ef7100a30c..ab89ae54804351c765bb434cc82303b2de9837ef 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,9 @@ procps-3.1.14 --> procps-3.1.15
 install to /lib64 if it exists
 hide kernel PID bug (Linux 2.4.13-pre1 to 2.4.MAX)   #217278 #219730 #217525
 ps: faster threaded display
+...top: Jim's fix
+...top: newline fix
+...sysctl: man page tweak
 
 procps-3.1.13 --> procps-3.1.14
 
diff --git a/top.c b/top.c
index 898e9b1f2cb1fdc6b40f6ed0df73cde8880311cb..93bab669a62272148fc3cf5248d58b768894c8ea 100644 (file)
--- a/top.c
+++ b/top.c
@@ -122,6 +122,8 @@ static int No_ksyms = -1,       // set to '0' if ksym avail, '1' otherwise
 static char  Cap_clr_eol    [CAPBUFSIZ] = "",
              Cap_clr_eos    [CAPBUFSIZ] = "",
              Cap_clr_scr    [CAPBUFSIZ] = "",
+             Cap_rmam       [CAPBUFSIZ] = "",
+             Cap_smam       [CAPBUFSIZ] = "",
              Cap_curs_norm  [CAPBUFSIZ] = "",
              Cap_curs_huge  [CAPBUFSIZ] = "",
              Cap_home       [CAPBUFSIZ] = "",
@@ -326,6 +328,7 @@ static void bye_bye (int eno, const char *str)
       tcsetattr(STDIN_FILENO, TCSAFLUSH, &Savedtty);
    putp(tg2(0, Screen_rows));
    putp(Cap_curs_norm);
+   putp(Cap_smam);
    putp("\n");
    fflush(stdout);
 
@@ -475,6 +478,8 @@ static void capsmk (WIN_t *q)
       strcpy(Cap_clr_eol, tIF(clr_eol));
       strcpy(Cap_clr_eos, tIF(clr_eos));
       strcpy(Cap_clr_scr, tIF(clear_screen));
+      strcpy(Cap_rmam, tIF(exit_am_mode));
+      strcpy(Cap_smam, tIF(enter_am_mode));
       strcpy(Cap_curs_huge, tIF(cursor_visible));
       strcpy(Cap_curs_norm, tIF(cursor_normal));
       strcpy(Cap_home, tIF(cursor_home));
@@ -2853,6 +2858,7 @@ static proc_t **summary_show (void)
    if (!p_table) {
       p_table = procs_refresh(NULL, Frames_libflags);
       putp(Cap_clr_scr);
+      putp(Cap_rmam);
 #ifndef PROF
       // sleep for half a second
       tv.tv_sec = 0;