Restored ncurses compatibility.