aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/lxdialog/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/kconfig/lxdialog/util.c')
-rw-r--r--scripts/kconfig/lxdialog/util.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/kconfig/lxdialog/util.c b/scripts/kconfig/lxdialog/util.c
index d54440fc166c..a1bddefe73d0 100644
--- a/scripts/kconfig/lxdialog/util.c
+++ b/scripts/kconfig/lxdialog/util.c
@@ -272,6 +272,11 @@ void init_dialog(const char *backtitle)
272 color_setup(getenv("MENUCONFIG_COLOR")); 272 color_setup(getenv("MENUCONFIG_COLOR"));
273} 273}
274 274
275void set_dialog_backtitle(const char *backtitle)
276{
277 dlg.backtitle = backtitle;
278}
279
275void reset_dialog(void) 280void reset_dialog(void)
276{ 281{
277 initscr(); /* Init curses */ 282 initscr(); /* Init curses */
@@ -336,7 +341,7 @@ void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x)
336 newl = 1; 341 newl = 1;
337 word = tempstr; 342 word = tempstr;
338 while (word && *word) { 343 while (word && *word) {
339 sp = index(word, ' '); 344 sp = strchr(word, ' ');
340 if (sp) 345 if (sp)
341 *sp++ = 0; 346 *sp++ = 0;
342 347
@@ -348,7 +353,7 @@ void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x)
348 if (wlen > room || 353 if (wlen > room ||
349 (newl && wlen < 4 && sp 354 (newl && wlen < 4 && sp
350 && wlen + 1 + strlen(sp) > room 355 && wlen + 1 + strlen(sp) > room
351 && (!(sp2 = index(sp, ' ')) 356 && (!(sp2 = strchr(sp, ' '))
352 || wlen + 1 + (sp2 - sp) > room))) { 357 || wlen + 1 + (sp2 - sp) > room))) {
353 cur_y++; 358 cur_y++;
354 cur_x = x; 359 cur_x = x;