Skip to content

Instantly share code, notes, and snippets.

@phuongtailtranminh
Last active December 20, 2020 03:05
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phuongtailtranminh/5cee7980ac328a19429b to your computer and use it in GitHub Desktop.
Save phuongtailtranminh/5cee7980ac328a19429b to your computer and use it in GitHub Desktop.
Because of 'Meslo for Powerline' font doens't work with Putty.
So we need another patched font to display powerline correctly.
Here are the list:
- DejaVu Sans Mono for Powerline (https://github.com/powerline/fonts/tree/master/DejaVuSansMono)
- Droid Sans Mono for Powerline (https://github.com/powerline/fonts/tree/master/DroidSansMono)
To change font: On main window (Putty Configuration) -> Window -> Apearance -> Font settings -> Change
To test, enter this in the terminal screen: echo "\ue0b0 \u00b1 \ue0a0 \u27a6 \u2718 \u26a1 \u2699"
My favourtie zsh theme: https://gist.github.com/agnoster/3712874
Reg file:
REGEDIT4
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY]
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions]
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\Default%20Settings]
"Colour0"="131,148,150"
"Colour1"="147,161,161"
"Colour2"="0,43,54"
"Colour3"="7,54,66"
"Colour4"="0,43,54"
"Colour5"="238,232,213"
"Colour6"="7,54,66"
"Colour7"="0,43,56"
"Colour8"="220,50,47"
"Colour9"="203,75,22"
"Colour10"="133,153,0"
"Colour11"="88,110,117"
"Colour12"="181,137,0"
"Colour13"="101,123,131"
"Colour14"="38,139,210"
"Colour15"="131,148,150"
"Colour16"="211,54,130"
"Colour17"="108,113,196"
"Colour18"="42,161,152"
"Colour19"="147,161,161"
"Colour20"="238,232,213"
"Colour21"="253,246,227"
"Present"=dword:00000001
"Protocol"="ssh"
"CloseOnExit"=dword:00000001
"WarnOnClose"=dword:00000001
"PingInterval"=dword:00000000
"PingIntervalSecs"=dword:0000003b
"TerminalType"="putty-256color"
"SshProt"=dword:00000003
"HideMousePtr"=dword:00000001
"Beep"=dword:00000001
"ScrollbackLines"=dword:000007d0
"TermWidth"=dword:00000050
"TermHeight"=dword:00000028
"Font"="Lucida Console"
"FontHeight"=dword:0000000c
"FontQuality"=dword:00000003
"UseSystemColours"=dword:00000000
"TryPalette"=dword:00000000
"ANSIColour"=dword:00000001
"Xterm256Colour"=dword:00000001
"BoldAsColour"=dword:00000000
"MouseIsXterm"=dword:00000000
"RectSelect"=dword:00000000
"MouseOverride"=dword:00000001
"LineCodePage"="UTF-8"
"UTF8Override"=dword:00000001
"ScrollBar"=dword:00000001
"ScrollOnKey"=dword:00000001
"ScrollOnDisp"=dword:00000000
"X11Forward"=dword:00000001
@liaoya
Copy link

liaoya commented Nov 5, 2018

I need run echo -e "\ue0b0 \u00b1 \ue0a0 \u27a6 \u2718 \u26a1 \u2699" to display them correctly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment