On Sun, 2002-03-17 at 12:48, Junichi Uekawa wrote:
> Also, why does it seem to use graphical chars under uxterm,
> and not under b-f. It is terminfo related?

Well, it works if you do something like this.  (Obviously you need to
arrange for unifont-reduced.bgf to include the 25xx characters too.)

I dunno if this is an appropriate kind of change to be making to bterm,
what do people think?

p.

diff -ur bogl-0.1.7/bogl-term.c bogl-0.1.7-pb/bogl-term.c
--- bogl-0.1.7/bogl-term.c      Mon May 28 01:14:47 2001
+++ bogl-0.1.7-pb/bogl-term.c   Sun Mar 17 14:18:17 2002
@@ -262,6 +262,16 @@
             term->state = -1;
             continue;
         }
+       if (wc == 14)
+       {
+           term->acs = 1;
+           continue;
+       }
+       if (wc == 15)
+       {
+           term->acs = 0;
+           continue;
+       }
 
         if (term->state == -1)
         {
@@ -413,6 +423,40 @@
 
         if ((w = wcwidth (wc)) < 0)
             continue;
+
+       if (term->acs)
+       {
+           switch (wc) 
+           {
+           case 'q':
+             wc = 0x2500;
+             break;
+           case 'j':
+             wc = 0x2518;
+             break;
+           case 'x':
+             wc = 0x2502;
+             break;
+           case 'a':
+             wc = 0x2591;
+             break;
+           case 'm':
+             wc = 0x2514;
+             break;
+           case 'l':
+             wc = 0x250c;
+             break;
+           case 'k':
+             wc = 0x2510;
+             break;
+           case 'u':
+             wc = 0x2524;
+             break;
+           case 't':
+             wc = 0x251c;
+             break;
+           }
+       }
 
         wctomb (0, 0);
         kk = wctomb (buf, wc);
diff -ur bogl-0.1.7/bogl-term.h bogl-0.1.7-pb/bogl-term.h
--- bogl-0.1.7/bogl-term.h      Sat Feb 24 19:49:15 2001
+++ bogl-0.1.7-pb/bogl-term.h   Sun Mar 17 13:30:10 2002
@@ -22,6 +22,7 @@
   int *screenfg, *screenbg, *screenul; /* colours in cell */
   wchar_t **cchars; /* combining chars in cell, or 0 */
   int yorig; /* increment this to scroll */
+  int acs;
 };
 
 struct bogl_term *bogl_term_new(struct bogl_font *font);
diff -ur bogl-0.1.7/bterm.ti bogl-0.1.7-pb/bterm.ti
--- bogl-0.1.7/bterm.ti Mon May 28 01:35:31 2001
+++ bogl-0.1.7-pb/bterm.ti      Sun Mar 17 13:49:54 2002
@@ -13,3 +13,6 @@
   rev=\E[7m, sgr0=\E[0m,
   smso=\E[7m, rmso=\E[27m,
   sgr=\E[0m%?%p1%t\E[7m%;%?%p2%t\E[4m%;,
+  acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
+  smacs=^N,
+  rmacs=^O,



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to