12

PuTTY is was displaying some weird characters due to incorrectly set character set (credit to previous SU question for helping me figure that out)

Now that I know switching the Received data assumed to be in which character set: would address this issue, how would I fix this in all of my saved sessions? I tried changing it in the Default Settings session but it did not propagate to the other sessions.

Might just need to do it manual which is okay I suppose. But I do have almost 30 sessions.

17

I just had the same problem and found PuTTY session manager:

PuTTY Session Manager is a tool that allows system administrators to organise their PuTTY sessions into folders and assign hotkeys to favourite sessions. Multiple sessions can be launched with one click. Requires MS Windows and the .NET 2.0 Runtime.

It allowed me to configure all sessions at once while leaving the distinct elements well alone.

| improve this answer | |
  • 2
    +1 Had already installed the program but was not aware, that it can do that! – ceving Nov 27 '14 at 15:34
  • 13
    Worked perfectly. Since that functionality is quite hidden, here is how you do it: 1) in the normal putty load the default session, change the color and save it. Install the session manager and start it. Afterwards, you'll have an icon in your system tray. Right click, choose session editor, select all sessions, choose "copy session attribute", from default template, only selected attributes, choose colors and apply. Thanks a lot for that tipp whish I had known that tool for years :) – Christopher Lörken Feb 16 '15 at 10:53
  • Note: this tool uses raw attribute names rather than the friendly labels shown in the normal PuTTY settings. I'm not sure how one maps from one to the other. (For instance, I was trying to copy the visual bell setting, but struggled to find which attribute was relevant). – Duncan Jones Jun 16 '17 at 8:20
4

Export the Putty sessions stored in the registry by exporting the registry key HKEY_CURRENT_USER\Software\SimonTatham. Then search-replace the desired settings merge the .reg file back to registry.

| improve this answer | |
0

I believe this is all stored in registry entries - so you'd have to use a tool that allows you to update a set of registry keys based on some criteria (probably involving wildcards)

| improve this answer | |
  • After taking a few deep breaths and opening regedit.exe, found the settings: HKCU\Software\SimonTatham\PuTTY\Sessions. Now if only I knew which key corresponds to the charset settings :-/ – Belmin Fernandez Oct 20 '10 at 20:54
  • 2
    Maybe, export the registry entries for one key, change the "Received data assumed to be in which character set" value. Export the registry keys again. diff. Unless you have a very large number of sessions, I have a feeling that editing each session might be faster (though arguably tedious and less fun). – RedGrittyBrick Oct 20 '10 at 21:09
  • Have almost 30 sessions. I think I'll just use a Python script but you're export/import idea is a smart one nonetheless. First, need to figure out which value corresponds to the setting. – Belmin Fernandez Oct 20 '10 at 22:09
  • 1
    Try changing LineCodePage – jackhab Jul 5 '11 at 14:50
0

I found the application "SupperPuTTY" can solve this problem more easily and easier to understand, it treats original PuTTY sessions as configuration files.

An example as below.

  1. Click Tools -> PuTTY Configuration, as Capture 1;
  2. Change some settings (e.g. colors), then in block Load, save or delete a stored session, click Default Settings and click Save;
  3. Right click on PuTTY Sessions, and click new, as Capture 2;
  4. In the new popup Create New Session, you can select appropriate configuration file in PuTTY Session Profile list. For examples, select Default Settings, as Capture 3.

In the future, if you change some settings of Default Settings, then all changes will apply on all sessions using Default Settings.

Sorry for my poor English if not described clearly.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.