9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] 9term echo-disabling fix (for ssh, vncviewer)
@ 2004-06-18 13:11 Axel Belinfante
  2004-06-18 15:04 ` boyd, rounin
  0 siblings, 1 reply; 4+ messages in thread
From: Axel Belinfante @ 2004-06-18 13:11 UTC (permalink / raw)
  To: 9fans

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));
 }





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-06-18 16:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-18 13:11 [9fans] 9term echo-disabling fix (for ssh, vncviewer) Axel Belinfante
2004-06-18 15:04 ` boyd, rounin
2004-06-18 16:06   ` Axel Belinfante
2004-06-18 16:52     ` boyd, rounin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).