Mercurial > hg > xemacs-beta
comparison src/frame-tty.c @ 70:131b0175ea99 r20-0b30
Import from CVS: tag r20-0b30
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:02:59 +0200 |
parents | ec9a17fef872 |
children | 360340f9fd5f |
comparison
equal
deleted
inserted
replaced
69:804d1389bcd6 | 70:131b0175ea99 |
---|---|
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 | |
90 | 65 |
91 /************************************************************************/ | 66 /************************************************************************/ |
92 /* initialization */ | 67 /* initialization */ |
93 /************************************************************************/ | 68 /************************************************************************/ |
94 | 69 |
95 void | 70 void |
96 console_type_create_frame_tty (void) | 71 console_type_create_frame_tty (void) |
97 { | 72 { |
98 CONSOLE_HAS_METHOD (tty, init_frame_1); | 73 CONSOLE_HAS_METHOD (tty, init_frame_1); |
99 CONSOLE_HAS_METHOD (tty, after_init_frame); | 74 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); | |
103 } | 75 } |
104 | 76 |
105 void | 77 void |
106 vars_of_frame_tty (void) | 78 vars_of_frame_tty (void) |
107 { | 79 { |