This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Can outsiders get simple questions answered?


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@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]