Code

screen_utils: Use werase() instead of wclear().
authorPatrick Hallen <patrick.hallen@rwth-aachen.de>
Wed, 11 Feb 2009 19:07:07 +0000 (20:07 +0100)
committerPatrick Hallen <patrick.hallen@rwth-aachen.de>
Wed, 11 Feb 2009 19:07:07 +0000 (20:07 +0100)
Use werase() instead of wclear() in screen_readch(), because wclear() rebuilds the whole window from
scratch and flickers.

src/screen_utils.c

index d168d22502d09c7985560d44f0ef39dae0606eb7..9dde20c03aa8a2fd3e0ac0abd6ecbb3aeafabea4 100644 (file)
@@ -47,7 +47,7 @@ screen_getch(WINDOW *w, const char *prompt)
        int key = -1;
 
        colors_use(w, COLOR_STATUS_ALERT);
-       wclear(w);
+       werase(w);
        wmove(w, 0, 0);
        waddstr(w, prompt);