ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/x11.c
(Generate patch)

Comparing ray/src/rt/x11.c (file contents):
Revision 2.23 by greg, Mon Dec 12 16:47:29 1994 UTC vs.
Revision 2.24 by greg, Tue Mar 7 14:18:34 1995 UTC

# Line 378 | Line 378 | char  *inp, *prompt;
378                  if (!x11_driver.inpready)
379                          fputs(prompt, stdout);
380          }
381 + #ifdef FNDELAY
382 +        if (inpcheck == IC_READ) {      /* turn off FNDELAY */
383 +                if (fcntl(fileno(stdin), F_SETFL, 0) < 0) {
384 +                        stderr_v("Cannot change input mode\n");
385 +                        quit(1);
386 +                }
387 +                inpcheck = IC_IOCTL;
388 +        }
389 + #endif
390          if (gets(inp) == NULL) {
391                  strcpy(inp, "quit");
392                  return;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines