Lines Matching refs:bg
162 bg (0), fg (0), unicolor (true), in biimage_t()
177 bg = 0; in set()
179 if (freq[bg] < freq[i]) in set()
180 bg = i; in set()
183 if (i != bg && freq[fg] < freq[i]) in set()
185 if (fg == bg || freq[fg] == 0) { in set()
186 fg = bg; in set()
199 color_t bgc = color_t::from_ansi (bg); in set()
218 unsigned int bg; member
399 if (last_bg != bi.bg) { in ansi_print_image_rgb24()
400 printf ("%c[%dm", ESC_E, 40 + bi.bg); in ansi_print_image_rgb24()
401 last_bg = bi.bg; in ansi_print_image_rgb24()
409 if (last_bg != bi.fg || last_fg != bi.bg) { in ansi_print_image_rgb24()
410 printf ("%c[%d;%dm", ESC_E, 30 + bi.bg, 40 + bi.fg); in ansi_print_image_rgb24()
412 last_fg = bi.bg; in ansi_print_image_rgb24()
415 if (last_bg != bi.bg || last_fg != bi.fg) { in ansi_print_image_rgb24()
416 printf ("%c[%d;%dm", ESC_E, 40 + bi.bg, 30 + bi.fg); in ansi_print_image_rgb24()
417 last_bg = bi.bg; in ansi_print_image_rgb24()