changeset 98508:c370f470d5ba

(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.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 04 Oct 2008 15:25:16 +0000
parents 148d58d1a607
children 6ea8079d84c7
files src/dispnew.c
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/dispnew.c	Sat Oct 04 15:24:05 2008 +0000
+++ b/src/dispnew.c	Sat Oct 04 15:25:16 2008 +0000
@@ -3954,11 +3954,12 @@
       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 @@
 {
   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 ();