diff options
author | ache <ache@FreeBSD.org> | 1994-11-17 22:52:05 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1994-11-17 22:52:05 +0000 |
commit | 550b4ca6631eb6c43c4c078c08f32e58a134a20c (patch) | |
tree | a19e7222695dd94554b2eae26211db9ab5cea731 /gnu | |
parent | 5c4c6bf0ff050933db62f0657c384ee7b904da75 (diff) | |
download | FreeBSD-src-550b4ca6631eb6c43c4c078c08f32e58a134a20c.zip FreeBSD-src-550b4ca6631eb6c43c4c078c08f32e58a134a20c.tar.gz |
Add dialog_clear_norefresh() function
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/lib/libdialog/dialog.h | 1 | ||||
-rw-r--r-- | gnu/lib/libdialog/kernel.c | 7 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gnu/lib/libdialog/dialog.h b/gnu/lib/libdialog/dialog.h index cb7053f..ed4109c 100644 --- a/gnu/lib/libdialog/dialog.h +++ b/gnu/lib/libdialog/dialog.h @@ -92,6 +92,7 @@ int dialog_menu(unsigned char *title, unsigned char *prompt, int height, int wid int dialog_checklist(unsigned char *title, unsigned char *prompt, int height, int width, int list_height, int item_no, unsigned char **items, unsigned char *result); int dialog_radiolist(unsigned char *title, unsigned char *prompt, int height, int width, int list_height, int item_no, unsigned char **items, unsigned char *result); int dialog_inputbox(unsigned char *title, unsigned char *prompt, int height, int width, unsigned char *result); +void dialog_clear_norefresh(void); void dialog_clear(void); void dialog_update(void); void init_dialog(void); diff --git a/gnu/lib/libdialog/kernel.c b/gnu/lib/libdialog/kernel.c index 9309fec..fe21703 100644 --- a/gnu/lib/libdialog/kernel.c +++ b/gnu/lib/libdialog/kernel.c @@ -406,10 +406,15 @@ void draw_shadow(WINDOW *win, int y, int x, int height, int width) /* End of draw_shadow() */ #endif -void dialog_clear(void) +void dialog_clear_norefresh(void) { attr_clear(stdscr, LINES, COLS, screen_attr); touchwin(stdscr); +} + +void dialog_clear(void) +{ + dialog_clear_norefresh(); refresh(); } |