From: Pasi Kallinen Date: Fri, 27 Nov 2009 21:12:05 +0000 (+0000) Subject: When term is resized when watching, should replay from the last screen clear. X-Git-Tag: v1.6.1-roc-dev~192 X-Git-Url: https://skyeroc.xyz/gitweb/?a=commitdiff_plain;h=de5177592c7f7e8a191ddab56b714b24db5b4813;p=dgamelaunch When term is resized when watching, should replay from the last screen clear. git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@517 db0b04b0-f4d1-0310-9a6d-de3e77497b0e --- diff --git a/ttyplay.c b/ttyplay.c index 5a9c7a7..c5930a6 100644 --- a/ttyplay.c +++ b/ttyplay.c @@ -251,8 +251,10 @@ ttypread (FILE * fp, Header * h, char **buf, int pread) return READ_EOF; break; case 'r': - if (term_resizex > 0 && term_resizey > 0) + if (term_resizex > 0 && term_resizey > 0) { printf ("\033[8;%d;%dt", term_resizey, term_resizex); + return READ_RESTART; + } break; case 's': switch (stripped)