diff options
| author | Rodney W. Grimes <rgrimes@FreeBSD.org> | 1995-05-30 05:05:38 +0000 |
|---|---|---|
| committer | Rodney W. Grimes <rgrimes@FreeBSD.org> | 1995-05-30 05:05:38 +0000 |
| commit | 4399be3cbd35324f7a2c00d77229d995b4022138 (patch) | |
| tree | a3959baf797787918878bec6d58d6a0fb743ad0a /gnu/lib/libdialog/msgbox.c | |
| parent | 709e8f9ae1d734c1a163c9b421df4b8153939ce7 (diff) | |
Notes
Diffstat (limited to 'gnu/lib/libdialog/msgbox.c')
| -rw-r--r-- | gnu/lib/libdialog/msgbox.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gnu/lib/libdialog/msgbox.c b/gnu/lib/libdialog/msgbox.c index 867f64989fbd..75ff399f5539 100644 --- a/gnu/lib/libdialog/msgbox.c +++ b/gnu/lib/libdialog/msgbox.c @@ -226,7 +226,7 @@ dialog_mesgbox(unsigned char *title, unsigned char *prompt, int height, int widt display_helpfile(); break; } - print_page(dialog, theight, width, prompt, startline, hscroll); + print_page(dialog, theight, width, prompt, startline, hscroll); print_perc(dialog, height-3, width-9, (float) (startline+theight)/max_lines); wmove(dialog, height-2, width/2-2); wrefresh(dialog); @@ -284,7 +284,7 @@ getline(unsigned char *buf, int n) if (n<0) { return(NULL); } - + i=0; while (*buf && i<n) { if (*buf == '\n' || *buf == '\r') { @@ -315,7 +315,7 @@ print_page(WINDOW *win, int height, int width, unsigned char *buf, int startline wmove(win, 1+i, 1); for (j=0; j<width-2; j++) waddnstr(win, " ", 1); wmove(win, 1+i, 1); - j = 0; + j = 0; /* scroll to the right */ while (*b && (*b != '\n') && (*b != '\r') && (j<hscroll)) { b++; @@ -336,7 +336,7 @@ print_page(WINDOW *win, int height, int width, unsigned char *buf, int startline if (*b) b++; /* skip over '\n', if it exists */ } } /* print_page() */ - - - - + + + + |
