Changes to qemacs/tty.c

Charlie Gordon <[email protected]>
Newsgroups gmane.editors.qemacs.devel
Message-ID <[email protected]>
Index: qemacs/tty.c
diff -u qemacs/tty.c:1.8 qemacs/tty.c:1.9
--- qemacs/tty.c:1.8	Mon May  9 03:19:36 2005
+++ qemacs/tty.c	Mon May  9 03:24:22 2005
@@ -635,9 +635,16 @@
                                    30 + fgcolor, 40 + bgcolor);
                         }
                         /* do not display escape codes or invalid codes */
-                        if (cc < 32 || (cc >= 128 && cc < 128 + 32)) {
+                        if (cc < 32) {
                             buf[0] = '.';
                             buf[1] = '\0';
+                        } else
+                        if (cc >= 128 && cc < 128 + 32) {
+                            /* Kludge for linedrawing chars */
+                            buf[0] = '\016';
+                            buf[1] = cc - 32;
+                            buf[2] = '\017';
+                            buf[3] = '\0';
                         } else {
                             unicode_to_charset(buf, cc, s->charset);
                         }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.