An additional flag `--term-title-format` is introduced to allow the user to control the format of the terminal title. It is specified as a python format string, and currently the only variable it will format is `{cwd}`.