Return to tip.c CVS log | Up to [local] / src / usr.bin / tip |
version 1.9, 1998/07/12 05:27:04 | version 1.10, 2000/01/09 05:38:47 | ||
---|---|---|---|
|
|
||
* the "cu" version of tip. | * the "cu" version of tip. | ||
*/ | */ | ||
i = fcntl(FD, F_GETFL); | |||
if (i == -1) { | |||
perror("fcntl"); | |||
cleanup(); | |||
} | |||
i = fcntl(FD, F_SETFL, i & ~O_NONBLOCK); | |||
if (i == -1) { | |||
perror("fcntl"); | |||
cleanup(); | |||
} | |||
tcgetattr(0, &defterm); | tcgetattr(0, &defterm); | ||
term = defterm; | term = defterm; | ||
term.c_lflag &= ~(ICANON|IEXTEN|ECHO); | term.c_lflag &= ~(ICANON|IEXTEN|ECHO); |