diff options
author | Malfurious <m@lfurio.us> | 2023-07-07 19:39:33 -0400 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2023-07-07 19:39:33 -0400 |
commit | 415c553d96c4851350512cc943e10ec477427e02 (patch) | |
tree | a3adfa0da1aed3a31bfbcb3a55293bf596b37f4a | |
parent | d1fc03d6758dcb7ccca3e4255114d85acfad08d4 (diff) | |
download | misplays-415c553d96c4851350512cc943e10ec477427e02.tar.gz misplays-415c553d96c4851350512cc943e10ec477427e02.zip |
Add panel clear helper
Signed-off-by: Malfurious <m@lfurio.us>
-rw-r--r-- | helpers.c | 4 | ||||
-rw-r--r-- | helpers.h | 1 |
2 files changed, 5 insertions, 0 deletions
@@ -53,3 +53,7 @@ int pprintw(PANEL *pan, const char *fmt, ...) { va_end(args); return res; } + +int pclear(PANEL *pan) { + return wclear(panel_window(pan)); +} @@ -12,3 +12,4 @@ extern PANEL *newpan(int h, int w, int y, int x); extern void delpan(PANEL *pan); extern void reset_panel(PANEL *pan, int h, int w, int y, int x); extern int pprintw(PANEL *pan, const char *fmt, ...); +extern int pclear(PANEL *pan); |