Lines Matching refs:fg

58   VTermColor		fg;  member
1701 attr->fg = cell->fg; in cell2cellattr()
1710 return a->fg.red == b->fg.red in equal_celattr()
1711 && a->fg.green == b->fg.green in equal_celattr()
1712 && a->fg.blue == b->fg.blue in equal_celattr()
1945 &term->tl_default_color.fg, &term->tl_default_color.bg); in may_move_terminal_to_buffer()
2341 term_get_cursor_shape(guicolor_T *fg, guicolor_T *bg) in term_get_cursor_shape() argument
2367 *fg = term_bg; in term_get_cursor_shape()
2369 *fg = gui.back_pixel; in term_get_cursor_shape()
2747 color2index(VTermColor *color, int fg, int *boldp) in color2index() argument
2761 case 1: return lookup_color( 0, fg, boldp) + 1; // black in color2index()
2762 case 2: return lookup_color( 4, fg, boldp) + 1; // dark red in color2index()
2763 case 3: return lookup_color( 2, fg, boldp) + 1; // dark green in color2index()
2764 case 4: return lookup_color( 7, fg, boldp) + 1; // dark yellow in color2index()
2765 case 5: return lookup_color( 1, fg, boldp) + 1; // dark blue in color2index()
2766 case 6: return lookup_color( 5, fg, boldp) + 1; // dark magenta in color2index()
2767 case 7: return lookup_color( 3, fg, boldp) + 1; // dark cyan in color2index()
2768 case 8: return lookup_color( 8, fg, boldp) + 1; // light grey in color2index()
2769 case 9: return lookup_color(12, fg, boldp) + 1; // dark grey in color2index()
2770 case 10: return lookup_color(20, fg, boldp) + 1; // red in color2index()
2771 case 11: return lookup_color(16, fg, boldp) + 1; // green in color2index()
2772 case 12: return lookup_color(24, fg, boldp) + 1; // yellow in color2index()
2773 case 13: return lookup_color(14, fg, boldp) + 1; // blue in color2index()
2774 case 14: return lookup_color(22, fg, boldp) + 1; // magenta in color2index()
2775 case 15: return lookup_color(18, fg, boldp) + 1; // cyan in color2index()
2776 case 16: return lookup_color(26, fg, boldp) + 1; // white in color2index()
2872 VTermColor *fg = cellfg; in cell2attr() local
2874 int is_default_fg = VTERM_COLOR_IS_DEFAULT_FG(fg); in cell2attr()
2882 fg = &wp->w_term_wincolor.fg; in cell2attr()
2889 fg = &term->tl_default_color.fg; in cell2attr()
2898 guicolor_T guifg = gui_mch_get_rgb_color(fg->red, fg->green, fg->blue); in cell2attr()
2907 guicolor_T tgcfg = VTERM_COLOR_IS_INVALID(fg) in cell2attr()
2909 : gui_get_rgb_color_cmn(fg->red, fg->green, fg->blue); in cell2attr()
2919 int ctermfg = color2index(fg, TRUE, &bold); in cell2attr()
2962 VTermColor fg, bg; in term_scroll_up() local
2974 &fg, &bg); in term_scroll_up()
2975 clear_attr = cell2attr(term, wp, &attr, &fg, &bg); in term_scroll_up()
3620 ScreenAttrs[off] = cell2attr(term, wp, &cell.attrs, &cell.fg, in term_line2screenline()
3881 return cell2attr(term, wp, &cellattr->attrs, &cellattr->fg, &cellattr->bg); in term_get_attr()
3907 get_vterm_color_from_synid(int id, VTermColor *fg, VTermColor *bg) in get_vterm_color_from_synid() argument
3933 fg->red = (unsigned)(rgb >> 16); in get_vterm_color_from_synid()
3934 fg->green = (unsigned)(rgb >> 8) & 255; in get_vterm_color_from_synid()
3935 fg->blue = (unsigned)rgb & 255; in get_vterm_color_from_synid()
3936 fg->type = VTERM_COLOR_RGB | VTERM_COLOR_DEFAULT_FG; in get_vterm_color_from_synid()
3939 fg->type = VTERM_COLOR_INVALID | VTERM_COLOR_DEFAULT_FG; in get_vterm_color_from_synid()
3966 cterm_color2vterm(cterm_fg, fg); in get_vterm_color_from_synid()
3967 fg->type |= VTERM_COLOR_DEFAULT_FG; in get_vterm_color_from_synid()
3970 fg->type = VTERM_COLOR_INVALID | VTERM_COLOR_DEFAULT_FG; in get_vterm_color_from_synid()
3989 wp->w_term_wincolor.fg.type = VTERM_COLOR_INVALID | VTERM_COLOR_DEFAULT_FG; in term_reset_wincolor()
4003 if (id == 0 || !get_vterm_color_from_synid(id, &wp->w_term_wincolor.fg, in term_update_wincolor()
4028 VTermColor *fg, *bg; in init_default_colors() local
4034 fg = &term->tl_default_color.fg; in init_default_colors()
4049 fg->red = fg->green = fg->blue = fgval; in init_default_colors()
4051 fg->type = VTERM_COLOR_RGB | VTERM_COLOR_DEFAULT_FG; in init_default_colors()
4057 if (!get_vterm_color_from_synid(id, fg, bg)) in init_default_colors()
4066 cterm_color2vterm(cterm_normal_fg_color - 1, fg); in init_default_colors()
4072 tmp = fg->red; in init_default_colors()
4073 fg->red = fg->blue; in init_default_colors()
4074 fg->blue = tmp; in init_default_colors()
4080 term_get_fg_color(&fg->red, &fg->green, &fg->blue); in init_default_colors()
4091 tmp = fg->red; in init_default_colors()
4092 fg->red = fg->blue; in init_default_colors()
4093 fg->blue = tmp; in init_default_colors()
4571 &term->tl_default_color.fg, in create_vterm()
4618 &term->tl_default_color.fg, in term_update_colors_all()
4715 cell->fg.type = VTERM_COLOR_INVALID | VTERM_COLOR_DEFAULT_FG; in clear_cell()
4869 && vterm_color_is_equal(&cell.fg, &prev_cell.fg) in f_term_dumpwrite()
4917 if (vterm_color_is_equal(&cell.fg, &prev_cell.fg)) in f_term_dumpwrite()
4922 dump_term_color(fd, &cell.fg); in f_term_dumpwrite()
4971 cell->fg.type = VTERM_COLOR_DEFAULT_FG; in clear_cellattr()
5154 cell.fg.type = type; in read_dump_file()
5155 cell.fg.red = red; in read_dump_file()
5156 cell.fg.green = green; in read_dump_file()
5157 cell.fg.blue = blue; in read_dump_file()
5158 cell.fg.index = index; in read_dump_file()
5471 else if (!vterm_color_is_equal(&(cellattr1 + col)->fg, in term_load_dump()
5472 &(cellattr2 + col)->fg)) in term_load_dump()
6101 VTermColor fg, bg; in f_term_scrape() local
6118 fg = cellattr->fg; in f_term_scrape()
6140 fg = cell.fg; in f_term_scrape()
6151 fg.red, fg.green, fg.blue); in f_term_scrape()
6158 cell2attr(term, NULL, &attrs, &fg, &bg)); in f_term_scrape()