Lines Matching refs:bg
163 bg = 0;
165 if (freq[bg] < freq[i])
166 bg = i;
169 if (i != bg && freq[fg] < freq[i])
171 if (fg == bg || freq[fg] == 0) {
172 fg = bg;
185 color_t bgc = color_t::from_ansi (bg);
204 unsigned int bg;
384 if (last_bg != bi.bg) {
385 printf ("\e[%dm", 40 + bi.bg);
386 last_bg = bi.bg;
395 if (last_bg != bi.fg || last_fg != bi.bg) {
396 printf ("\e[%d;%dm", 30 + bi.bg, 40 + bi.fg);
398 last_fg = bi.bg;
401 if (last_bg != bi.bg || last_fg != bi.fg) {
402 printf ("\e[%d;%dm", 40 + bi.bg, 30 + bi.fg);
403 last_bg = bi.bg;