Convert ncurses interface to class