version 1.15, 2001/05/23 22:20:36 |
version 1.16, 2001/05/24 03:05:27 |
|
|
{ |
{ |
|
|
if (!isatty(STDIN_FILENO) || !isatty(STDOUT_FILENO)) |
if (!isatty(STDIN_FILENO) || !isatty(STDOUT_FILENO)) |
panic("standard input and output must be a terminal"); |
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"); |
|
|
fd_set readfds; |
fd_set readfds; |
struct timeval tmout; |
struct timeval tmout; |
|
|
FD_ZERO(&readfds); |
FD_ZERO(&readfds); |
FD_SET(0, &readfds); |
FD_SET(0, &readfds); |
|
|
tmout.tv_sec = msec/1000; |
tmout.tv_sec = msec/1000; |