Skip to content

Instantly share code, notes, and snippets.

Created November 10, 2012 14:41
Show Gist options
  • Save anonymous/4051291 to your computer and use it in GitHub Desktop.
Save anonymous/4051291 to your computer and use it in GitHub Desktop.
Absolutely horrific workaround
diff --git a/tasknc.c b/tasknc.c
index d0c83bd..fb4ad55 100644
--- a/tasknc.c
+++ b/tasknc.c
@@ -793,6 +793,11 @@ void wipe_screen(WINDOW *win, const short startl, const short stopl) /* {{{ */
*/
int y, x;
+ if ( win == NULL )
+ {
+ win = newwin(1, 1, 0, 0);
+ }
+
wattrset(win, COLOR_PAIR(0));
for (y=startl; y<=stopl; y++)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment