• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/ncurses-42/ncurses/ncurses/base/

Lines Matching refs:SP

59     oldSP = SP;
61 newSP = SP;
187 if (sp == SP) {
267 assert(SP == 0); /* has been reset in newterm() ! */
269 || ((SP->_acs_map = typeCalloc(chtype, ACS_LEN)) == 0)
270 || ((SP->_screen_acs_map = typeCalloc(bool, ACS_LEN)) == 0)) {
274 T(("created SP %p", SP));
275 SP->_next_screen = _nc_screen_chain;
276 _nc_screen_chain = SP;
278 if ((SP->_current_attr = typeCalloc(NCURSES_CH_T, 1)) == 0)
284 _nc_get_screensize(SP, &slines, &scolumns);
289 SP->_filtered = filtered;
310 SP->_term = cur_term;
311 SP->_lines = slines;
312 SP->_lines_avail = slines;
313 SP->_columns = scolumns;
314 SP->_cursrow = -1;
315 SP->_curscol = -1;
316 SP->_nl = TRUE;
317 SP->_raw = FALSE;
318 SP->_cbreak = 0;
319 SP->_echo = TRUE;
320 SP->_fifohead = -1;
321 SP->_endwin = TRUE;
322 SP->_ofp = output;
323 SP->_cursor = -1; /* cannot know real cursor shape */
325 SetNoPadding(SP);
328 SP->_default_color = FALSE;
329 SP->_has_sgr_39_49 = FALSE;
351 SP->_default_fg = COLOR_WHITE;
352 SP->_default_bg = COLOR_BLACK;
354 SP->_default_fg = C_MASK;
355 SP->_default_bg = C_MASK;
367 SP->_default_fg = (fg >= 0 && fg < max_colors) ? fg : C_MASK;
369 SP->_default_bg = (bg >= 0 && bg < max_colors) ? bg : C_MASK;
373 SP->_default_fg,
374 SP->_default_bg));
387 p = extract_fgbg(p, &(SP->_default_fg));
388 p = extract_fgbg(p, &(SP->_default_bg));
390 p = extract_fgbg(p, &(SP->_default_bg));
392 SP->_default_fg, SP->_default_bg));
393 if (SP->_default_fg >= max_colors) {
398 SP->_default_fg %= max_colors;
401 if (SP->_default_bg >= max_colors) {
406 SP->_default_bg %= max_colors;
413 SP->_maxclick = DEFAULT_MAXCLICK;
414 SP->_mouse_event = no_mouse_event;
415 SP->_mouse_inline = no_mouse_inline;
416 SP->_mouse_parse = no_mouse_parse;
417 SP->_mouse_resume = no_mouse_resume;
418 SP->_mouse_wrap = no_mouse_wrap;
419 SP->_mouse_fd = -1;
425 SP->_ok_attributes = termattrs();
427 SP->_ok_attributes |= A_COLOR;
447 SP->_xmc_triggers = SP->_ok_attributes & (
464 SP->_xmc_triggers |= A_COLOR;
467 SP->_xmc_suppress = SP->_xmc_triggers & (chtype) ~(A_BOLD);
469 T(("magic cookie attributes %s", _traceattr(SP->_xmc_suppress)));
521 SP->_screen_acs_fix = (_nc_unicode_locale()
525 SP->_legacy_coding = ((env == 0)
528 T(("legacy-coding %d", SP->_legacy_coding));
533 SP->oldhash = 0;
534 SP->newhash = 0;
537 if ((SP->_newscr = newwin(slines, scolumns, 0, 0)) == 0)
541 if ((SP->_curscr = newwin(slines, scolumns, 0, 0)) == 0)
545 newscr = SP->_newscr;
546 curscr = SP->_curscr;
549 SP->_resize = resizeterm;
581 ? SP->_lines_avail - count
593 SP->_topstolen += count;
594 SP->_lines_avail -= count;
601 assert((SP->_lines_avail + SP->_topstolen + bottom_stolen) == slines);
602 if ((SP->_stdscr = newwin(SP->_lines_avail, scolumns, 0, 0)) == 0)
605 SET_LINES(SP->_lines_avail);
607 stdscr = SP->_stdscr;