Return to screen.c CVS log | Up to [local] / src / usr.bin / top |
version 1.17, 2007/05/29 00:56:56 | version 1.18, 2007/06/10 19:10:06 | ||
---|---|---|---|
|
|
||
void | void | ||
end_screen(void) | end_screen(void) | ||
{ | { | ||
if (smart_terminal) | if (smart_terminal) { | ||
move(screen_length-1, 0); | |||
clrtoeol(); | |||
refresh(); | |||
endwin(); | endwin(); | ||
} | |||
if (is_a_terminal) | if (is_a_terminal) | ||
(void) tcsetattr(STDOUT_FILENO, TCSADRAIN, &old_settings); | (void) tcsetattr(STDOUT_FILENO, TCSADRAIN, &old_settings); | ||
} | } |