(update_frame): Flush termscript for MSDOS frames as well as for TTY.

(Fopen_termscript): Allow opening a termscript on MSDOS frames as well as
on a TTY.
This commit is contained in:
Eli Zaretskii 2008-10-04 15:27:56 +00:00
parent 6dfab00d57
commit 7d2f1216b7
2 changed files with 13 additions and 3 deletions

View file

@ -1,5 +1,13 @@
2008-10-04 Eli Zaretskii <eliz@gnu.org>
* xdisp.c (redisplay_internal): If frame switched, redisplay the
whole thing on MSDOS frames as well as on a TTY.
* dispnew.c (update_frame): Flush termscript for MSDOS frames as
well as for TTY.
(Fopen_termscript): Allow opening a termscript on MSDOS frames as
well as on a TTY.
* sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
as well as for TTY.

View file

@ -3954,11 +3954,12 @@ update_frame (f, force_p, inhibit_hairy_id_p)
paused_p = update_frame_1 (f, force_p, inhibit_hairy_id_p);
update_end (f);
if (FRAME_TERMCAP_P (f))
if (FRAME_TERMCAP_P (f) || FRAME_MSDOS_P (f))
{
if (FRAME_TTY (f)->termscript)
fflush (FRAME_TTY (f)->termscript);
fflush (FRAME_TTY (f)->output);
if (FRAME_TERMCAP_P (f))
fflush (FRAME_TTY (f)->output);
}
/* Check window matrices for lost pointers. */
@ -6421,7 +6422,8 @@ FILE = nil means just close any termscript file currently open. */)
{
struct tty_display_info *tty;
if (! FRAME_TERMCAP_P (SELECTED_FRAME ()))
if (! FRAME_TERMCAP_P (SELECTED_FRAME ())
&& ! FRAME_MSDOS_P (SELECTED_FRAME ()))
error ("Current frame is not on a tty device");
tty = CURTTY ();