CRMOD is true.
SCCS-vsn: usr.bin/telnet/telnet.c 5.16
#endif not lint
#ifndef lint
#endif not lint
#ifndef lint
-static char sccsid[] = "@(#)telnet.c 5.15 (Berkeley) %G%";
+static char sccsid[] = "@(#)telnet.c 5.16 (Berkeley) %G%";
switch (c) {
case '\n':
/*
switch (c) {
case '\n':
/*
- * If echoing is happening locally,
- * then a newline (unix) is CRLF (TELNET).
+ * If we are in CRMOD mode (\r ==> \n)
+ * on our local machine, then probably
+ * a newline (unix) is CRLF (TELNET).
- if (!hisopts[TELOPT_ECHO]) {
NETADD('\r');
}
NETADD('\n');
NETADD('\r');
}
NETADD('\n');