Re: C question

2003-08-04 Thread Buz Davis
Many thanks to all who replied. Special thanks to Dave Ihnat - that was exactly what I was looking for. Buz Davis -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list

Re: C question

2003-08-02 Thread David Eduardo Gomez Noguera
On Sat, 2003-08-02 at 02:19, Buz Davis wrote: > Sorry if this is as dumb as I feel, but I haven't been successful at > digging out > an answer. > > I would like a routine to read the keyboard and report the single key > pressed, > and give me control back without waiting for ENTER to be pressed. >

Re: C question

2003-08-02 Thread James Gibbon
Dave Ihnat wrote: > HOWEVER, if you're on Unix/Linux, you'll also have to turn off > buffering in the tty driver. This involves a call to tcgetattr, > clearing at least ICANON, in the c_lflag element, and then a call > to tcsetattr. (This will still show the input character being > echoed; you'l

Re: C question

2003-08-02 Thread James Gibbon
"Buz Davis" wrote: > > I would like a routine to read the keyboard and report the single > key pressed, and give me control back without waiting for ENTER to > be pressed. Under MSDOS (where all of my c experience has been) > there was a c routine called getch() that would do just this. I > can

Re: C question

2003-08-02 Thread Dave Ihnat
On Sat, Aug 02, 2003 at 09:20:35AM -0500, Benjamin J. Weiss wrote: > On Sat, 2 Aug 2003, Buz Davis wrote: > > I would like a routine to read the keyboard and report the single key > > pressed, and give me control back without waiting for ENTER to be pressed. > > ... > > Okay, this is going to be a

Re: C question

2003-08-02 Thread MKlinke
On Saturday 02 August 2003 02:19, Buz Davis wrote: > Sorry if this is as dumb as I feel, but I haven't been successful at > digging out > an answer. > > I would like a routine to read the keyboard and report the single key > pressed, > and give me control back without waiting for ENTER to be presse

Re: C question

2003-08-02 Thread Jonathan Bartlett
man getch Looks like it's found in curses.h Jon On Sat, 2 Aug 2003, Benjamin J. Weiss wrote: > On Sat, 2 Aug 2003, Buz Davis wrote: > > > I would like a routine to read the keyboard and report the single key > > pressed, > > and give me control back without waiting for ENTER to be pressed. > >

Re: C question

2003-08-02 Thread Benjamin J. Weiss
On Sat, 2 Aug 2003, Buz Davis wrote: > I would like a routine to read the keyboard and report the single key > pressed, > and give me control back without waiting for ENTER to be pressed. > Under MSDOS (where all of my c experience has been) there was a c > routine > called getch() that would do j

Re: C question

2003-08-02 Thread Michael Schwendt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, 2 Aug 2003 03:19:07 -0400, Buz Davis wrote: > I would like a routine to read the keyboard and report the single key > pressed, > and give me control back without waiting for ENTER to be pressed. > Under MSDOS (where all of my c experience has

C question

2003-08-02 Thread Buz Davis
Sorry if this is as dumb as I feel, but I haven't been successful at digging out an answer. I would like a routine to read the keyboard and report the single key pressed, and give me control back without waiting for ENTER to be pressed. Under MSDOS (where all of my c experience has been) there was