comparison src/console-tty.h @ 185:3d6bfa290dbd r20-3b19

Import from CVS: tag r20-3b19
author cvs
date Mon, 13 Aug 2007 09:55:28 +0200
parents 25f70ba0133c
children 8efd647ea9ca
comparison
equal deleted inserted replaced
184:bcd2674570bf 185:3d6bfa290dbd
64 /* The count of frame number. */ 64 /* The count of frame number. */
65 int frame_count; 65 int frame_count;
66 66
67 /* flags indicating presence, absence or value of various features */ 67 /* flags indicating presence, absence or value of various features */
68 struct 68 struct
69 { 69 {
70 unsigned int must_write_spaces :1;/* terminal inserts nulls, not 70 unsigned int must_write_spaces :1; /* terminal inserts nulls, not
71 spaces to fill whitespace 71 spaces to fill whitespace on
72 on screen */ 72 screen */
73 unsigned int insert_mode_motion :1;/* cursor movement commands 73 unsigned int insert_mode_motion :1; /* cursor movement commands
74 work while in insert mode */ 74 work while in insert mode */
75 unsigned int standout_motion :1; /* cursor movement is graceful 75 unsigned int standout_motion :1; /* cursor movement is graceful
76 in standout or underline mode */ 76 in standout or underline mode */
77 unsigned int memory_above_frame :1;/* display retained above screen */ 77 unsigned int memory_above_frame :1; /* display retained above screen */
78 unsigned int memory_below_frame :1;/* display retained below screen */ 78 unsigned int memory_below_frame :1; /* display retained below screen */
79 unsigned int meta_key :2; /* 0 == mask off top bit; 79 unsigned int meta_key :2; /* 0 == mask off top bit;
80 1 == top bit is meta; 80 1 == top bit is meta;
81 2 == top bit is useful as 81 2 == top bit is useful as
82 character info */ 82 character info */
83 unsigned int flow_control :1; /* Nonzero means use ^S/^Q as 83 unsigned int flow_control :1; /* Nonzero means use ^S/^Q as
84 cretinous flow control. */ 84 cretinous flow control. */
85 int standout_width; /* # of spaces printed when 85 int standout_width; /* # of spaces printed when
86 change to standout mode */ 86 change to standout mode */
87 int underline_width; /* # of spaces printed when 87 int underline_width; /* # of spaces printed when
88 change to underline mode */ 88 change to underline mode */
89 } flags; 89 } flags;
90 90
91 /* cursor motion entries - each entry is commented with the terminfo 91 /* cursor motion entries - each entry is commented with the terminfo
92 and the termcap entry */ 92 and the termcap entry */
93 struct 93 struct
94 { 94 {
95 /* local cursor movement */ 95 /* local cursor movement */
96 CONST char *up; /* cuu1, up */ 96 CONST char *up; /* cuu1, up */
97 CONST char *down; /* cud1, do */ 97 CONST char *down; /* cud1, do */
98 CONST char *left; /* cub1, le */ 98 CONST char *left; /* cub1, le */
99 CONST char *right; /* cuf1, nd */ 99 CONST char *right; /* cuf1, nd */
100 CONST char *home; /* home, ho */ 100 CONST char *home; /* home, ho */
101 CONST char *low_left; /* ll, ll */ 101 CONST char *low_left; /* ll, ll */
102 CONST char *car_return; /* cr, cr */ 102 CONST char *car_return; /* cr, cr */
103 103
104 /* parameterized local cursor movement */ 104 /* parameterized local cursor movement */
105 CONST char *multi_up; /* cuu, UP */ 105 CONST char *multi_up; /* cuu, UP */
106 CONST char *multi_down; /* cud, DO */ 106 CONST char *multi_down; /* cud, DO */
107 CONST char *multi_left; /* cub, LE */ 107 CONST char *multi_left; /* cub, LE */
108 CONST char *multi_right; /* cuf, RI */ 108 CONST char *multi_right; /* cuf, RI */
109 109
110 /* absolute cursor motion */ 110 /* absolute cursor motion */
111 CONST char *abs; /* cup, cm */ 111 CONST char *abs; /* cup, cm */
112 CONST char *hor_abs; /* hpa, ch */ 112 CONST char *hor_abs; /* hpa, ch */
113 CONST char *ver_abs; /* vpa, cv */ 113 CONST char *ver_abs; /* vpa, cv */
114 114
115 /* scrolling */ 115 /* scrolling */
116 CONST char *scroll_forw; /* ind, sf */ 116 CONST char *scroll_forw; /* ind, sf */
117 CONST char *scroll_back; /* ri, sr */ 117 CONST char *scroll_back; /* ri, sr */
118 CONST char *multi_scroll_forw; /* indn, SF */ 118 CONST char *multi_scroll_forw; /* indn, SF */
119 CONST char *multi_scroll_back; /* rin, SR */ 119 CONST char *multi_scroll_back; /* rin, SR */
120 CONST char *set_scroll_region; /* csr, cs */ 120 CONST char *set_scroll_region; /* csr, cs */
121 } cm; 121 } cm;
122 122
123 /* screen editing entries - each entry is commented with the 123 /* screen editing entries - each entry is commented with the
124 terminfo and the termcap entry */ 124 terminfo and the termcap entry */
125 struct 125 struct
126 { 126 {
127 /* adding to the screen */ 127 /* adding to the screen */
128 CONST char *ins_line; /* il1, al */ 128 CONST char *ins_line; /* il1, al */
129 CONST char *multi_ins_line; /* il, AL */ 129 CONST char *multi_ins_line; /* il, AL */
130 CONST char *repeat; /* rep, rp */ 130 CONST char *repeat; /* rep, rp */
131 CONST char *begin_ins_mode; /* smir, im */ 131 CONST char *begin_ins_mode; /* smir, im */
132 CONST char *end_ins_mode; /* rmir, ei */ 132 CONST char *end_ins_mode; /* rmir, ei */
133 CONST char *ins_char; /* ich1, ic */ 133 CONST char *ins_char; /* ich1, ic */
134 CONST char *multi_ins_char; /* ich, IC */ 134 CONST char *multi_ins_char; /* ich, IC */
135 CONST char *insert_pad; /* ip, ip */ 135 CONST char *insert_pad; /* ip, ip */
136 136
137 /* deleting from the screen */ 137 /* deleting from the screen */
138 CONST char *clr_frame; /* clear, cl */ 138 CONST char *clr_frame; /* clear, cl */
139 CONST char *clr_from_cursor; /* ed, cd */ 139 CONST char *clr_from_cursor; /* ed, cd */
140 CONST char *clr_to_eol; /* el, ce */ 140 CONST char *clr_to_eol; /* el, ce */
141 CONST char *del_line; /* dl1, dl */ 141 CONST char *del_line; /* dl1, dl */
142 CONST char *multi_del_line; /* dl, DL */ 142 CONST char *multi_del_line; /* dl, DL */
143 CONST char *del_char; /* dch1, dc */ 143 CONST char *del_char; /* dch1, dc */
144 CONST char *multi_del_char; /* dch, DC */ 144 CONST char *multi_del_char; /* dch, DC */
145 CONST char *begin_del_mode; /* smdc, dm */ 145 CONST char *begin_del_mode; /* smdc, dm */
146 CONST char *end_del_mode; /* rmdc, ed */ 146 CONST char *end_del_mode; /* rmdc, ed */
147 CONST char *erase_at_cursor; /* ech, ec */ 147 CONST char *erase_at_cursor; /* ech, ec */
148 } se; 148 } se;
149 149
150 /* screen display entries - each entry is commented with the 150 /* screen display entries - each entry is commented with the
151 terminfo and termcap entry */ 151 terminfo and termcap entry */
152 struct 152 struct
153 { 153 {
154 CONST char *begin_standout; /* smso, so */ 154 CONST char *begin_standout; /* smso, so */
155 CONST char *end_standout; /* rmso, se */ 155 CONST char *end_standout; /* rmso, se */
156 CONST char *begin_underline; /* smul, us */ 156 CONST char *begin_underline; /* smul, us */
157 CONST char *end_underline; /* rmul, ue */ 157 CONST char *end_underline; /* rmul, ue */
158 CONST char *begin_alternate; /* smacs, as */ 158 CONST char *begin_alternate; /* smacs, as */
159 CONST char *end_alternate; /* rmacs, ae */ 159 CONST char *end_alternate; /* rmacs, ae */
160 160
161 CONST char *turn_on_reverse; /* rev, mr */ 161 CONST char *turn_on_reverse; /* rev, mr */
162 CONST char *turn_on_blinking; /* blink, mb */ 162 CONST char *turn_on_blinking; /* blink, mb */
163 CONST char *turn_on_bold; /* bold, md */ 163 CONST char *turn_on_bold; /* bold, md */
164 CONST char *turn_on_dim; /* dim, mh */ 164 CONST char *turn_on_dim; /* dim, mh */
165 CONST char *turn_off_attributes; /* sgr0, me */ 165 CONST char *turn_off_attributes; /* sgr0, me */
166 166
167 CONST char *visual_bell; /* flash, vb */ 167 CONST char *visual_bell; /* flash, vb */
168 CONST char *audio_bell; /* bel, bl */ 168 CONST char *audio_bell; /* bel, bl */
169 169
170 CONST char *cursor_visible; /* cvvis, vs */ 170 CONST char *cursor_visible; /* cvvis, vs */
171 CONST char *cursor_normal; /* cnorm, ve */ 171 CONST char *cursor_normal; /* cnorm, ve */
172 CONST char *init_motion; /* smcup, ti */ 172 CONST char *init_motion; /* smcup, ti */
173 CONST char *end_motion; /* rmcup, te */ 173 CONST char *end_motion; /* rmcup, te */
174 CONST char *keypad_on; /* smkx, ks */ 174 CONST char *keypad_on; /* smkx, ks */
175 CONST char *keypad_off; /* rmkx, ke */ 175 CONST char *keypad_off; /* rmkx, ke */
176 176
177 CONST char *orig_pair; /* op, op */ 177 CONST char *orig_pair; /* op, op */
178 } sd; 178 } sd;
179 179
180 /* costs of various operations */ 180 /* costs of various operations */
181 struct 181 struct
182 { 182 {
183 int cm_up; 183 int cm_up;
184 int cm_down; 184 int cm_down;
185 int cm_left; 185 int cm_left;
186 int cm_right; 186 int cm_right;
187 int cm_home; 187 int cm_home;
188 int cm_low_left; 188 int cm_low_left;
189 int cm_car_return; 189 int cm_car_return;
190 int cm_abs; 190 int cm_abs;
191 int cm_hor_abs; 191 int cm_hor_abs;
192 int cm_ver_abs; 192 int cm_ver_abs;
193 } cost; 193 } cost;
194 194
195 /* The initial tty mode bits */ 195 /* The initial tty mode bits */
196 struct emacs_tty old_tty; 196 struct emacs_tty old_tty;
197 197
198 /* Is this TTY our controlling terminal? */ 198 /* Is this TTY our controlling terminal? */
199 unsigned int controlling_terminal :1; 199 unsigned int controlling_terminal :1;
200 unsigned int is_stdio :1; 200 unsigned int is_stdio :1;
201 }; 201 };
202 202