diff src/frame-tty.c @ 30:ec9a17fef872 r19-15b98

Import from CVS: tag r19-15b98
author cvs
date Mon, 13 Aug 2007 08:52:29 +0200
parents 376386a54a3c
children 131b0175ea99
line wrap: on
line diff
--- a/src/frame-tty.c	Mon Aug 13 08:51:58 2007 +0200
+++ b/src/frame-tty.c	Mon Aug 13 08:52:29 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