← Commit list

95867147f

Denys Vlasenko
Denys Vlasenko
2019-10-18
SUCCESS Duration: 150s

Subject

telnet: add disabled code to emit EC and IP

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/telnet.c+12 -0
@@ -238,6 +238,18 @@ static void handle_net_output(int len)
*dst = '\r'; /* Enter -> CR LF */
*++dst = '\n';
}
+#if 0
+/* putty's "special commands" mode does this: */
+/* Korenix 3005 switch needs at least the backspace tweak */
+ if (c == 0x08 || c == 0x7f) { /* ctrl+h || backspace */
+ *dst = IAC;
+ *++dst = EC;
+ }
+ if (c == 0x03) { /* ctrl+c */
+ *dst = IAC;
+ *++dst = IP;
+ }
+#endif
dst++;
}
if (dst - outbuf != 0)