Update curses-ui.cpp