Fix passthrough of ANSI codes