MCPcopy Create free account
hub / github.com/Entware/Entware / init_one_color

Function init_one_color

scripts/config/lxdialog/util.c:166–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166static void init_one_color(struct dialog_color *color)
167{
168 static int pair = 0;
169
170 pair++;
171 init_pair(pair, color->fg, color->bg);
172 if (color->hl)
173 color->atr = A_BOLD | COLOR_PAIR(pair);
174 else
175 color->atr = COLOR_PAIR(pair);
176}
177
178static void init_dialog_colors(void)
179{

Callers 1

init_dialog_colorsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected