diff -Nru screen-4.0.2.orig/ansi.c screen-4.0.2/ansi.c --- screen-4.0.2.orig/ansi.c 2003-12-05 06:57:05.000000000 -0700 +++ screen-4.0.2/ansi.c 2008-06-26 22:25:26.000000000 -0600 @@ -1225,6 +1225,11 @@ SaveCursor(); break; case 't': + if (a1 == 18) { + /* report the window size */ + Report("\033[8;%d;%dt", curr->w_height, curr->w_width); + break; + } if (a1 != 8) break; a1 = curr->w_args[2];