Permit COCOTB_ANSI_OUTPUT environment variable to override default behaviour