Make cmd_showing_output work with subprocesses that use '\r'.