File: termpkg-ttydforfax.patch

package info (click to toggle)
iaxmodem 1.2.0~dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 16,452 kB
  • sloc: ansic: 127,038; sh: 18,974; xml: 11,738; cpp: 1,457; makefile: 1,021
file content (28 lines) | stat: -rw-r--r-- 1,088 bytes parent folder | download | duplicates (6)
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/linux/termnet/ttyd.c.orig	2005-09-29 08:59:05.000000000 -1000
+++ termpkg-3.3/linux/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;