I'm using PuTTY to SSH from my PC at home to Linux computers at work, but some of the text (folder names) is dark blue on black, which is almost impossible to read. How do I change the colour-scheme?
My computer at home has Windows 7 in case it makes any difference.
17 Answers
In the PuTTY configuration window on the left side (the category section) there is an expandable item called Window and under that item is Colours. That is where color changes can be made.
1Click on the System menu at the upper left corner of the PuTTY window.
- Select Change Settings > Window > Colours.
- In the box that says "Select a colour to adjust", choose ANSI Blue and click the Modify Button.
- Slide the black arrow on the right up until you see a lighter shade of blue that you like.
- Click OK.
- Perform the same steps for ANSI Blue Bold so you can have a perceptible difference between the two.
- When you're finished, click Apply.
You can use the very awesome 4bit Terminal Color Scheme Designer to generate a full color scheme for your shell.
Just create a color scheme to your liking, then click the Get Scheme button and select putty.
After downloading the .reg file, just import it to your registry to get the new color scheme. By default the registry change will only affect new sessions, but you can also apply the scheme to existing saved sessions by changing the last part of the path in the .reg file.
The default PuTTY color scheme is known to be tough on the eyes, I would recommend taking a look at Pretty PuTTY, Solarized PuTTY, or Solarized & Modern PuTTY for better color settings.
Screenshot of Pretty Putty:
Light color scheme
Dark color scheme
Other Settings
In addition to PuTTY color settings you can configure:
.dir_colorsfor custom colors when using thels --color=autocommand..screenrcwith the entryterm screen-256colorfor 256 color support withscreen.- In PuTTY Connection -> Data -> Terminal-type string to
putty-256color.
Avoid
In general avoid:
- Solutions that modify the
TERMvariable in.bashrc. - Solutions that modify the Vim
t_Covariable.
These are hacks rather than solutions.
Further reading
- Tom Ryder's blog post about TERM string's
You may also want to make those colour changes to the default session so that all future sessions you save will have this.
2Open regedit.exe, and go to HKEY_CURRENT_USER\Software\SimonTatham\Putty\Sessions
For each saved session you have to specify the R,G,B code. The ANSI Blue is Colour14
For the Default Settings, you have to edit the colours for the Default%20Settings session
There is a small themes manager that allows you to assign a predefined color theme to a session:
1