non-delay mode read from cin
From: richard (byang1_at_sbcglobal.net)
Date: 10/31/04
- Next message: John Harrison: "Re: Compiler warning when using vector of pointers"
- Previous message: Rolf Magnus: "Re: Compiler warning when using vector of pointers"
- Next in thread: John Harrison: "Re: non-delay mode read from cin"
- Reply: John Harrison: "Re: non-delay mode read from cin"
- Reply: Mike Wahler: "Re: non-delay mode read from cin"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 31 Oct 2004 17:50:57 GMT
I am trying to do non-delay mode read from cin, i.e.
char ch;
...
while( cin.getch(ch) )
{
...
}
I want getch to return whenever there is a char typed (not wait till
a newline is seen).
How do I do this? I am using linux if it matters.
thanks,
----RICH
- Next message: John Harrison: "Re: Compiler warning when using vector of pointers"
- Previous message: Rolf Magnus: "Re: Compiler warning when using vector of pointers"
- Next in thread: John Harrison: "Re: non-delay mode read from cin"
- Reply: John Harrison: "Re: non-delay mode read from cin"
- Reply: Mike Wahler: "Re: non-delay mode read from cin"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|