refactor AnsiOutput, now prints cursor.