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

Comparing ray/src/rt/sundev.c (file contents):
Revision 1.12 by greg, Thu Feb 22 12:39:27 1990 UTC vs.
Revision 1.13 by greg, Tue Mar 6 16:34:05 1990 UTC

# Line 191 | Line 191 | sun_comin(buf, prompt)         /* input a string from the com
191   char  *buf, *prompt;
192   {
193          Notify_value  newinput();
194 <
194 >                                                /* echo prompt */
195          if (prompt != NULL)
196                  sun_comout(prompt);
197 +                                                /* await signal */
198 +        if (sun_driver.inpready <= 0)
199 +                newinput(sun_init, fileno(ttyin));
200                                                  /* echo characters */
201          do {
202                  mygets(buf, ttyin);
# Line 204 | Line 207 | char  *buf, *prompt;
207  
208          if (sun_driver.inpready > 0)
209                  sun_driver.inpready--;
210 <
210 >                                                /* reinstall handler */
211          notify_set_input_func(sun_init, newinput, fileno(ttyin));
212   }
213  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines