git: 9front

Download patch

ref: 9b98e74107e0cf82894dadfc903445b0cd28b1c7
parent: 80feef871f8caa886ec274425f4b08da2ed41b6b
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Dec 5 17:05:57 EST 2013

telnet: disable changing raw mode when a pipe was being used (from sources telnet-notkbd patch)

This patch corrects a minor problem with telnet when using
the notkbd option (-n).

--- a/sys/src/cmd/ip/telnet.c
+++ b/sys/src/cmd/ip/telnet.c
@@ -333,6 +333,8 @@
 void
 rawon(void)
 {
+	if(notkbd)
+		return;
 	consctlcmd("rawon");
 }
 
@@ -342,6 +344,8 @@
 void
 rawoff(void)
 {
+	if(notkbd)
+		return;
 	consctlcmd("rawoff");
 }
 
--