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.
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. */
{
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 ();