aboutsummaryrefslogtreecommitdiff
path: root/scripts/config/lxdialog/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/config/lxdialog/util.c')
-rw-r--r--scripts/config/lxdialog/util.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/scripts/config/lxdialog/util.c b/scripts/config/lxdialog/util.c
index 6f83951b9..47afa5e6a 100644
--- a/scripts/config/lxdialog/util.c
+++ b/scripts/config/lxdialog/util.c
@@ -29,7 +29,7 @@ const char *backtitle = NULL;
29 29
30const char *dialog_result; 30const char *dialog_result;
31 31
32/* 32/*
33 * Attribute values, default is for mono display 33 * Attribute values, default is for mono display
34 */ 34 */
35chtype attributes[] = 35chtype attributes[] =
@@ -127,13 +127,13 @@ void dialog_clear (void)
127 attr_clear (stdscr, LINES, COLS, screen_attr); 127 attr_clear (stdscr, LINES, COLS, screen_attr);
128 /* Display background title if it exists ... - SLH */ 128 /* Display background title if it exists ... - SLH */
129 if (backtitle != NULL) { 129 if (backtitle != NULL) {
130 int i; 130 int i;
131 131
132 wattrset (stdscr, screen_attr); 132 wattrset (stdscr, screen_attr);
133 mvwaddstr (stdscr, 0, 1, (char *)backtitle); 133 mvwaddstr (stdscr, 0, 1, (char *)backtitle);
134 wmove (stdscr, 1, 1); 134 wmove (stdscr, 1, 1);
135 for (i = 1; i < COLS - 1; i++) 135 for (i = 1; i < COLS - 1; i++)
136 waddch (stdscr, ACS_HLINE); 136 waddch (stdscr, ACS_HLINE);
137 } 137 }
138 wnoutrefresh (stdscr); 138 wnoutrefresh (stdscr);
139} 139}
@@ -204,7 +204,7 @@ print_autowrap (WINDOW * win, const char *prompt, int width, int y, int x)
204 strcpy (tempstr, prompt); 204 strcpy (tempstr, prompt);
205 205
206 prompt_len = strlen(tempstr); 206 prompt_len = strlen(tempstr);
207 207
208 /* 208 /*
209 * Remove newlines 209 * Remove newlines
210 */ 210 */
@@ -350,7 +350,7 @@ first_alpha(const char *string, const char *exempt)
350 if (strchr("<[(", c)) ++in_paren; 350 if (strchr("<[(", c)) ++in_paren;
351 if (strchr(">])", c) && in_paren > 0) --in_paren; 351 if (strchr(">])", c) && in_paren > 0) --in_paren;
352 352
353 if ((! in_paren) && isalpha(c) && 353 if ((! in_paren) && isalpha(c) &&
354 strchr(exempt, c) == 0) 354 strchr(exempt, c) == 0)
355 return i; 355 return i;
356 } 356 }