From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <013a01c45545$8bf80c50$07fa7d50@SOMA> From: "boyd, rounin" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> References: <200406181311.i5IDBLB05307@zamenhof.cs.utwente.nl> Subject: Re: [9fans] 9term echo-disabling fix (for ssh, vncviewer) Date: Fri, 18 Jun 2004 17:04:24 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: a6132cf8-eacd-11e9-9e20-41e7f4b1d025 > - return (ttmode.c_lflag&(ICANON|ECHO)); > + return (ttmode.c_lflag&(ICANON) && ttmode.c_lflag&(ECHO)); that's weird. 1st returns either: ICANON ECHO ICANON|ECHO 2nd returns 0 [raw | raw and no echo] or 1 [not raw and echo]. this doesn't sound right and i don't want to have to read termio[s]. however, i just remembered i have this (which might help): http://www.insultant.net/tmp/mace/tty.c