diff options
author | Sam Ravnborg <sam@mars.ravnborg.org> | 2006-07-24 15:40:46 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@neptun.ravnborg.org> | 2006-09-30 05:19:19 -0400 |
commit | 98e5a1579e7d34fe3803240750a1c48efcd9cb15 (patch) | |
tree | 433f6b354eb0bb6fa01f325237f9f4651bf5ac9f /scripts/kconfig/lxdialog/lxdialog.c | |
parent | bf603625660b1742004bf86432ce3c210d14d4fd (diff) |
kconfig/lxdialog: refactor color support
Clean up and refactor color support. All color support are now
in util.c including color definitions.
In the process introduced a global variable named 'dlg' which is
used all over to set color - thats the reason why all files are changed.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/kconfig/lxdialog/lxdialog.c')
-rw-r--r-- | scripts/kconfig/lxdialog/lxdialog.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/kconfig/lxdialog/lxdialog.c b/scripts/kconfig/lxdialog/lxdialog.c index 79f6c5fb5cef..c264e024309e 100644 --- a/scripts/kconfig/lxdialog/lxdialog.c +++ b/scripts/kconfig/lxdialog/lxdialog.c | |||
@@ -78,11 +78,11 @@ int main(int argc, const char *const *argv) | |||
78 | offset += 2; | 78 | offset += 2; |
79 | } | 79 | } |
80 | } else if (!strcmp(argv[offset + 1], "--backtitle")) { | 80 | } else if (!strcmp(argv[offset + 1], "--backtitle")) { |
81 | if (backtitle != NULL) { | 81 | if (dlg.backtitle != NULL) { |
82 | Usage(argv[0]); | 82 | Usage(argv[0]); |
83 | exit(-1); | 83 | exit(-1); |
84 | } else { | 84 | } else { |
85 | backtitle = argv[offset + 2]; | 85 | dlg.backtitle = argv[offset + 2]; |
86 | offset += 2; | 86 | offset += 2; |
87 | } | 87 | } |
88 | } else if (!strcmp(argv[offset + 1], "--clear")) { | 88 | } else if (!strcmp(argv[offset + 1], "--clear")) { |
@@ -123,7 +123,7 @@ int main(int argc, const char *const *argv) | |||
123 | retval = (*(modePtr->jumper)) (title, argc - offset, argv + offset); | 123 | retval = (*(modePtr->jumper)) (title, argc - offset, argv + offset); |
124 | 124 | ||
125 | if (opt_clear) { /* clear screen before exit */ | 125 | if (opt_clear) { /* clear screen before exit */ |
126 | attr_clear(stdscr, LINES, COLS, screen_attr); | 126 | attr_clear(stdscr, LINES, COLS, dlg.screen.atr); |
127 | refresh(); | 127 | refresh(); |
128 | } | 128 | } |
129 | end_dialog(); | 129 | end_dialog(); |