Added fallback in case curses is not available, as seen on Windows.