The terminal title output should go to the same place as the rest of the terminal output. It's important _not_ to send it to stdout, where it would get included with the main program output when redirected to a file - for instance with the rclone cat command.