When working with Mac or Linux I got so used to the awesome looking terminals provided by “Oh My ZSH!”. But when it comes to connecting to such a Linux terminal from Windows using PuTTY my enthusiasm rapidly ended.
This end was caused by two major problems I encountere:
- PuTTY can’t display the design properly (mostly the font)
- Some keys like Home / End aren’t working
Fix PuTTY Design
First fix the broken display of putty. To fix this we can mostly follow the guide for installing agnoster in oh-my-zsh:
- Install Powerline-patched font
So, to fix the wrong encoding, we need to use a Powerline-patched font – the guide recommends Meslo 14pt. I use Meslo LG L DZ Bold for Powerline.ttf. Simply download the font and install it by
right-click > Install
- Apply font in PuTTY
A picture is worth a thousand words.
NOTE: You have to set this for each session you create individually (afaik) – so you spare time if you store this settings in a „base session“ that you can reuse.
Fix PuTTY Keymap
But you still cannot use the function keys like Home or End and the whole numpad. To fix this I found the answere on stackoverflow from hopla:
The solution is to configure Putty to send another terminal type. I’ve tried
xterm-colorfixed the Home/End problem, but the Numpad was still funny. Setting it to
linuxfixed both problems.
If this worked, give this guy a +1 on his answere.