[Winbash-checkins] CVS: winbash/lib/readline readline.c,1.4,1.5 rltty.c,1.2,1.3
Brought to you by:
enricobrunetta,
xks
From: Enrico B. <enr...@us...> - 2002-03-12 11:54:19
|
Update of /cvsroot/winbash/winbash/lib/readline In directory usw-pr-cvs1:/tmp/cvs-serv9343/lib/readline Modified Files: readline.c rltty.c Log Message: need to use running_in_emacs to identify whether shell should echo the command back or not Index: readline.c =================================================================== RCS file: /cvsroot/winbash/winbash/lib/readline/readline.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- readline.c 11 Mar 2002 14:32:16 -0000 1.4 +++ readline.c 12 Mar 2002 11:54:15 -0000 1.5 @@ -158,7 +158,7 @@ static int rl_initialized = 0; /* If non-zero, this program is running in an EMACS buffer. */ -static int running_in_emacs = 0; +int running_in_emacs = 0; /* The current offset in the current input line. */ int rl_point; Index: rltty.c =================================================================== RCS file: /cvsroot/winbash/winbash/lib/readline/rltty.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- rltty.c 9 Mar 2002 16:05:44 -0000 1.2 +++ rltty.c 12 Mar 2002 11:54:15 -0000 1.3 @@ -260,6 +260,7 @@ #if defined (__NT_VC__) #include "../../nt_types.h" extern struct thread_env *thr_main; +extern int running_in_emacs; #endif set_tty_settings (tty, tiop) @@ -267,12 +268,12 @@ TIOTYPE *tiop; { #ifdef __NT_VC__ - readline_echoing_p = 1; - return 0; - if (tty >= MAX_TTY) return 0 ; - if (!dup_terminal[tty]) return 0 ; - dup2(dup_terminal[tty],tty); - return 0 ; + readline_echoing_p = running_in_emacs ? 0 : 1; + return 0; + if (tty >= MAX_TTY) return 0 ; + if (!dup_terminal[tty]) return 0 ; + dup2(dup_terminal[tty],tty); + return 0 ; #else if (tiop->flags & SGTTY_SET) { |