]> code.delx.au - gnu-emacs/commitdiff
(update_frame): Flush termscript for MSDOS frames as well as for TTY.
authorEli Zaretskii <eliz@gnu.org>
Sat, 4 Oct 2008 15:27:56 +0000 (15:27 +0000)
committerEli Zaretskii <eliz@gnu.org>
Sat, 4 Oct 2008 15:27:56 +0000 (15:27 +0000)
(Fopen_termscript): Allow opening a termscript on MSDOS frames as well as
on a TTY.

src/ChangeLog
src/dispnew.c

index 8485c24e645c953fd681438548dfa8527ca368ca..46f8ab3b60e49641e17e94f5bed1b8885bae558c 100644 (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.
 
index afb60ab89d0f4a8490010bb80969c20ae995c397..45b5756665ceb7e04b87c0f64d77749fdfd2cc7a 100644 (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 ();