shithub: riscv

Download patch

ref: 919863dab3490b624fdb6197566cf9e3b5980c2a
parent: ad3ba8838d82267cbafa5d293b86e2eef41fa9c5
author: cinap_lenrek <[email protected]>
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");
 }