Update of /cvsroot/winbash/winbash
In directory usw-pr-cvs1:/tmp/cvs-serv9343
Modified Files:
nt_io.c
Log Message:
need to use running_in_emacs to identify whether shell should echo the command back or not
Index: nt_io.c
===================================================================
RCS file: /cvsroot/winbash/winbash/nt_io.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- nt_io.c 10 Mar 2002 21:45:13 -0000 1.2
+++ nt_io.c 12 Mar 2002 11:54:15 -0000 1.3
@@ -144,7 +144,7 @@
int
nt_read (int fd, char *buf, size_t count)
{
- //extern int running_in_emacs;
+ extern int running_in_emacs;
int ret;
int save_count = count;
#if 0
@@ -152,7 +152,7 @@
fflush (stderr);
#endif
- if (interactive_shell)
+ if (interactive_shell && !running_in_emacs)
{
int i;
for (i = 0; i < count; buf[i++] = getch ())
|