comparison 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
comparison
equal deleted inserted replaced
107:523141596bda 108:360340f9fd5f
60 { 60 {
61 if (first_on_console) 61 if (first_on_console)
62 call1 (Qinit_post_tty_win, FRAME_CONSOLE (f)); 62 call1 (Qinit_post_tty_win, FRAME_CONSOLE (f));
63 } 63 }
64 64
65 /* Change from withdrawn state to mapped state. */
66 static void
67 tty_make_frame_visible (struct frame *f)
68 {
69 if (!FRAME_VISIBLE_P(f))
70 {
71 SET_FRAME_CLEAR(f);
72 f->visible = 1;
73 }
74
75 }
76
77 /* Change from mapped state to withdrawn state. */
78 static void
79 tty_make_frame_invisible (struct frame *f)
80 {
81 f->visible = 0;
82 }
83
84 static int
85 tty_frame_visible_p (struct frame *f)
86 {
87 return FRAME_VISIBLE_P(f);
88 }
89
65 90
66 /************************************************************************/ 91 /************************************************************************/
67 /* initialization */ 92 /* initialization */
68 /************************************************************************/ 93 /************************************************************************/
69 94
70 void 95 void
71 console_type_create_frame_tty (void) 96 console_type_create_frame_tty (void)
72 { 97 {
73 CONSOLE_HAS_METHOD (tty, init_frame_1); 98 CONSOLE_HAS_METHOD (tty, init_frame_1);
74 CONSOLE_HAS_METHOD (tty, after_init_frame); 99 CONSOLE_HAS_METHOD (tty, after_init_frame);
100 CONSOLE_HAS_METHOD (tty, make_frame_visible);
101 CONSOLE_HAS_METHOD (tty, make_frame_invisible);
102 CONSOLE_HAS_METHOD (tty, frame_visible_p);
75 } 103 }
76 104
77 void 105 void
78 vars_of_frame_tty (void) 106 vars_of_frame_tty (void)
79 { 107 {