Re: non-delay mode read from cin
From: Arijit (pal_ari_at_yahoo.co.in)
Date: 31 Oct 2004 20:31:04 -0800
"richard" <firstname.lastname@example.org> wrote in message news:<email@example.com>...
> 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.
Not possible in standard C++. Since you are using linux, check out the
GNU readline library.