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
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.
>
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
"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
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
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
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.
> >
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
-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
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
10 matches
Mail list logo