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

Function color_setup

scripts/config/lxdialog/util.c:214–224  ·  view source on GitHub ↗

* Setup for color display */

Source from the content-addressed store, hash-verified

212 * Setup for color display
213 */
214static void color_setup(const char *theme)
215{
216 int use_color;
217
218 use_color = set_theme(theme);
219 if (use_color && has_colors()) {
220 start_color();
221 init_dialog_colors();
222 } else
223 set_mono_theme();
224}
225
226/*
227 * Set window to attribute 'attr'

Callers 1

init_dialogFunction · 0.85

Calls 3

set_themeFunction · 0.85
init_dialog_colorsFunction · 0.85
set_mono_themeFunction · 0.85

Tested by

no test coverage detected