diff src/frame-tty.c @ 108:360340f9fd5f r20-1b6

Import from CVS: tag r20-1b6
author cvs
date Mon, 13 Aug 2007 09:18:39 +0200
parents 131b0175ea99
children 538048ae2ab8
line wrap: on
line diff
--- a/src/frame-tty.c	Mon Aug 13 09:17:27 2007 +0200
+++ b/src/frame-tty.c	Mon Aug 13 09:18:39 2007 +0200
@@ -62,6 +62,31 @@
       call1 (Qinit_post_tty_win, FRAME_CONSOLE (f));
 }
 
+/* Change from withdrawn state to mapped state. */
+static void
+tty_make_frame_visible (struct frame *f)
+{
+  if (!FRAME_VISIBLE_P(f))
+    {
+      SET_FRAME_CLEAR(f);
+      f->visible = 1;
+    }
+  
+}
+
+/* Change from mapped state to withdrawn state. */
+static void
+tty_make_frame_invisible (struct frame *f)
+{
+    f->visible = 0;
+}
+
+static int
+tty_frame_visible_p (struct frame *f)
+{
+  return FRAME_VISIBLE_P(f);
+}
+
 
 /************************************************************************/
 /*                            initialization                            */
@@ -72,6 +97,9 @@
 {
   CONSOLE_HAS_METHOD (tty, init_frame_1);
   CONSOLE_HAS_METHOD (tty, after_init_frame);
+  CONSOLE_HAS_METHOD (tty, make_frame_visible);
+  CONSOLE_HAS_METHOD (tty, make_frame_invisible);
+  CONSOLE_HAS_METHOD (tty, frame_visible_p);
 }
 
 void