Lines Matching defs:sp
96 #define SetSP() assert(TCB->csp!=0); sp = TCB->csp; (void) sp
115 SCREEN *sp;
119 sp = TCB->csp;
178 SCREEN *sp;
188 NCURSES_SP_NAME(_nc_flush) (sp);
191 NCURSES_SP_NAME(_nc_flush) (sp);
196 NCURSES_SP_NAME(_nc_flush) (sp);
199 NCURSES_SP_NAME(_nc_flush) (sp);
225 SCREEN *sp;
239 SCREEN *sp;
245 if (sp != 0 && orig_pair && orig_colors && (initialize_pair != 0)) {
247 sp->_default_color = isDefaultColor(fg) || isDefaultColor(bg);
248 sp->_has_sgr_39_49 = (NCURSES_SP_NAME(tigetflag) (NCURSES_SP_ARGx
251 sp->_default_fg = isDefaultColor(fg) ? COLOR_DEFAULT : (fg & C_MASK);
252 sp->_default_bg = isDefaultColor(bg) ? COLOR_DEFAULT : (bg & C_MASK);
253 if (sp->_color_pairs != 0) {
254 bool save = sp->_default_color;
255 sp->_default_color = TRUE;
260 sp->_default_color = save;
274 SCREEN *sp;
308 SCREEN *sp;
324 SCREEN *sp;
339 SCREEN *sp;
344 sp = TCB->csp; /* can be null here */
346 if (sp) {
347 useEnv = sp->_use_env;
348 useTioctl = sp->_use_tioctl;
368 *linep = ((sp != 0 && sp->_filtered)
385 *linep = ((sp != 0 && sp->_filtered)
404 if ((sp == 0 || !sp->_filtered) && _nc_getenv_num("LINES") > 0) {
478 SCREEN *sp = TCB->csp;
489 if (sp)
490 sp->_notty = TRUE;
512 SCREEN *sp;
517 sp = TCB->csp;
537 if (sp) {
538 if (sp->_keypad_on)
539 _nc_keypad(sp, TRUE);
540 NC_BUFFERED(sp, TRUE);
563 if (sp) {
564 _nc_keypad(sp, FALSE);
565 NCURSES_SP_NAME(_nc_flush) (sp);
566 NC_BUFFERED(sp, FALSE);
575 drv_wrap(SCREEN *sp)
577 if (sp) {
578 sp->_mouse_wrap(sp);
579 NCURSES_SP_NAME(_nc_screen_wrap) (sp);
580 NCURSES_SP_NAME(_nc_mvcur_wrap) (sp); /* wrap up cursor addressing */
592 drv_screen_init(SCREEN *sp)
594 TERMINAL_CONTROL_BLOCK *TCB = TCBOf(sp);
607 sp->_use_rmso = SGR0_TEST(exit_standout_mode);
608 sp->_use_rmul = SGR0_TEST(exit_underline_mode);
615 sp->_scrolling = ((scroll_forward && scroll_reverse) ||
623 NCURSES_SP_NAME(baudrate) (sp);
625 NCURSES_SP_NAME(_nc_mvcur_init) (sp);
627 NCURSES_SP_NAME(_nc_screen_init) (sp);
678 SCREEN *sp;
684 const color_t *tp = InfoOf(sp).defaultPalette;
701 default_fg(SCREEN *sp)
704 return (sp != 0) ? sp->_default_fg : COLOR_WHITE;
711 default_bg(SCREEN *sp)
714 return sp != 0 ? sp->_default_bg : COLOR_BLACK;
724 SCREEN *sp = TCB->csp;
740 SCREEN *sp = TCB->csp;
746 if (sp == 0)
757 } else if (sp != 0) {
766 && sp != 0
779 if (sp->_has_sgr_39_49
783 } else if (sp->_has_sgr_39_49
799 fg = (NCURSES_COLOR_T) default_fg(sp);
801 bg = (NCURSES_COLOR_T) default_bg(sp);
823 init_xterm_mouse(SCREEN *sp)
825 sp->_mouse_type = M_XTERM;
826 sp->_mouse_xtermcap = NCURSES_SP_NAME(tigetstr) (NCURSES_SP_ARGx "XM");
827 if (!VALID_STRING(sp->_mouse_xtermcap))
828 sp->_mouse_xtermcap = "\033[?1000%?%p1%{1}%=%th%el%;";
834 SCREEN *sp;
840 if (sp != 0) {
843 || strstr(TerminalOf(sp)->type.term_names, "xterm") != 0) {
844 init_xterm_mouse(sp);
846 } else if (strstr(TerminalOf(sp)->type.term_names, "xterm") != 0) {
847 if (_nc_add_to_try(&(sp->_keytry), xterm_kmous, KEY_MOUSE) == OK)
848 init_xterm_mouse(sp);
859 SCREEN *sp;
865 if ((sp->_mouse_type == M_SYSMOUSE)
866 && (sp->_sysmouse_head < sp->_sysmouse_tail)) {
871 rc = TCBOf(sp)->drv->twait(TCBOf(sp),
877 if ((sp->_mouse_type == M_SYSMOUSE)
878 && (sp->_sysmouse_head < sp->_sysmouse_tail)
891 SCREEN *sp = TCB->csp;
893 return NCURSES_SP_NAME(_nc_mvcur) (sp, yold, xold, ynew, xnew);
899 SCREEN *sp = TCB->csp;
911 SCREEN *sp = TCB->csp;
924 SCREEN *sp = TCB->csp;
955 if (sp && sp->_coloron)
982 SCREEN *sp = TCB->csp;
985 assert(sp != 0);
1008 if (sp != 0)
1009 sp->_screen_acs_map[i] = TRUE;
1023 if (sp != 0)
1024 sp->_screen_acs_map[UChar(acs_chars[i])] = TRUE;
1060 #define ENSURE_TINFO(sp) (TCBOf(sp)->drv->isTerminfo)
1063 _nc_cookie_init(SCREEN *sp)
1066 TERMINAL_CONTROL_BLOCK *TCB = (TERMINAL_CONTROL_BLOCK *) (sp->_term);
1068 if (sp == 0 || !ENSURE_TINFO(sp))
1089 sp->_xmc_triggers = sp->_ok_attributes & XMC_CONFLICT;
1097 sp->_xmc_triggers |= A_COLOR;
1100 sp->_xmc_suppress = sp->_xmc_triggers & (chtype) ~(A_BOLD);
1102 T(("magic cookie attributes %s", _traceattr(sp->_xmc_suppress)));
1142 if (_nc_unicode_locale() && _nc_locale_breaks_acs(sp->_term)) {
1159 SCREEN *sp;
1164 return _nc_timed_wait(sp, mode, milliseconds, timeleft EVENTLIST_2nd(evl));
1170 SCREEN *sp;
1182 n = read(sp->_ifd, &c2, (size_t) 1);
1210 __nc_putp(SCREEN *sp, const char *name GCC_UNUSED, const char *value)
1221 __nc_putp_flush(SCREEN *sp, const char *name, const char *value)
1223 int rc = __nc_putp(sp, name, value);
1225 NCURSES_SP_NAME(_nc_flush) (sp);
1234 SCREEN *sp;
1238 sp = TCB->csp;
1240 if (sp) {
1242 (void) __nc_putp_flush(sp, "keypad_xmit", keypad_xmit);
1244 (void) __nc_putp_flush(sp, "keypad_local", keypad_local);
1246 if (flag && !sp->_tried) {
1247 _nc_init_keytry(sp);
1248 sp->_tried = TRUE;
1259 SCREEN *sp;
1270 while ((s = _nc_expand_try(sp->_key_ok,
1272 && _nc_remove_key(&(sp->_key_ok), ch)) {
1273 code = _nc_add_to_try(&(sp->_keytry), s, ch);
1280 while ((s = _nc_expand_try(sp->_keytry,
1282 && _nc_remove_key(&(sp->_keytry), ch)) {
1283 code = _nc_add_to_try(&(sp->_key_ok), s, ch);