Changeset View
Changeset View
Standalone View
Standalone View
head/usr.bin/top/screen.c
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | |||||
void | void | ||||
init_termcap(bool interactive) | init_termcap(bool interactive) | ||||
{ | { | ||||
char *bufptr; | char *bufptr; | ||||
char *PCptr; | char *PCptr; | ||||
char *term_name; | char *term_name; | ||||
int status; | int status; | ||||
/* set defaults in case we aren't smart */ | screen_width = 0; | ||||
screen_width = MAX_COLS; | |||||
screen_length = 0; | screen_length = 0; | ||||
if (!interactive) | if (!interactive) | ||||
{ | { | ||||
/* pretend we have a dumb terminal */ | /* pretend we have a dumb terminal */ | ||||
smart_terminal = false; | smart_terminal = false; | ||||
return; | return; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 241 Lines • Show Last 20 Lines |