[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
2000/10/25 14:36 from neko
Title: [teenbbs:849] vt220 emulate パッチ

No.   : 849
Sender: neko
URL   : 
Title : vt220 emulate パッチ

新JIS罫線用パッチ
UNIX のテキストブラウザ試して必要になったので。

+static uchar conv_keisenn[] =
+{
+          0x24, 0x26, 0x30, 0x34, 0x3c, 0x38, 0x40,
+    0x50, 0x48, 0x58, 0x60, 0x25, 0x27, 0x33, 0x37,
+    0x3f, 0x3b, 0x47, 0x57, 0x4f, 0x5f, 0x6f, 0x44,
+    0x53, 0x4c, 0x5b, 0x63, 0x41, 0x54, 0x49, 0x5c,
+    0x66
+};

static void _98_vt_putch_1(uchar ch1, uchar ch2)
{
    tty->addr = tty->addr + tty->wrap_reach;
    tty->wrap_reach = 0;

    if (tty->addr >= tty->end_addr)
    {
        /* 1行上へスクロール */
        _98_vt_line_delete_1(tty->start_addr / 160);
        tty->addr -= 160;
    }

    if (ch2)    /* 2バイト文字 */
    {
        unsigned short chw;
+        if( ch1 == 0x28){
+            if( (0x21 <= ch2) && (ch2 <= 0x41) ){
+                ch1 = 0x2c;
+                ch2 = conv_keisenn[ ch2 - 0x21];
+            }
+        }

[レスを書く]