This is the mail archive of the
mailing list for the Cygwin project.
Re: Set serial port arttributs under cygwin
steven woody <narkewoody <at> gmail.com> writes:
> under cygwin, how can i set a serial port's attributes? such as,
> speed, trun on or turn off hardware flow control. thanks
A little more googling would show that you are not the first person to ask this
question. The short answer is the same way as you would on Linux. From the
command line, 'stty -F /dev/ttyS0' works pretty well. From C code, functions
like ioctl() and tcgetattr() do the trick.
Therefore, since it is like Unix, it is no longer a cygwin-specific question,
and you might find relevant information from searching more than just the cygwin
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html