Return to tty.c CVS log | Up to [local] / src / usr.bin / mg |
version 1.15, 2002/02/21 00:02:04 | version 1.16, 2002/02/21 04:16:23 | ||
---|---|---|---|
|
|
||
{ | { | ||
char *tv_stype, *p; | char *tv_stype, *p; | ||
/* system dependent function to determine terminal type, if necessary. */ | if ((tv_stype = getenv("TERM")) == NULL) | ||
#ifndef gettermtype | |||
char *gettermtype(); | |||
#endif /* gettermtype */ | |||
if ((tv_stype = gettermtype()) == NULL) | |||
panic("Could not determine terminal type!"); | panic("Could not determine terminal type!"); | ||
if (setupterm(tv_stype, 1, NULL)) { | if (setupterm(tv_stype, 1, NULL)) { |