diff src/termchar.h @ 93883:722fdbc7a012

* xdisp.c (redisplay_internal): Reset tty's color_mode when switching to another frame. * frame.c (do_switch_frame): Refine the top_frame/async_visible code. Don't call set_tty_color_mode. (store_frame_param): Reset previous_frame rather than call set_tty_color_mode. * term.c (set_tty_color_mode): Rewrite. * dispextern.h (set_tty_color_mode): New type. * termchar.h (struct tty_display_info): Add `previous_color_mode'.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Wed, 09 Apr 2008 03:25:14 +0000
parents 107ccd98fa12
children 29adfc9354e7
line wrap: on
line diff
--- a/src/termchar.h	Tue Apr 08 22:13:13 2008 +0000
+++ b/src/termchar.h	Wed Apr 09 03:25:14 2008 +0000
@@ -70,6 +70,7 @@
   
   /* The previous frame we displayed on this tty.  */
   struct frame *previous_frame;
+  int previous_color_mode;
 
   /* Strings, numbers and flags taken from the termcap entry.  */