Home | History | Annotate | Download | only in libcurses

Lines Matching refs:screen

62 _cursesi_setterm(const char *type, SCREEN *screen)
70 if (screen->term)
71 del_curterm(screen->term);
72 (void)ti_setupterm(&screen->term, type, fileno(screen->outfd), &r);
73 if (screen->term == NULL) {
75 (void)ti_setupterm(&screen->term, "dumb",
76 fileno(screen->outfd), &r);
78 if (screen->term == NULL)
84 screen->LINES = t_lines(screen->term);
85 screen->COLS = t_columns(screen->term);
87 if (screen->filtered) {
89 screen->term->strs[TICODE_clear] = NULL;
90 screen->term->strs[TICODE_cud] = NULL;
91 screen->term->strs[TICODE_cud1] = NULL;
92 screen->term->strs[TICODE_cup] = NULL;
93 screen->term->strs[TICODE_cuu] = NULL;
94 screen->term->strs[TICODE_cuu1] = NULL;
95 screen->term->strs[TICODE_vpa] = NULL;
98 screen->term->strs[TICODE_home] = screen->term->strs[TICODE_cr];
100 screen->LINES = 1;
101 t_lines(screen->term) = 1;
103 __CTRACE(__CTRACE_INIT, "setterm: filtered %d\n", screen->filtered);
106 screen->ESCDELAY = (int)strtol(p, NULL, 0);
108 screen->ESCDELAY = ESCDELAY_DEFAULT;
110 screen->TABSIZE = (int)strtol(p, NULL, 0);
111 else if (t_init_tabs(screen->term) >= 0)
112 screen->TABSIZE = (int)t_init_tabs(screen->term);
114 screen->TABSIZE = TABSIZE_DEFAULT;
118 if (screen->COLS <= 4)
121 LINES = screen->LINES;
122 COLS = screen->COLS;
123 ESCDELAY = screen->ESCDELAY;
124 TABSIZE = screen->TABSIZE;
134 screen->padchar = t_pad_char(screen->term) ?
135 t_pad_char(screen->term)[0] : 0;
138 screen->noqch =
139 (t_change_scroll_region(screen->term) == NULL ||
140 t_cursor_home(screen->term) == NULL ||
141 (t_parm_index(screen->term) == NULL &&
142 t_scroll_forward(screen->term) == NULL) ||
143 (t_parm_rindex(screen->term) == NULL &&
144 t_scroll_reverse(screen->term) == NULL)) &&
145 ((t_parm_insert_line(screen->term) == NULL &&
146 t_insert_line(screen->term) == NULL) ||
147 (t_parm_delete_line(screen->term) == NULL &&
148 t_delete_line(screen->term) == NULL));
154 screen->mask_op = __ATTRIBUTES & ~__COLOR;
156 screen->mask_op = WA_ATTRIBUTES & ~__COLOR;
159 const char *t_op = t_orig_pair(screen->term);
160 const char *t_esm = t_exit_standout_mode(screen->term);
161 const char *t_eum = t_exit_underline_mode(screen->term);
162 const char *t_eam = t_exit_attribute_mode(screen->term);
166 screen->mask_op &=
170 screen->mask_op &= ~__STANDOUT;
173 screen->mask_op &= ~__UNDERSCORE;
176 screen->mask_op &= ~__TERMATTR;
183 if (t_exit_attribute_mode(screen->term) != NULL &&
184 t_exit_alt_charset_mode(screen->term) != NULL &&
185 does_ctrl_o(t_exit_attribute_mode(screen->term),
186 t_exit_alt_charset_mode(screen->term)))
187 screen->mask_me = 0;
189 screen->mask_me = __ALTCHARSET;
193 screen->mask_ue = __ATTRIBUTES & ~__UNDERSCORE;
195 screen->mask_ue = WA_ATTRIBUTES & ~__UNDERSCORE;
199 screen->mask_ue &=
203 screen->mask_ue &= ~__STANDOUT;
206 screen->mask_ue &= ~__TERMATTR;
209 screen->mask_ue &= ~__COLOR;
213 screen->mask_se = __ATTRIBUTES & ~__STANDOUT;
215 screen->mask_se = WA_ATTRIBUTES & ~__STANDOUT;
219 screen->mask_se &=
223 screen->mask_se &= ~__UNDERSCORE;
226 screen->mask_se &= ~__TERMATTR;
229 screen->mask_se &= ~__COLOR;
238 * Copy the terminal instance data for the given screen to the global
242 _cursesi_resetterm(SCREEN *screen)
245 LINES = screen->LINES;
246 COLS = screen->COLS;
247 ESCDELAY = screen->ESCDELAY;
248 TABSIZE = screen->TABSIZE;
249 __GT = screen->GT;
251 __noqch = screen->noqch;
252 __mask_op = screen->mask_op;
253 __mask_me = screen->mask_me;
254 __mask_ue = screen->mask_ue;
255 __mask_se = screen->mask_se;
257 set_curterm(screen->term);
395 * Sets the tabsize for the current screen.