Avoid screen flickering

Use erase instead of clear to avoid screen flickering. clear will cause
curses to repaint entire window from scratch, which causes flickering.