This is the mail archive of the
mailing list for the Cygwin project.
Re: Character at a time input (was Re: Where is less source?)
- From: Randall R Schulz <rrschulz at cris dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 22 Aug 2002 22:26:54 -0700
- Subject: Re: Character at a time input (was Re: Where is less source?)
- References: <email@example.com>
I'm afraid to do that on Windows you'll have to reboot after reading each
OK. Not to be totally frivolous: Yes, "cbreak" and "raw" modes work under
Cygwin. You can see it work from the command line:
% stty cbreak
tthhiiss iiss aa tteesstt
Just to be clear, I typed "this is a test<RETURN>". For reasons I don't
understand, CTRL-D (which I verified is my tty's eof character) did not
generate a end-of-file condition--I had to use CTRL-C to terminate the
"cat" command. What seems even stranger is that "raw" mode behaved the same
way. I suppose those symptoms occur because I don't include the "tty"
option in $CYGWIN.
Mountain View, CA USA
At 15:23 2002-08-22, J. Scott Edwards wrote:
Thanks, I found it. But unfortunately it didn't answer my question:
Can ioctl be used to change the standard input into character at a time
mode or do I have to use ncurses or is there a better way to just get a
character at a time?
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html