A, -, a, i, w, A, A, + problem and auto-margin problem #217559

This commit is contained in:
albert 2003-12-22 01:34:06 +00:00
parent 7046b34f42
commit e6bf84b8f3
2 changed files with 9 additions and 0 deletions

3
NEWS
View File

@ -3,6 +3,9 @@ procps-3.1.14 --> procps-3.1.15
install to /lib64 if it exists install to /lib64 if it exists
hide kernel PID bug (Linux 2.4.13-pre1 to 2.4.MAX) #217278 #219730 #217525 hide kernel PID bug (Linux 2.4.13-pre1 to 2.4.MAX) #217278 #219730 #217525
ps: faster threaded display ps: faster threaded display
...top: Jim's fix
...top: newline fix
...sysctl: man page tweak
procps-3.1.13 --> procps-3.1.14 procps-3.1.13 --> procps-3.1.14

6
top.c
View File

@ -122,6 +122,8 @@ static int No_ksyms = -1, // set to '0' if ksym avail, '1' otherwise
static char Cap_clr_eol [CAPBUFSIZ] = "", static char Cap_clr_eol [CAPBUFSIZ] = "",
Cap_clr_eos [CAPBUFSIZ] = "", Cap_clr_eos [CAPBUFSIZ] = "",
Cap_clr_scr [CAPBUFSIZ] = "", Cap_clr_scr [CAPBUFSIZ] = "",
Cap_rmam [CAPBUFSIZ] = "",
Cap_smam [CAPBUFSIZ] = "",
Cap_curs_norm [CAPBUFSIZ] = "", Cap_curs_norm [CAPBUFSIZ] = "",
Cap_curs_huge [CAPBUFSIZ] = "", Cap_curs_huge [CAPBUFSIZ] = "",
Cap_home [CAPBUFSIZ] = "", Cap_home [CAPBUFSIZ] = "",
@ -326,6 +328,7 @@ static void bye_bye (int eno, const char *str)
tcsetattr(STDIN_FILENO, TCSAFLUSH, &Savedtty); tcsetattr(STDIN_FILENO, TCSAFLUSH, &Savedtty);
putp(tg2(0, Screen_rows)); putp(tg2(0, Screen_rows));
putp(Cap_curs_norm); putp(Cap_curs_norm);
putp(Cap_smam);
putp("\n"); putp("\n");
fflush(stdout); fflush(stdout);
@ -475,6 +478,8 @@ static void capsmk (WIN_t *q)
strcpy(Cap_clr_eol, tIF(clr_eol)); strcpy(Cap_clr_eol, tIF(clr_eol));
strcpy(Cap_clr_eos, tIF(clr_eos)); strcpy(Cap_clr_eos, tIF(clr_eos));
strcpy(Cap_clr_scr, tIF(clear_screen)); 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_huge, tIF(cursor_visible));
strcpy(Cap_curs_norm, tIF(cursor_normal)); strcpy(Cap_curs_norm, tIF(cursor_normal));
strcpy(Cap_home, tIF(cursor_home)); strcpy(Cap_home, tIF(cursor_home));
@ -2853,6 +2858,7 @@ static proc_t **summary_show (void)
if (!p_table) { if (!p_table) {
p_table = procs_refresh(NULL, Frames_libflags); p_table = procs_refresh(NULL, Frames_libflags);
putp(Cap_clr_scr); putp(Cap_clr_scr);
putp(Cap_rmam);
#ifndef PROF #ifndef PROF
// sleep for half a second // sleep for half a second
tv.tv_sec = 0; tv.tv_sec = 0;