Disable Remote session changing PuTTY window title

Updated on March 8, 2018

How to change the title of PuTTY window? Well, at first it looked straight forward – via Change Settings > Window > Behaviour and set the window title. But the title is not going to stay forever, because the remote session has the ability to reset the window title. The remote machine can use escape sequences to dynamically change window title or icons of an xterm.

For example:

  • ESC]0;stringBEL — Set icon name and window title to string
  • ESC]1;stringBEL — Set icon name to string
  • ESC]2;stringBEL — Set window title to string

Where ESC is the escape character (\033) and BEL is the bell character (\007) and when one of the sequences is printed within the xterm, then it can change the title or icon of the window. Some of the use cases are – logon script changes PuTTY title to the user’s account name and the shell prompt changes title with the name of the present working directory.

Said that, changing the title of PuTTY window via Change Settings > Window > Behavior is just not enough. To change the window title permanently, follow the below steps.

Ok, why do I need to change the window title? Well, imagine you are working with multiple PuTTY windows and you had to switch between those often. In such cases, setting respective titles would help to identify the windows.

How to Disable Remote session changing PuTTY window title

  1. Launch PuTTY
  2. Click on one of your "Saved Sessions" and click "Load" button
  3. Click on "Terminal" tree on the left pane and select "Features"
  4. In the right pane, check "Disable remote-controlled window title changing"
  5. Click "Window" on the left pane to expand it and select "Behaviour"
  6. On the right pane set the "Window title"
  7. Click on “Session" on the left pane and click "Save" button on the right pane to save the loaded session. In case, if you are saving the session, then you need to input session name and click Save button.
  8. Click on "Open" button to launch the session.
  9. That’s it! You will now see window title changed permanently

Disable Remote session changing PuTTY window title

Was this article helpful?

Related Articles

Leave a Comment