diff --git a/usr.bin/top/screen.c b/usr.bin/top/screen.c index 17bcc1bb52a..ce05338e04b 100644 --- a/usr.bin/top/screen.c +++ b/usr.bin/top/screen.c @@ -55,7 +55,7 @@ static struct termios new_settings; static char is_a_terminal = false; void -init_termcap(int interactive) +init_termcap(bool interactive) { char *bufptr; char *PCptr; @@ -138,7 +138,7 @@ init_termcap(int interactive) /* get "ce", clear to end */ if (!overstrike) { - clear_line = tgetstr("ce", &bufptr); + clear_line = tgetstr("ce", &bufptr); } /* get necessary capabilities */ @@ -313,12 +313,3 @@ clear_eol(int len) } return(-1); } - -void -go_home(void) -{ - if (smart_terminal) - { - putcap(home); - } -} diff --git a/usr.bin/top/screen.h b/usr.bin/top/screen.h index f7ba38161a9..461c9a95e91 100644 --- a/usr.bin/top/screen.h +++ b/usr.bin/top/screen.h @@ -28,10 +28,9 @@ extern int screen_width; int clear_eol(int len); void top_standout(const char *msg); void top_clear(void); -void go_home(void); void reinit_screen(void); void get_screensize(void); -void init_termcap(int interactive); +void init_termcap(bool interactive); void end_screen(void); void init_screen(void); diff --git a/usr.bin/top/top.c b/usr.bin/top/top.c index 830afccfb70..c0560c8eff9 100644 --- a/usr.bin/top/top.c +++ b/usr.bin/top/top.c @@ -852,13 +852,6 @@ restart: break; case CMD_update: /* merely update display */ - /* is the load average high? */ - if (system_info.load_avg[0] > LoadMax) - { - /* yes, go home for visual feedback */ - go_home(); - fflush(stdout); - } break; case CMD_quit: