Searched defs:color (Results 1 - 24 of 24) sorted by relevance

/osnet-11/usr/src/lib/libcurses/screen/
H A Dcolor_cont.c48 color_content(short color, short *r, short *g, short *b) argument
52 if (color < 0 || color > COLORS || !can_change ||
56 ctp += color;
H A Dinit_color.c53 init_color(short color, short r, short g, short b) argument
55 _Color *ctp = cur_term->_color_tbl; /* color table pointer */
57 /* check if terminal can change color and validity of the */
60 if (!can_change || color >= COLORS || color < 0)
76 /* if new color is exactly the same as the old one, return */
78 if (ctp[color].r == r && ctp[color].g == g && ctp[color].b == b)
81 /* update color tabl
[all...]
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/Term/
H A DANSIColor.pm26 @EXPORT = qw(color colored);
120 # Return the escape code for a given set of color attributes.
121 sub color { subroutine
137 # Return a list of named color attributes for a given set of escape codes.
183 my $attr = color (@codes);
188 color (@codes) . $string . "\e[0m";
207 print color 'bold blue';
209 print color 'reset';
228 This module has two interfaces, one through color() and colored() and the
232 color() take
[all...]
/osnet-11/usr/src/grub/grub2/grub-core/gfxmenu/
H A Dfont.c41 grub_video_color_t color,
66 err = grub_font_draw_glyph (glyph, color, x, baseline_y);
40 grub_font_draw_string(const char *str, grub_font_t font, grub_video_color_t color, int left_x, int baseline_y) argument
H A Dgui_label.c51 grub_video_rgba_color_t color; member in struct:grub_gui_label
112 grub_video_map_rgba_color (self->color),
189 else if (grub_strcmp (name, "color") == 0)
191 grub_video_parse_color (value, &self->color);
250 label->color.red = 0;
251 label->color.green = 0;
252 label->color.blue = 0;
253 label->color.alpha = 255;
H A Dview.c248 grub_video_color_t color = grub_video_map_rgba_color (view->message_color); local
251 grub_video_fill_rect (color,
262 grub_font_draw_string (text, font, color, x, y);
/osnet-11/usr/src/grub/grub2/grub-core/video/
H A Dcolors.c1 /* named_colors.c - Named color values. */
31 grub_video_rgba_color_t color; member in struct:named_color
35 Named color list generated from the list of SVG color keywords from
36 <http://www.w3.org/TR/css3-color/#svg-color>,
195 /* Get the color named NAME. If the color was found, returns 1 and
196 stores the color into *COLOR. If the color wa
199 grub_video_get_named_color(const char *name, grub_video_rgba_color_t *color) argument
244 grub_video_parse_color(const char *s, grub_video_rgba_color_t *color) argument
[all...]
H A Dvideo.c166 /* If there are more than 8 bits per color, assume RGB(A) mode. */
183 /* Set new indexed color palette entries. */
194 /* Get indexed color palette entries. */
227 /* Map color name to adapter specific color. */
237 /* Map RGB value to adapter specific color. */
247 /* Map RGBA value to adapter specific color. */
258 /* Unmap video color back to RGBA components. */
260 grub_video_unmap_color (grub_video_color_t color, grub_uint8_t *red, argument
267 return grub_video_adapter_active->unmap_color (color,
276 grub_video_fill_rect(grub_video_color_t color, int x, int y, unsigned int width, unsigned int height) argument
317 grub_video_scroll(grub_video_color_t color, int dx, int dy) argument
[all...]
/osnet-11/usr/src/grub/grub2/grub-core/video/fb/
H A Dfbutil.c73 grub_video_color_t color = 0; local
78 color = *(grub_uint32_t *)grub_video_fb_get_video_ptr (source, x, y);
85 color = ptr[0] | (ptr[1] << 8) | (ptr[2] << 16);
91 color = *(grub_uint16_t *)grub_video_fb_get_video_ptr (source, x, y);
95 color = *(grub_uint8_t *)grub_video_fb_get_video_ptr (source, x, y);
104 color = (*ptr >> bit_pos) & 0x01;
112 return color;
117 unsigned int x, unsigned int y, grub_video_color_t color)
127 *ptr = color;
134 grub_uint8_t *colorptr = (grub_uint8_t *)&color;
116 set_pixel(struct grub_video_fbblit_info *source, unsigned int x, unsigned int y, grub_video_color_t color) argument
[all...]
H A Dfbfill.c39 grub_video_color_t color, int x, int y,
47 set_pixel (dst, x + i, y + j, color);
50 /* Optimized filler for direct color 32 bit modes. It is assumed that color
54 grub_video_color_t color, int x, int y,
72 *dstptr++ = color;
79 /* Optimized filler for direct color 24 bit modes. It is assumed that color
83 grub_video_color_t color, int x, int y,
90 grub_uint8_t fill0 = (grub_uint8_t)((color >>
38 grub_video_fbfill(struct grub_video_fbblit_info *dst, grub_video_color_t color, int x, int y, int width, int height) argument
53 grub_video_fbfill_direct32(struct grub_video_fbblit_info *dst, grub_video_color_t color, int x, int y, int width, int height) argument
82 grub_video_fbfill_direct24(struct grub_video_fbblit_info *dst, grub_video_color_t color, int x, int y, int width, int height) argument
118 grub_video_fbfill_direct16(struct grub_video_fbblit_info *dst, grub_video_color_t color, int x, int y, int width, int height) argument
152 grub_video_fbfill_direct8(struct grub_video_fbblit_info *dst, grub_video_color_t color, int x, int y, int width, int height) argument
[all...]
H A Dfbblit.c506 grub_uint32_t color; local
511 color = *srcptr++;
513 sr = (color >> 0) & 0xFF;
514 sg = (color >> 8) & 0xFF;
515 sb = (color >> 16) & 0xFF;
576 grub_uint32_t color; local
601 color = 0xFF000000 | (sb << 16) | (sg << 8) | sr;
603 *dstptr++ = color;
618 grub_uint32_t color; local
638 color
661 grub_uint32_t color; local
704 grub_uint32_t color; local
826 grub_uint32_t color; local
907 grub_uint32_t color; local
969 grub_uint32_t color; local
1041 grub_uint32_t color; local
1114 grub_uint32_t color; local
1219 grub_uint32_t color; local
1318 grub_uint32_t color; local
1418 grub_uint32_t color; local
[all...]
H A Dvideo_fb.c128 /* Assume that we know everything from index color palette. */
201 /* Maps color name to target optimized color format. */
205 /* TODO: implement color theme mapping code. */
214 grub_video_color_t color; local
216 color = grub_video_fb_map_rgb (framebuffer.palette[color_name].r,
220 return color;
227 /* Maps RGB to target optimized color format. */
241 /* Find best matching color. */
278 grub_uint8_t alpha = 255; /* Opaque color
336 grub_video_fb_unmap_color(grub_video_color_t color, grub_uint8_t *red, grub_uint8_t *green, grub_uint8_t *blue, grub_uint8_t *alpha) argument
352 grub_video_fb_unmap_color_int(struct grub_video_fbblit_info * source, grub_video_color_t color, grub_uint8_t *red, grub_uint8_t *green, grub_uint8_t *blue, grub_uint8_t *alpha) argument
450 grub_video_fb_fill_rect(grub_video_color_t color, int x, int y, unsigned int width, unsigned int height) argument
990 grub_video_fb_scroll(grub_video_color_t color, int dx, int dy) argument
[all...]
/osnet-11/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dcolor.c30 * color.c
40 static char rcsID[] = "$Header: /rd/src/libc/xcurses/rcs/color.c 1.2 1995/10/02 15:15:02 ant Exp $";
86 init_color(short color, short r, short g, short b) argument
91 __m_trace("init_color(%d, %d, %d, %d)", color, r, g, b);
94 if (!can_change || color < 0 || max_colors <= color
100 /* Remember color settings for future queries. */
101 cur_term->_color[color][0] = r;
102 cur_term->_color[color][1] = g;
103 cur_term->_color[color][
161 color_content(short color, short *r, short *g, short *b) argument
[all...]
/osnet-11/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dcolor.c32 * color.c
44 "libxcurses/src/libc/xcurses/rcs/color.c 1.6 1998/05/28 17:10:14 "
95 init_color(short color, short r, short g, short b) argument
99 if (!can_change || color < 0 || max_colors <= color ||
105 /* Remember color settings for future queries. */
106 cur_term->_color[color][0] = r;
107 cur_term->_color[color][1] = g;
108 cur_term->_color[color][2] = b;
112 /* Set the color
154 color_content(short color, short *r, short *g, short *b) argument
[all...]
/osnet-11/usr/src/grub/grub2/grub-core/commands/
H A Dvideotest.c38 grub_video_color_t color; local
82 color = grub_video_map_rgb (0, 255, 255);
91 grub_font_draw_glyph (glyph, color, 200 ,0);
93 color = grub_video_map_rgb (255, 255, 255);
97 sans, color, 16, texty);
102 fixed, color, 16, texty);
126 color = grub_video_map_rgb (128, 128, 255);
130 grub_font_draw_string (str, fixed, color, 16, texty);
134 grub_font_draw_string (str, sansbig, color, 16, texty);
138 grub_font_draw_string (str, sans, color, 1
[all...]
/osnet-11/usr/src/grub/grub2/grub-core/normal/
H A Dcolor.c60 grub_parse_color_name_pair (grub_uint8_t *color, const char *name) argument
90 grub_printf_ (N_("Warning: invalid foreground color `%s'\n"), fg_name);
96 grub_printf_ (N_("Warning: invalid background color `%s'\n"), bg_name);
101 *color = (bg << 4) | fg;
121 /* Propagates `normal' color to terminal current color. */
/osnet-11/usr/src/grub/grub2/grub-core/term/ieee1275/
H A Dofconsole.c34 struct color struct
42 ignore set-color!. Additionally output may be redirected to serial. */
43 static struct color colors[] =
/osnet-11/usr/src/lib/libtsol/common/
H A Dmisc.c50 static char color[MAXCOLOR]; variable
324 * bltocolor - get ASCII color name of label.
326 * Entry label = Sensitivity Level of color to get.
328 * color_name = Storage for ASCII color name string to be returned.
333 * invalid label, no color for this label).
334 * Address of color_name parameter containing ASCII color name
354 (strlen(cret.color) >= size)) {
362 colorp = strcpy(color_name, cret.color);
373 * bltocolor - get ASCII color name of label.
375 * Entry label = Sensitivity Level of color t
[all...]
H A Dlabeld.h164 char color[BUFSIZE]; member in struct:__anon2674
/osnet-11/usr/src/grub/grub2/grub-core/font/
H A Dfont.c1496 grub_video_color_t color, int left_x, int baseline_y)
1522 grub_video_unmap_color (color,
1495 grub_font_draw_glyph(struct grub_font_glyph * glyph, grub_video_color_t color, int left_x, int baseline_y) argument
/osnet-11/usr/src/grub/grub2/grub-core/term/
H A Dgfxterm.c88 /* Terminal color settings. */
160 /* Map terminal color to text layer compatible video colors. */
163 /* Special case: use black as transparent color. */
323 grub_video_color_t color; local
337 /* Make sure screen is set to the default background color. */
338 color = grub_video_map_rgba_color (default_bg_color);
339 grub_video_fill_rect (color, 0, 0, mode_info.width, mode_info.height);
343 grub_video_fill_rect (color, 0, 0, mode_info.width, mode_info.height);
419 grub_video_color_t color; local
438 color
603 grub_video_color_t color; local
664 grub_video_color_t color; local
699 grub_video_color_t color; local
1020 grub_video_color_t color; local
[all...]
/osnet-11/usr/src/grub/grub-0.97/stage2/
H A Dgraphics.c96 /* color state */
146 int image_read, index, color; local
157 * Set VGA palette color 0 to be the system background color, 15 to be the
158 * system foreground color, and 17 to be the system border color.
161 * its new colors; if not, set them to the background color.
168 color = (image_read ? splash_palette[index] : background);
169 graphics_set_palette(index, PALETTE_RED(color),
170 PALETTE_GREEN(color), PALETTE_BLU
[all...]
H A Dbuiltins.c649 /* color */
651 specify a color name: a direct integer representation and a symbolic
652 color name. An example of the latter is "blink-light-gray/blue". */
682 /* Convert the color name STR into the magical number. */
687 int color = 0;
704 color = 0x80;
708 /* Search for the color name. */
712 color |= i;
722 /* Search for the color name. */
726 color |
681 int color = 0; local
5683 unsigned color = 0; local
[all...]
/osnet-11/usr/src/lib/libumem/common/
H A Dumem.c1138 size_t color, chunks; local
1144 color = cp->cache_color + cp->cache_align;
1145 if (color > cp->cache_maxcolor)
1146 color = cp->cache_mincolor;
1147 cp->cache_color = color;
1163 chunks = (slabsize - color) / chunksize;
1166 chunks = (slabsize - sizeof (umem_slab_t) - color) / chunksize;
1172 sp->slab_base = buf = slab + color;

Completed in 168 milliseconds