You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-misc/termpkg/files/termpkg-3.3-ttydforfax.diff

29 lines
1.1 KiB

--- termpkg-3.3/termnet/ttyd.c.orig 2005-09-29 08:59:05.000000000 -1000
+++ termpkg-3.3/termnet/ttyd.c 2005-09-29 08:51:33.000000000 -1000
@@ -340,7 +340,10 @@
char *cp;
int x;
for (cp = commbuf, x = 0; x < cnt; x++, cp++)
+if (isprint(*cp))
syslog(LOG_DEBUG, "ttyd: Have net char 0x%x, |%c|", *cp, *cp);
+else
+syslog(LOG_DEBUG, "ttyd: Have net char 0x%x", *cp);
}
write(fd, commbuf, cnt);
}
@@ -366,9 +369,13 @@
char *cp;
int x;
for (cp = commbuf, x = 0; x < cnt; x++, cp++)
+if (isprint(*cp))
syslog(LOG_DEBUG, "ttyd: Have key char 0x%x, |%c|", *cp, *cp);
+else
+syslog(LOG_DEBUG, "ttyd: Have key char 0x%x", *cp);
}
- inputTerminal(commbuf, cnt);
+// inputTerminal(commbuf, cnt);
+write(fileno(tnlout), commbuf, cnt);
}
else
break;