implement different ansi command sequences