emulation: No longer rely on terminfo; drop ncurses dependency

https://bugzilla.gnome.org/show_bug.cgi?id=728900#c5