NCurses: hand coded menu implementation