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

Comparing ray/src/rt/devmain.c (file contents):
Revision 1.6 by greg, Fri Jan 19 00:00:33 1990 UTC vs.
Revision 1.7 by greg, Tue Jan 30 11:37:52 1990 UTC

# Line 145 | Line 145 | r_comout()                             /* print string to command line */
145  
146   r_comin()                               /* read string from command line */
147   {
148 <        char    buf[256];
148 >        char    buf[256], *prompt;
149 >                                        /* get prompt */
150 >        if (getc(devin)) {
151 >                mygets(buf, devin);
152 >                prompt = buf;
153 >        } else
154 >                prompt = NULL;
155                                          /* get string */
156 <        (*dev->comin)(buf);
156 >        (*dev->comin)(buf, prompt);
157                                          /* reply */
158          putc(COM_COMIN, devout);
159          myputs(buf, devout);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines