| static struct timeval now = { 0 , 0 }; |
static struct timeval now = { 0 , 0 }; |
| int chars_avail; |
int chars_avail; |
| |
|
| |
if (gf_ungottenc(stream)) |
| |
return 1; |
| setvbuf(stream, NULL, _IONBF, 0); |
setvbuf(stream, NULL, _IONBF, 0); |
| if(!terminal_prepped && stream == stdin) |
if(!terminal_prepped && stream == stdin) |
| prep_terminal(); |
prep_terminal(); |
| if (gf_ungottenc(stream)) |
|
| return 1; |
|
| |
|
| FD_ZERO(&selin); |
FD_ZERO(&selin); |
| FD_SET(tty, &selin); |
FD_SET(tty, &selin); |
| Cell result; |
Cell result; |
| unsigned char c; |
unsigned char c; |
| |
|
| |
if (!gf_ungottenc(stream)) |
| setvbuf(stream, NULL, _IONBF, 0); |
setvbuf(stream, NULL, _IONBF, 0); |
| if(!terminal_prepped && stream == stdin) |
if(!terminal_prepped && stream == stdin) |
| prep_terminal(); |
prep_terminal(); |