Mercurial > emacs
comparison src/msdos.c @ 99583:e84316087c93
(run_msdos_command): Don't call dos_ttcooked, dos_ttraw, and bright_bg
if noninteractive is non-zero.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sat, 15 Nov 2008 16:19:28 +0000 |
parents | c5c8f07bc47c |
children | e038c1a8307c |
comparison
equal
deleted
inserted
replaced
99582:7d61e0e550ba | 99583:e84316087c93 |
---|---|
4747 goto done; /* Allocation might fail due to lack of descriptors. */ | 4747 goto done; /* Allocation might fail due to lack of descriptors. */ |
4748 | 4748 |
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); |
4756 dup2 (temperr, 2); | 4757 dup2 (temperr, 2); |
4757 | 4758 |
4807 dup2 (errbak, 2); | 4808 dup2 (errbak, 2); |
4808 emacs_close (inbak); | 4809 emacs_close (inbak); |
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 (); |
4816 mouse_moveto (x, y); | 4818 mouse_moveto (x, y); |
4817 } | 4819 } |
4818 | 4820 |
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); |
4826 if (msshell) | 4829 if (msshell) |
4827 { | 4830 { |