started on ANSI sequence processing