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
This commit is contained in:
Pasi Kallinen 2009-11-27 21:12:05 +00:00
parent 9bed813458
commit de5177592c
1 changed files with 3 additions and 1 deletions

View File

@ -251,8 +251,10 @@ ttypread (FILE * fp, Header * h, char **buf, int pread)
return READ_EOF; return READ_EOF;
break; break;
case 'r': 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); printf ("\033[8;%d;%dt", term_resizey, term_resizex);
return READ_RESTART;
}
break; break;
case 's': case 's':
switch (stripped) switch (stripped)