From: cgf AT cygnus DOT com (Christopher Faylor) Subject: Re: Can outsiders get simple questions answered? 30 Dec 1998 18:17:04 -0800 Message-ID: <19981230164604.C5447.cygnus.gnu-win32@cygnus.com> References: <367F31DC DOT B8E71A57 AT sdrc DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: Dan Hensley , gnu-win32 AT cygnus DOT com On Wed, Dec 30, 1998 at 02:24:19PM -0700, Dan Hensley wrote: >But it still looks like tcsetattr isn't able to set all of my >attributes correctly, namely: > >iflag: ICRNL >cflag: CREAD Neither of these is implemented by Cygwin. >I'm also finding some other strange behavior: >* When I set both serial port and keyboard for polling by select, and I >enter something via serial port, it FD_ISSET() correctly tells me that >the serial port had the input. However, read() locks up my bash >session (or at least won't return control--I can still type) when I try >to read the buffer after serial port input. I believe this may be due >to ICRNL not being set. Any thoughts? Since Cygwin doesn't currently do anything but raw reads on the serial port, you're probably seeing a wait while your buffer fills up. You can work around this by doing one byte reads or by playing with VMIN or VTIME although neither of those is fully implemented either. >* When I set both serial port and keyboard for polling by select, and I >enter something via the keyboard, FD_ISSET() tells me that both the >keyboard and the serial port had input. My test case doesn't show this. Sorry. -chris - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".