qemacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemacs-devel] Changes to qemacs/tty.c


From: Charlie Gordon
Subject: [Qemacs-devel] Changes to qemacs/tty.c
Date: Sun, 08 May 2005 23:24:23 -0400

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);
                         }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]