diff options
author | Eli Zaretskii <eliz@gnu.org> | 2008-11-15 16:20:09 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2008-11-15 16:20:09 +0000 |
commit | ad98e89f4f6d95aad53e900705e7dca894615bca (patch) | |
tree | bbd36f0538881a8e4c3d428532c05ca7279b89aa /src/msdos.c | |
parent | ead9233b5e5d5eaff0f2195e5886a2a0a9d822ef (diff) | |
download | emacs-ad98e89f4f6d95aad53e900705e7dca894615bca.tar.gz emacs-ad98e89f4f6d95aad53e900705e7dca894615bca.tar.bz2 emacs-ad98e89f4f6d95aad53e900705e7dca894615bca.zip |
(run_msdos_command): Don't call dos_ttcooked, dos_ttraw, and bright_bg
if noninteractive is non-zero.
Diffstat (limited to 'src/msdos.c')
-rw-r--r-- | src/msdos.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/msdos.c b/src/msdos.c index 86b765fb68b..7548d9108b4 100644 --- a/src/msdos.c +++ b/src/msdos.c @@ -4749,7 +4749,8 @@ run_msdos_command (argv, working_dir, tempin, tempout, temperr, envv) if (have_mouse > 0) mouse_get_xy (&x, &y); - dos_ttcooked (); /* do it here while 0 = stdin */ + if (!noninteractive) + dos_ttcooked (); /* do it here while 0 = stdin */ dup2 (tempin, 0); dup2 (tempout, 1); @@ -4809,7 +4810,8 @@ run_msdos_command (argv, working_dir, tempin, tempout, temperr, envv) emacs_close (outbak); emacs_close (errbak); - dos_ttraw (CURTTY ()); + if (!noninteractive) + dos_ttraw (CURTTY ()); if (have_mouse > 0) { mouse_init (); @@ -4819,7 +4821,8 @@ run_msdos_command (argv, working_dir, tempin, tempout, temperr, envv) /* Some programs might change the meaning of the highest bit of the text attribute byte, so we get blinking characters instead of the bright background colors. Restore that. */ - bright_bg (); + if (!noninteractive) + bright_bg (); done: chdir (oldwd); |