version 1.11, 2000/04/13 06:12:18 |
version 1.12, 2000/07/25 19:52:50 |
|
|
ttopen() |
ttopen() |
{ |
{ |
|
|
|
if (!isatty(STDIN_FILENO) || !isatty(STDOUT_FILENO)) |
|
panic("standard input and output must be a terminal"); |
|
|
if (ttraw() == FALSE) |
if (ttraw() == FALSE) |
panic("aborting due to terminal initialize failure"); |
panic("aborting due to terminal initialize failure"); |
} |
} |
|
|
(void) fputs("panic: ", stderr); |
(void) fputs("panic: ", stderr); |
(void) fputs(s, stderr); |
(void) fputs(s, stderr); |
(void) fputc('\n', stderr); |
(void) fputc('\n', stderr); |
abort(); /* To leave a core image. */ |
exit(1); |
} |
} |
|
|
#ifndef NO_DPROMPT |
#ifndef NO_DPROMPT |