Build array of codes, stop using ncurses global variables and push ncurses crap into tty-term.c.

12 files changed