Return to io.c CVS log | Up to [gforth] / gforth / engine |
version 1.13, 2000/09/23 15:47:08 | version 1.14, 2002/03/13 17:09:09 |
---|---|
Line 626 long key_avail (FILE * stream) | Line 626 long key_avail (FILE * stream) |
if(!terminal_prepped) prep_terminal(); | if(!terminal_prepped) prep_terminal(); |
#ifndef _WIN32 | #if defined(FIONREAD) && !defined(_WIN32) |
if(isatty (tty)) { | if(isatty (tty)) { |
result = ioctl (tty, FIONREAD, &chars_avail); | result = ioctl (tty, FIONREAD, &chars_avail); |
} | } |