Brian,<br><br>Thank you very much for your response.&nbsp; Would you be able to direct me to where I can get some examples of the syntax for this system call?&nbsp; I have not had any luck in experimenting with it.<br><br>Thanks,<br><br>Richard<br><br><b><i>Brian Katzung &lt;briank@kappacs.com&gt;</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>&gt; Good Morning,<br>&gt;<br>&gt; Hope everybody had a great weekend.<br>&gt;<br>&gt; I have a little program called query_aid.pl that helps users here on <br>&gt; are land enter information more easily by matching scalar choices as <br>&gt; they are matched.  For example if a user begins typing the name <br>&gt; "lincoln" it will begin showing him the matches as he types and <br>&gt; eliminating records that
 no longer match with each successive letter <br>&gt; that is typed.  The program uses readkey to see if the user has typed <br>&gt; a number.  A number means that the user is attempting to make a <br>&gt; selection by typing in one of they corresponding numbers for a <br>&gt; displayed record.  The program has worked great for years except for <br>&gt; one annoying inconvenience.  It deals with adding the first number <br>&gt; typed for the selection in the following way:<br>&gt;<br>&gt; if ($char &gt; 0) { #it's numeric, they're making a selection<br>&gt;     ReadMode 'normal';<br>&gt;     print $char;<br>&gt;     chomp ($choice = <STDIN>);<br>&gt;     $choice = $char . $choice;<br>&gt; }<br>&gt;<br>&gt; Accordingly, if the user accidentally types the wrong first digit of <br>&gt; the number (selection) the user cannot backspace and erase the first <br>&gt; digit of the selection ($char) and retype it, but instead has to start <br>&gt; over. Is there a way to make $char
 accessible to the user so they can <br>&gt; backspace and erase it if they made a mistake?<br>&gt;<br>&gt; Thanks for considering my quandary.<br>&gt;<br>&gt; 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