add slabtop, fix top ^Z terminal handling

This commit is contained in:
albert
2004-01-24 22:33:56 +00:00
parent c36c11c6b2
commit efd8648fc7
14 changed files with 896 additions and 20 deletions

4
top.c
View File

@@ -446,12 +446,16 @@ static void suspend (int dont_care_sig)
tcsetattr(STDIN_FILENO, TCSAFLUSH, &Savedtty);
putp(tg2(0, Screen_rows));
putp(Cap_curs_norm);
putp(Cap_smam);
putp("\n");
fflush(stdout);
raise(SIGSTOP);
/* later, after SIGCONT... */
ZAP_TIMEOUT
if (!Batch)
tcsetattr(STDIN_FILENO, TCSAFLUSH, &Rawtty);
putp(Cap_clr_scr);
putp(Cap_rmam);
}