Remove code that's not used in the move to curses.

This includes the ANSI escape class, as well as the ansilen function