From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e759c9142eba3ec1 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-02-22 13:30:17 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!news.gtei.net!newsfeed1.easynews.com!easynews.com!easynews!elnk-pas-nf1!elnk-nf2-pas!newsfeed.earthlink.net!wn53feed!worldnet.att.net!attbi_s02.POSTED!not-for-mail Message-ID: <40392016.6116222B@mchsi.com> From: Bruce or Tracy Jacobs Reply-To: bruce.tracy@the-jacobs.org X-Mailer: Mozilla 4.7 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Keyboard Polling Solution References: <4033DB01.2CE34E32@me.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 12.218.74.234 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s02 1077485416 12.218.74.234 (Sun, 22 Feb 2004 21:30:16 GMT) NNTP-Posting-Date: Sun, 22 Feb 2004 21:30:16 GMT Organization: MediaCom High Speed Internet Date: Sun, 22 Feb 2004 21:30:16 GMT Xref: archiver1.google.com comp.lang.ada:5735 Date: 2004-02-22T21:30:16+00:00 List-Id: Lots of good info and advice from everyone - thanks for the response. I had a similar experience with output to a printer once. One of the patterns I was sending to the bit-mapping in the printer just happened to be a CTL-D or something very similar which had a pre-defined meaning to the printer. Had to explicitly check for that joker everytime from then on. That does get to be a pain from time to time, and it isn't exactly intuitive to debug. "Warren W. Gay VE3WWG" wrote: > > Me wrote: > > > Yes, "Get_Immediate" seems to do the trick. Thanks for the tip. > > > > Test Example : > ... > > One annoying thing about it however is that for w2k use, > Control-D causes "End_of_File" to occur, whether or not > it was the first character entered on a line or not. > > Under *NIX/*BSD, the end of file character is only special > at the start of the line (or not active at all). This > means that Get_Immediate cannot return ^D when you want > it to :< AFAIK, under w2k. Note however, that ^Z _is_ > readable, which usually causes EOF to windoze/DOS progs. > > -- > Warren W. Gay VE3WWG > http://ve3wwg.tk