Re: Virtual serial ports
Re: Virtual serial ports
- Subject: Re: Virtual serial ports
- From: Thomas Hauk <email@hidden>
- Date: Mon, 17 Sep 2007 22:03:00 -0700
On Sep 17, 2007, at 9:34 PM, Régis Duchesne wrote:
Configure both pty line disciplines to disable local echo? To do so,
clear ECHO in c_lflag before calling tcsetattr(3)...
Thanks for the response!
I tried it -- good guess, but still no luck.
Another interesting tidbit: I test by using one of the two clients
(running a little sandbox in xterm) to send "a" followed by hitting
return, and it sends 2 bytes (0x61 0xa, which is 'a' followed by a
newline, so that's fine). But when my app reads this from the master
file descriptor, it reads 3 bytes -- 0x61 0xa 0xa.
Based on that observation and your hint, I also tried clearing the
ECHONL flag in my app, but that didn't change anything.
I will continue looking at the rest of these flags, but if there's
any more ideas out there, feel free to reply.
T
--
Some people, when confronted with a problem, think "I know, I'll use
regular expressions." Now they have two problems.
--Jamie Zawinski, in comp.lang.emacs
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden