Lines Matching defs:pair
49 * Get wide attributes and color pair from stdscr
53 attr_get(attr_t *attr, short *pair, void *opts)
55 return wattr_get(stdscr, attr, pair, opts);
82 * Set wide attributes and color pair on stdscr
86 attr_set(attr_t attr, short pair, void *opts)
88 return wattr_set(stdscr, attr, pair, opts);
93 * Set color pair on stdscr
97 color_set(short pair, void *opts)
99 return wcolor_set(stdscr, pair, opts);
139 * Get wide attributes and colour pair from window
144 wattr_get(WINDOW *win, attr_t *attr, short *pair, void *opts)
157 if (pair != NULL)
158 *pair = PAIR_NUMBER(win->wattr);
194 * Set wide attributes and color pair on window
197 wattr_set(WINDOW *win, attr_t attr, short pair, void *opts)
199 __CTRACE(__CTRACE_ATTR, "wattr_set: win %p, attr %08x, pair %d\n",
200 win, attr, pair);
209 attr = (attr & ~__COLOR) | COLOR_PAIR(pair);
218 * Set color pair on window
222 wcolor_set(WINDOW *win, short pair, void *opts)
224 __CTRACE(__CTRACE_COLOR, "wolor_set: win %p, pair %d\n", win, pair);
229 __wcolor_set(win, (attr_t) COLOR_PAIR(pair));
486 /* If another color pair is set, turn that off first. */
488 /* If can do color video, set the color pair bits. */