Update of /cvsroot/winbash/winbash/lib/readline
In directory usw-pr-cvs1:/tmp/cvs-serv29120
Modified Files:
rltty.c
Log Message:
* include ENABLE_WINDOW_INPUT in console mode flag so that we
can handle WINDOW_BUFFER_SIZE_EVENT's, which allows us to resize
the screen (terminal) when the console buffer size changes.
* in rl_prep_terminal, turn of echoing (set readline_echoing_p to 0)
if we're running in emacs (running_in_emacs is 1). this appears
to be necessary for running bash in xemacs.
Index: rltty.c
===================================================================
RCS file: /cvsroot/winbash/winbash/lib/readline/rltty.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- rltty.c 25 Mar 2002 16:17:15 -0000 1.5
+++ rltty.c 27 Mar 2002 15:27:13 -0000 1.6
@@ -55,6 +55,8 @@
extern int errno;
#endif /* !errno */
+extern int running_in_emacs;
+
rl_vintfunc_t *rl_prep_term_function = rl_prep_terminal;
rl_voidfunc_t *rl_deprep_term_function = rl_deprep_terminal;
@@ -838,7 +840,8 @@
#include <windows.h>
-#define CONSOLE_MODE ENABLE_PROCESSED_INPUT | ENABLE_MOUSE_INPUT
+#define CONSOLE_MODE \
+ ENABLE_PROCESSED_INPUT | ENABLE_MOUSE_INPUT | ENABLE_WINDOW_INPUT
/* global vars used by other modules */
@@ -882,7 +885,7 @@
rl_prep_terminal (meta_flag)
int meta_flag;
{
- readline_echoing_p = 1;
+ readline_echoing_p = running_in_emacs ? 0 : 1;
if ( !(haveConsole & INITIALIZED) )
{
|