/dports/games/cataclysm-dda/Cataclysm-DDA-0.F/src/ |
H A D | color.cpp | 174 inverted_map[color_pair] = col; in add_color() 210 static const auto color_pair = []( const int n ) { in load_default() local 218 add_color( def_c_red, "c_red", color_pair( 2 ), def_i_red ); in load_default() 219 add_color( def_c_green, "c_green", color_pair( 3 ), def_i_green ); in load_default() 220 add_color( def_c_blue, "c_blue", color_pair( 4 ), def_i_blue ); in load_default() 221 add_color( def_c_cyan, "c_cyan", color_pair( 5 ), def_i_cyan ); in load_default() 223 add_color( def_c_brown, "c_brown", color_pair( 7 ), def_i_brown ); in load_default() 237 add_color( def_h_blue, "h_blue", color_pair( 20 ), def_h_blue ); in load_default() 252 add_color( def_i_red, "i_red", color_pair( 9 ), def_c_red ); in load_default() 254 add_color( def_i_blue, "i_blue", color_pair( 11 ), def_c_blue ); in load_default() [all …]
|
/dports/games/cataclysm-dda-tiles/Cataclysm-DDA-0.F/src/ |
H A D | color.cpp | 174 inverted_map[color_pair] = col; in add_color() 210 static const auto color_pair = []( const int n ) { in load_default() local 218 add_color( def_c_red, "c_red", color_pair( 2 ), def_i_red ); in load_default() 219 add_color( def_c_green, "c_green", color_pair( 3 ), def_i_green ); in load_default() 220 add_color( def_c_blue, "c_blue", color_pair( 4 ), def_i_blue ); in load_default() 221 add_color( def_c_cyan, "c_cyan", color_pair( 5 ), def_i_cyan ); in load_default() 223 add_color( def_c_brown, "c_brown", color_pair( 7 ), def_i_brown ); in load_default() 237 add_color( def_h_blue, "h_blue", color_pair( 20 ), def_h_blue ); in load_default() 252 add_color( def_i_red, "i_red", color_pair( 9 ), def_c_red ); in load_default() 254 add_color( def_i_blue, "i_blue", color_pair( 11 ), def_c_blue ); in load_default() [all …]
|
/dports/net-p2p/deluge-cli/deluge-2.0.3/deluge/ui/console/utils/ |
H A D | colors.py | 194 curses.color_pair( 233 color_pair = curses.color_pair(color_pairs[pair]) 234 color_pair = apply_attrs(color_pair, schemes[attrs[0]][2:]) 235 last_color_attr = color_pair 246 color_pair = last_color_attr 270 color_pair = curses.color_pair(color_pairs[pair]) 271 last_color_attr = color_pair 276 color_pair = apply_attrs(color_pair, attrs) 277 last_color_attr = color_pair 283 ret.append((color_pair, replace_tabs(string[end + 2 :]))) [all …]
|
/dports/devel/ncurses/ncurses-6.3/ncurses/base/ |
H A D | lib_colorset.c | 51 int color_pair = pair_arg; in NCURSES_EXPORT() local 53 T((T_CALLED("wcolor_set(%p,%d)"), (void *) win, color_pair)); in NCURSES_EXPORT() 54 set_extended_pair(opts, color_pair); in NCURSES_EXPORT() 57 && (color_pair >= 0) in NCURSES_EXPORT() 58 && (color_pair < SP->_pair_limit)) { in NCURSES_EXPORT() 60 SET_WINDOW_PAIR(win, color_pair); in NCURSES_EXPORT() 61 if_EXT_COLORS(win->_color = color_pair); in NCURSES_EXPORT()
|
H A D | lib_slkatr_set.c | 51 int color_pair = pair_arg; in NCURSES_EXPORT() local 56 color_pair)); in NCURSES_EXPORT() 58 set_extended_pair(opts, color_pair); in NCURSES_EXPORT() 61 && color_pair >= 0 in NCURSES_EXPORT() 62 && color_pair < SP_PARM->_pair_limit) { in NCURSES_EXPORT() 65 if (color_pair > 0) { in NCURSES_EXPORT() 66 SetPair(SP_PARM->_slk->attr, color_pair); in NCURSES_EXPORT()
|
H A D | lib_chgat.c | 56 int color_pair = pair_arg; in NCURSES_EXPORT() local 62 color_pair)); in NCURSES_EXPORT() 64 set_extended_pair(opts, color_pair); in NCURSES_EXPORT() 69 toggle_attr_on(attr, ColorPair(color_pair)); in NCURSES_EXPORT() 73 SetPair(line->text[i], color_pair); in NCURSES_EXPORT()
|
/dports/devel/interactive_rebase_tool/git-interactive-rebase-tool-1.2.1/cargo-crates/pancurses-0.16.1/src/ |
H A D | attributes.rs | 27 color_pair: ColorPair, field 46 color_pair: ColorPair(0), in new() 122 pub fn color_pair(&self) -> ColorPair { in color_pair() method 123 self.color_pair in color_pair() 125 pub fn set_color_pair(&mut self, color_pair: ColorPair) { in set_color_pair() 126 let color_chtype: chtype = color_pair.into(); in set_color_pair() 128 self.color_pair = color_pair; in set_color_pair() 224 color_pair: ColorPair(self.color_pair.0 | rhs.color_pair.0), in bitor() 249 color_pair: ColorPair(self.color_pair.0 ^ rhs.color_pair.0), in bitxor()
|
/dports/audio/ncspot/ncspot-0.9.3/cargo-crates/pancurses-0.16.1/src/ |
H A D | attributes.rs | 27 color_pair: ColorPair, field 46 color_pair: ColorPair(0), in new() 122 pub fn color_pair(&self) -> ColorPair { in color_pair() method 123 self.color_pair in color_pair() 125 pub fn set_color_pair(&mut self, color_pair: ColorPair) { in set_color_pair() 126 let color_chtype: chtype = color_pair.into(); in set_color_pair() 128 self.color_pair = color_pair; in set_color_pair() 224 color_pair: ColorPair(self.color_pair.0 | rhs.color_pair.0), in bitor() 249 color_pair: ColorPair(self.color_pair.0 ^ rhs.color_pair.0), in bitxor()
|
/dports/devel/ncurses/ncurses-6.3/ncurses/widechar/ |
H A D | lib_vid_attr.c | 63 if ((color_pair != old_pair) \ 64 || (fix_pair0 && (color_pair == 0)) \ 67 old_pair, color_pair, \ 83 int color_pair = pair_arg; in NCURSES_EXPORT() local 101 set_extended_pair(opts, color_pair); in NCURSES_EXPORT() 102 T((T_CALLED("vid_puts(%s,%d)"), _traceattr(newmode), color_pair)); in NCURSES_EXPORT() 123 if ((color_pair != 0 in NCURSES_EXPORT() 152 && color_pair == previous_pair) in NCURSES_EXPORT() 274 SetPair(SCREEN_ATTRS(SP_PARM), color_pair); in NCURSES_EXPORT() 277 previous_pair = color_pair; in NCURSES_EXPORT() [all …]
|
H A D | lib_cchar.c | 56 int color_pair = pair_arg; in NCURSES_EXPORT() local 61 (unsigned long) attrs, color_pair, opts)); in NCURSES_EXPORT() 63 set_extended_pair(opts, color_pair); in NCURSES_EXPORT() 66 || color_pair < 0) { in NCURSES_EXPORT() 89 SetPair(CHDEREF(wcval), color_pair); in NCURSES_EXPORT() 138 int color_pair; in getcchar() local 143 color_pair = GetPair(*wcval); in getcchar() 144 get_extended_pair(opts, color_pair); in getcchar() 145 *pair_arg = limit_PAIRS(color_pair); in getcchar()
|
/dports/audio/ncspot/ncspot-0.9.3/cargo-crates/pancurses-0.17.0/src/ |
H A D | attributes.rs | 27 color_pair: ColorPair, field 46 color_pair: ColorPair(0), in new() 126 pub fn color_pair(&self) -> ColorPair { in color_pair() method 127 self.color_pair in color_pair() 129 pub fn set_color_pair(&mut self, color_pair: ColorPair) { in set_color_pair() 130 let color_chtype: chtype = color_pair.into(); in set_color_pair() 132 self.color_pair = color_pair; in set_color_pair() 228 color_pair: ColorPair(self.color_pair.0 | rhs.color_pair.0), in bitor() 253 color_pair: ColorPair(self.color_pair.0 ^ rhs.color_pair.0), in bitxor()
|
/dports/devel/interactive_rebase_tool/git-interactive-rebase-tool-1.2.1/cargo-crates/pdcurses-sys-0.7.0/src/PDCurses/pdcurses/ |
H A D | attr.c | 205 int wcolor_set(WINDOW *win, short color_pair, void *opts) in wcolor_set() argument 212 win->_attrs = (win->_attrs & ~A_COLOR) | COLOR_PAIR(color_pair); in wcolor_set() 217 int color_set(short color_pair, void *opts) in color_set() argument 221 return wcolor_set(stdscr, color_pair, opts); in color_set() 234 if (color_pair) in wattr_get() 235 *color_pair = (short)PAIR_NUMBER(win->_attrs); in wattr_get() 240 int attr_get(attr_t *attrs, short *color_pair, void *opts) in attr_get() argument 244 return wattr_get(stdscr, attrs, color_pair, opts); in attr_get() 275 int wattr_set(WINDOW *win, attr_t attrs, short color_pair, void *opts) in wattr_set() argument 287 int attr_set(attr_t attrs, short color_pair, void *opts) in attr_set() argument [all …]
|
/dports/devel/pdcurses/PDCurses-3.5/pdcurses/ |
H A D | attr.c | 205 int wcolor_set(WINDOW *win, short color_pair, void *opts) in wcolor_set() argument 212 win->_attrs = (win->_attrs & ~A_COLOR) | COLOR_PAIR(color_pair); in wcolor_set() 217 int color_set(short color_pair, void *opts) in color_set() argument 221 return wcolor_set(stdscr, color_pair, opts); in color_set() 234 if (color_pair) in wattr_get() 235 *color_pair = PAIR_NUMBER(win->_attrs); in wattr_get() 240 int attr_get(attr_t *attrs, short *color_pair, void *opts) in attr_get() argument 244 return wattr_get(stdscr, attrs, color_pair, opts); in attr_get() 275 int wattr_set(WINDOW *win, attr_t attrs, short color_pair, void *opts) in wattr_set() argument 287 int attr_set(attr_t attrs, short color_pair, void *opts) in attr_set() argument [all …]
|
/dports/audio/ncspot/ncspot-0.9.3/cargo-crates/pdcurses-sys-0.7.1/src/PDCurses/pdcurses/ |
H A D | attr.c | 205 int wcolor_set(WINDOW *win, short color_pair, void *opts) in wcolor_set() argument 212 win->_attrs = (win->_attrs & ~A_COLOR) | COLOR_PAIR(color_pair); in wcolor_set() 217 int color_set(short color_pair, void *opts) in color_set() argument 221 return wcolor_set(stdscr, color_pair, opts); in color_set() 234 if (color_pair) in wattr_get() 235 *color_pair = (short)PAIR_NUMBER(win->_attrs); in wattr_get() 240 int attr_get(attr_t *attrs, short *color_pair, void *opts) in attr_get() argument 244 return wattr_get(stdscr, attrs, color_pair, opts); in attr_get() 275 int wattr_set(WINDOW *win, attr_t attrs, short color_pair, void *opts) in wattr_set() argument 287 int attr_set(attr_t attrs, short color_pair, void *opts) in attr_set() argument [all …]
|
/dports/devel/mingw32-pdcurses/PDCurses-3.4/pdcurses/ |
H A D | attr.c | 202 int wcolor_set(WINDOW *win, short color_pair, void *opts) in wcolor_set() argument 209 win->_attrs = (win->_attrs & ~A_COLOR) | COLOR_PAIR(color_pair); in wcolor_set() 214 int color_set(short color_pair, void *opts) in color_set() argument 218 return wcolor_set(stdscr, color_pair, opts); in color_set() 231 if (color_pair) in wattr_get() 232 *color_pair = PAIR_NUMBER(win->_attrs); in wattr_get() 237 int attr_get(attr_t *attrs, short *color_pair, void *opts) in attr_get() argument 241 return wattr_get(stdscr, attrs, color_pair, opts); in attr_get() 272 int wattr_set(WINDOW *win, attr_t attrs, short color_pair, void *opts) in wattr_set() argument 284 int attr_set(attr_t attrs, short color_pair, void *opts) in attr_set() argument [all …]
|
/dports/multimedia/musikcube/musikcube-0.96.7/src/3rdparty/win32_src/pdcurses/ |
H A D | attr.c | 234 int wcolor_set(WINDOW *win, short color_pair, void *opts) in wcolor_set() argument 241 win->_attrs = (win->_attrs & ~A_COLOR) | COLOR_PAIR(color_pair); in wcolor_set() 246 int color_set(short color_pair, void *opts) in color_set() argument 250 return wcolor_set(stdscr, color_pair, opts); in color_set() 263 if (color_pair) in wattr_get() 264 *color_pair = (short)PAIR_NUMBER(win->_attrs); in wattr_get() 269 int attr_get(attr_t *attrs, short *color_pair, void *opts) in attr_get() argument 273 return wattr_get(stdscr, attrs, color_pair, opts); in attr_get() 304 int wattr_set(WINDOW *win, attr_t attrs, short color_pair, void *opts) in wattr_set() argument 316 int attr_set(attr_t attrs, short color_pair, void *opts) in attr_set() argument [all …]
|
/dports/net/bmon/bmon-4.0/examples/ |
H A D | bmon.conf | 92 color_pair = {"white", "black"} 95 color_pair = {"blue", "white", "reverse"} 98 color_pair = {"yellow", "black"} 101 color_pair = {"white", "black"} 104 color_pair = {"white", "black", "reverse"} 107 color_pair = {"green", "black"} 110 color_pair = {"red", "black"}
|
/dports/graphics/seq2gif/seq2gif-0.10.4/ |
H A D | pseudo.c | 55 struct color_pair_t color_pair; in draw_line() local 71 color_pair = cellp->color_pair; in draw_line() 84 color_pair.fg = term->default_bg; in draw_line() 85 color_pair.bg = term->cursor_color; in draw_line() 91 color_pair.bg = color_pair.fg; in draw_line() 99 pixel = color_list[color_pair.fg]; in draw_line() 101 pixel = color_list[color_pair.bg]; in draw_line()
|
/dports/devel/ncurses/ncurses-6.3/ncurses/ |
H A D | new_pair.h | 67 #define get_extended_pair(opts, color_pair) \ argument 69 *(int*)(opts) = color_pair; \ 71 #define set_extended_pair(opts, color_pair) \ argument 73 color_pair = *(const int*)(opts); \ 77 #define get_extended_pair(opts, color_pair) /* nothing */ argument 78 #define set_extended_pair(opts, color_pair) \ argument 80 color_pair = -1; \
|
/dports/www/elinks/elinks-0.11.7/src/terminal/ |
H A D | draw.h | 4 struct color_pair; 202 struct color_pair *color); 209 enum border_char border, struct color_pair *color); 213 enum border_cross_direction, struct color_pair *color); 218 struct color_pair *color); 223 struct color_pair *color); 227 struct color_pair *color, int width, int height); 231 struct color_pair *color, int width); 237 struct color_pair *color);
|
/dports/devel/cgdb/cgdb-0.8.0/cgdb/ |
H A D | highlight_groups.cpp | 39 int color_pair; member 316 int color_pair = 1; in hl_get_ansicolor_pair() local 321 swin_init_pair(color_pair, fg, bg); in hl_get_ansicolor_pair() 335 swin_init_pair(color_pair, fg, -1); in hl_get_ansicolor_pair() 340 swin_init_pair(color_pair, -1, bg); in hl_get_ansicolor_pair() 426 if (info->color_pair == 0) { in setup_group() 427 info->color_pair = next_color_pair; in setup_group() 432 if (info->color_pair < swin_color_pairs()) { in setup_group() 498 info->color_pair = 0; in hl_groups_initialize() 587 if (info->color_pair) in hl_groups_get_attr() [all …]
|
/dports/misc/mc/mc-4.8.27/lib/tty/ |
H A D | color.c | 157 gchar *color_pair; in tty_try_alloc_color_pair2() local 172 color_pair = g_strdup_printf ("%d.%d.%d", ifg, ibg, attr); in tty_try_alloc_color_pair2() 173 if (color_pair == NULL) in tty_try_alloc_color_pair2() 177 (tty_color_pair_t *) g_hash_table_lookup (mc_tty_color__hashtable, (gpointer) color_pair); in tty_try_alloc_color_pair2() 181 g_free (color_pair); in tty_try_alloc_color_pair2() 188 g_free (color_pair); in tty_try_alloc_color_pair2() 200 g_hash_table_insert (mc_tty_color__hashtable, (gpointer) color_pair, (gpointer) mc_color_pair); in tty_try_alloc_color_pair2()
|
/dports/misc/mc-nox11/mc-4.8.27/lib/tty/ |
H A D | color.c | 157 gchar *color_pair; in tty_try_alloc_color_pair2() local 172 color_pair = g_strdup_printf ("%d.%d.%d", ifg, ibg, attr); in tty_try_alloc_color_pair2() 173 if (color_pair == NULL) in tty_try_alloc_color_pair2() 177 (tty_color_pair_t *) g_hash_table_lookup (mc_tty_color__hashtable, (gpointer) color_pair); in tty_try_alloc_color_pair2() 181 g_free (color_pair); in tty_try_alloc_color_pair2() 188 g_free (color_pair); in tty_try_alloc_color_pair2() 200 g_hash_table_insert (mc_tty_color__hashtable, (gpointer) color_pair, (gpointer) mc_color_pair); in tty_try_alloc_color_pair2()
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/blink/renderer/core/animation/ |
H A D | css_color_interpolation_type.cc | 244 auto color_pair = in MaybeConvertValue() local 246 color_pair->Set(kUnvisited, interpolable_color->Clone()); in MaybeConvertValue() 247 color_pair->Set(kVisited, std::move(interpolable_color)); in MaybeConvertValue() 248 return InterpolationValue(std::move(color_pair)); in MaybeConvertValue() 257 auto color_pair = in ConvertStyleColorPair() local 259 color_pair->Set(kUnvisited, in ConvertStyleColorPair() 262 return InterpolationValue(std::move(color_pair)); in ConvertStyleColorPair() 277 const auto& color_pair = To<InterpolableList>(interpolable_value); in ApplyStandardPropertyValue() local 278 DCHECK_EQ(color_pair.length(), kInterpolableColorPairIndexCount); in ApplyStandardPropertyValue() 282 *color_pair.Get(kUnvisited), state, false, in ApplyStandardPropertyValue() [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/blink/renderer/core/animation/ |
H A D | css_color_interpolation_type.cc | 244 auto color_pair = in MaybeConvertValue() local 246 color_pair->Set(kUnvisited, interpolable_color->Clone()); in MaybeConvertValue() 247 color_pair->Set(kVisited, std::move(interpolable_color)); in MaybeConvertValue() 248 return InterpolationValue(std::move(color_pair)); in MaybeConvertValue() 257 auto color_pair = in ConvertStyleColorPair() local 259 color_pair->Set(kUnvisited, in ConvertStyleColorPair() 262 return InterpolationValue(std::move(color_pair)); in ConvertStyleColorPair() 277 const auto& color_pair = To<InterpolableList>(interpolable_value); in ApplyStandardPropertyValue() local 278 DCHECK_EQ(color_pair.length(), kInterpolableColorPairIndexCount); in ApplyStandardPropertyValue() 282 *color_pair.Get(kUnvisited), state, false, in ApplyStandardPropertyValue() [all …]
|