]> skyeroc.xyz Git - dgamelaunch/commitdiff
Ignore some more spurious vt100 G-charset switches in IBM mode.
authorPasi Kallinen <paxed@alt.org>
Mon, 3 Oct 2011 15:36:03 +0000 (15:36 +0000)
committerPasi Kallinen <paxed@alt.org>
Mon, 3 Oct 2011 15:36:03 +0000 (15:36 +0000)
    Apparently CAO's ncurses emits it while mine doesn't, and this breaks
    some terminals, including gnome-terminal but not PuTTY.
    (Adam Borowski <kilobyte@angband.pl>)

git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@601 db0b04b0-f4d1-0310-9a6d-de3e77497b0e

ttyrec.c

index ac931619eef77ce7480e44f2f2c298f96607d2af..720589df6699a3eb38232f285d729260b3ddd99b 100644 (file)
--- a/ttyrec.c
+++ b/ttyrec.c
@@ -433,6 +433,8 @@ dooutput (int max_idle_time)
                       galt = 1;
                       continue;
                   }
+              else if (obuf[i] == 14 || obuf[i] == 15)
+                  continue;
               out += wctoutf8(out, charset_cp437[(unsigned char)obuf[i]]);
           }
           h.len = len = out - ubuf;