• Jason McCarver's avatar
    xentop.c: Change curses painting behavior to avoid flicker · babc6229
    Jason McCarver authored
    Currently, xentop calls clear() before drawing the screen and calling
    refresh().  This causes the entire screen to be repainted from scratch
    on each call to refresh().  It is inefficient and causes visible flicker
    when using xentop.
    
    This patch fixes this by calling erase() instead of clear() which overwrites
    the current screen with blanks instead.  The screen is then drawn as usual
    in the top() function and refresh() is called.  This method allows curses
    to only repaint the characters that have changed since the last call
    to refresh(), thus avoiding the flicker and sending fewer characters to
    the terminal.
    
    In the event the screen becomes corrupted, this patch accepts a CTRL-L
    keystroke from the user which will call clear() and force a repaint of
    the entire screen.
    Signed-off-by: 's avatarJason McCarver <slam@parasite.cc>
    Acked-by: 's avatarIan Jackson <ian.jackson@eu.citrix.com>
    Committed-by: 's avatarIan Campbell <ian.campbell@citrix.com>
    babc6229
Name
Last commit
Last update
..
libxenstat Loading commit data...
xentop Loading commit data...
Makefile Loading commit data...