comp.lang.ada
 help / color / mirror / Atom feed
From: Bruce or Tracy Jacobs <bljacobs2@mchsi.com>
Subject: Re: Keyboard Polling Solution
Date: Sun, 22 Feb 2004 21:30:16 GMT
Date: 2004-02-22T21:30:16+00:00	[thread overview]
Message-ID: <40392016.6116222B@mchsi.com> (raw)
In-Reply-To: g6vZb.117$nd2.3555@news20.bellglobal.com

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



      reply	other threads:[~2004-02-22 21:30 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-18 21:37 Keyboard Polling Solution Me
2004-02-18 23:10 ` Preben Randhol
2004-02-19  0:30   ` Bruce or Tracy Jacobs
2004-02-19 11:47   ` Marin David Condic
2004-02-19 22:57     ` Bruce or Tracy Jacobs
2004-02-20 12:15       ` Marin David Condic
2004-02-20 20:59         ` Chad R. Meiners
2004-02-22 21:26         ` Bruce or Tracy Jacobs
2004-02-23 10:40           ` Preben Randhol
2004-02-25  0:44             ` Bruce or Tracy Jacobs
2004-02-25  2:05               ` Chad R. Meiners
2004-03-03 16:20                 ` Me
2004-02-20 21:38 ` Warren W. Gay VE3WWG
2004-02-22 21:30   ` Bruce or Tracy Jacobs [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox