Update of /cvsroot/winbash/winbash/lib/readline
In directory usw-pr-cvs1:/tmp/cvs-serv27918
Modified Files:
input.c
Log Message:
handle WINDOW_BUFFER_SIZE_EVENT so that we can resize the screen when
the console buffer size changes.
Index: input.c
===================================================================
RCS file: /cvsroot/winbash/winbash/lib/readline/input.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- input.c 25 Mar 2002 10:45:42 -0000 1.1
+++ input.c 27 Mar 2002 15:22:50 -0000 1.2
@@ -539,6 +539,11 @@
case MOUSE_EVENT:
if ( (haveConsole & FOR_OUTPUT) && !rl_dispatching )
MouseEventProc(irec.Event.MouseEvent);
+ break;
+ case WINDOW_BUFFER_SIZE_EVENT:
+ /* we've (possibly) been resized, so adjust screen size */
+ rl_resize_terminal();
+ break;
default:
break;
}
|