modernize ncurses defn