Fix ncurses not resizing properly. See http://bugs.python.org/issue2675