From mboxrd@z Thu Jan 1 00:00:00 1970 Message-Id: <200406181311.i5IDBLB05307@zamenhof.cs.utwente.nl> To: 9fans@cse.psu.edu From: Axel Belinfante Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 18 Jun 2004 15:11:21 +0200 Subject: [9fans] 9term echo-disabling fix (for ssh, vncviewer) Topicbox-Message-UUID: a605da4e-eacd-11e9-9e20-41e7f4b1d025 I wrote: > Furthermore I got the impression that the echo-disabling > code in 9term still/again needs some work: on sunos5.8 > when prompting for a password, telnet succeeds to disable echo > but ssh and vncviewer fail. I did have an own version where those > worked too, I'll find time to have a look at the differences. This seems to be it. Axel. Index: SunOS.c =================================================================== RCS file: /cvs/plan9/src/cmd/9term/SunOS.c,v retrieving revision 1.6 diff -b -u -w -r1.6 SunOS.c --- SunOS.c 2004/04/20 02:03:37 1.6 +++ SunOS.c 2004/06/18 12:53:07 @@ -67,7 +67,7 @@ if(debug) fprint(2, "israw %c%c\n", ttmode.c_lflag&ICANON ? 'c'cvs : 1 : '-', ttmode.c_lflag&ECHO ? 'e' : '-'); - return (ttmode.c_lflag&(ICANON|ECHO)); + return (ttmode.c_lflag&(ICANON) && ttmode.c_lflag&(ECHO)); }