Fix performance issues with console. Trimmed long lines, added buffering to output, and rewrote AnsiParser's verifyText.