Brian,<br><br>Thank you very much for your response. Would you be able to direct me to where I can get some examples of the syntax for this system call? I have not had any luck in experimenting with it.<br><br>Thanks,<br><br>Richard<br><br><b><i>Brian Katzung <briank@kappacs.com></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> If this is for a *NIX-style system, you might want to consider TIOCSTI <br>(simulate typed input) in tty_ioctl(4).<br><br>Richard Reina wrote:<br>> Good Morning,<br>><br>> Hope everybody had a great weekend.<br>><br>> I have a little program called query_aid.pl that helps users here on <br>> are land enter information more easily by matching scalar choices as <br>> they are matched. For example if a user begins typing the name <br>> "lincoln" it will begin showing him the matches as he types and <br>> eliminating records that
no longer match with each successive letter <br>> that is typed. The program uses readkey to see if the user has typed <br>> a number. A number means that the user is attempting to make a <br>> selection by typing in one of they corresponding numbers for a <br>> displayed record. The program has worked great for years except for <br>> one annoying inconvenience. It deals with adding the first number <br>> typed for the selection in the following way:<br>><br>> if ($char > 0) { #it's numeric, they're making a selection<br>> ReadMode 'normal';<br>> print $char;<br>> chomp ($choice = <STDIN>);<br>> $choice = $char . $choice;<br>> }<br>><br>> Accordingly, if the user accidentally types the wrong first digit of <br>> the number (selection) the user cannot backspace and erase the first <br>> digit of the selection ($char) and retype it, but instead has to start <br>> over. Is there a way to make $char
accessible to the user so they can <br>> backspace and erase it if they made a mistake?<br>><br>> Thanks for considering my quandary.<br>><br>> Richard<br>-- <br>Brian Katzung<br>Kappa Computer Solutions, LLC<br>www.kappacs.com 877.367.8837 x1<br><br><br>_______________________________________________<br>Chicago-talk mailing list<br>Chicago-talk@pm.org<br>http://mail.pm.org/mailman/listinfo/chicago-talk<br></STDIN></blockquote><br><BR><BR>Your beliefs become your thoughts. Your thoughts become your words. Your words become your actions. Your actions become your habits. Your habits become your values. Your values become your destiny. -- Mahatma Gandhi