# | 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 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |