Lines Matching refs:col
36 static void lookup_colour_ansi(long index, VTermColor *col)
39 *col = ansi_colors[index];
43 static void lookup_colour_palette(long index, VTermColor *col)
47 lookup_colour_ansi(index, col);
53 col->blue = ramp6[index % 6];
54 col->green = ramp6[index/6 % 6];
55 col->red = ramp6[index/6/6 % 6];
61 col->red = ramp24[index];
62 col->green = ramp24[index];
63 col->blue = ramp24[index];
67 static int lookup_colour(int palette, const long args[], int argcount, VTermColor *col, int *index)
74 col->red = CSI_ARG(args[0]);
75 col->green = CSI_ARG(args[1]);
76 col->blue = CSI_ARG(args[2]);
84 lookup_colour_palette(argcount ? CSI_ARG_OR(args[0], -1) : -1, col);
127 static void set_pen_col_ansi(VTermState *state, VTermAttr attr, long col)
131 lookup_colour_ansi(col, colp);
178 void vterm_state_get_palette_color(const VTermState *state, int index, VTermColor *col)
180 lookup_colour_palette(index, col);