learn about ncurses, readline and terminfo/tercap