Removed some ANSI specifics from textmode.js