aboutsummaryrefslogtreecommitdiffstats
path: root/src/msdos.c
diff options
context:
space:
mode:
authorEli Zaretskii2008-11-15 16:20:09 +0000
committerEli Zaretskii2008-11-15 16:20:09 +0000
commitad98e89f4f6d95aad53e900705e7dca894615bca (patch)
treebbd36f0538881a8e4c3d428532c05ca7279b89aa /src/msdos.c
parentead9233b5e5d5eaff0f2195e5886a2a0a9d822ef (diff)
downloademacs-ad98e89f4f6d95aad53e900705e7dca894615bca.tar.gz
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.c9
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)
4749 if (have_mouse > 0) 4749 if (have_mouse > 0)
4750 mouse_get_xy (&x, &y); 4750 mouse_get_xy (&x, &y);
4751 4751
4752 dos_ttcooked (); /* do it here while 0 = stdin */ 4752 if (!noninteractive)
4753 dos_ttcooked (); /* do it here while 0 = stdin */
4753 4754
4754 dup2 (tempin, 0); 4755 dup2 (tempin, 0);
4755 dup2 (tempout, 1); 4756 dup2 (tempout, 1);
@@ -4809,7 +4810,8 @@ run_msdos_command (argv, working_dir, tempin, tempout, temperr, envv)
4809 emacs_close (outbak); 4810 emacs_close (outbak);
4810 emacs_close (errbak); 4811 emacs_close (errbak);
4811 4812
4812 dos_ttraw (CURTTY ()); 4813 if (!noninteractive)
4814 dos_ttraw (CURTTY ());
4813 if (have_mouse > 0) 4815 if (have_mouse > 0)
4814 { 4816 {
4815 mouse_init (); 4817 mouse_init ();
@@ -4819,7 +4821,8 @@ run_msdos_command (argv, working_dir, tempin, tempout, temperr, envv)
4819 /* Some programs might change the meaning of the highest bit of the 4821 /* Some programs might change the meaning of the highest bit of the
4820 text attribute byte, so we get blinking characters instead of the 4822 text attribute byte, so we get blinking characters instead of the
4821 bright background colors. Restore that. */ 4823 bright background colors. Restore that. */
4822 bright_bg (); 4824 if (!noninteractive)
4825 bright_bg ();
4823 4826
4824 done: 4827 done:
4825 chdir (oldwd); 4828 chdir (oldwd);