ref: f6887b0a3c0a18c59721ea5a006a1c31b3604591
parent: 5c000bbe6378de33b55080bcc8be1cfb907c2d22
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Dec 5 17:43:44 EST 2013
telnet: simplify previous change by moving the notkbd check into consctlcmd()
--- a/sys/src/cmd/ip/telnet.c
+++ b/sys/src/cmd/ip/telnet.c
@@ -314,7 +314,7 @@
void
consctlcmd(char *s)
{
- if(srv != nil)
+ if(srv != nil || notkbd)
return;
if(debug)
fprint(2, "consctl: %s\n", s);
@@ -333,8 +333,6 @@
void
rawon(void)
{
- if(notkbd)
- return;
consctlcmd("rawon");
}
@@ -344,8 +342,6 @@
void
rawoff(void)
{
- if(notkbd)
- return;
consctlcmd("rawoff");
}
--
⑨