summaryrefslogtreecommitdiff
blob: 0471fde131540b6c93623dc0d5f15f7813b947c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- 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;