Putty配色字体设置教程
零、引言
嘛,自打用了VPS,腰也疼了,眼也花了,上楼也没劲了。。
咳咳。。都是Putty默认的配色和字体惹的祸啊。
于是,改了它有助于身体健康。
P.S.好久没更新了,放个水文除除草。
先放上效果来看看吧~
效果还是不错的,图中的乱码是挺纠结的。乱码是受到联通网络渣的要死引的。
一、修改配色方案
修改Putty的默认方案就可以,可能有朋友说,Putty直接修改之后下次又恢复原始状态了,这个确实很纠结。
Putty的配置保存在注册表中。
1 |
HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\Default%20Settings |
运行注册表编辑器,在这个表键下进行就解决了默认方案修改无效的问题。
修改其中的colour0-colour21这几个表键就可以了,采用的是RGB值,将喜欢的颜色变成RGB值输入进去就可以了。
二、修改字体
修改字体同样在这个注册表键中。
将Font修改一下就可以了。
大D使用的Yahei Mono等宽字体文后会分享给大家。
三、解决乱码问题
有的时候会比较坑爹,你更换了字体之后各种乱码显示或者显示成方块。
这是因为编码的问题造成的,修改LineCodePage键值为:Use font encoding就可以了。
四、大D的配色方案
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 |
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\Default%20Settings] "Present"=dword:00000001 "HostName"="" "LogFileName"="putty.log" "LogType"=dword:00000000 "LogFileClash"=dword:ffffffff "LogFlush"=dword:00000001 "SSHLogOmitPasswords"=dword:00000001 "SSHLogOmitData"=dword:00000000 "Protocol"="ssh" "PortNumber"=dword:00000016 "CloseOnExit"=dword:00000001 "WarnOnClose"=dword:00000001 "PingInterval"=dword:00000003 "PingIntervalSecs"=dword:00000000 "TCPNoDelay"=dword:00000001 "TCPKeepalives"=dword:00000000 "TerminalType"="xterm" "TerminalSpeed"="38400,38400" "TerminalModes"="INTR=A,QUIT=A,ERASE=A,KILL=A,EOF=A,EOL=A,EOL2=A,START=A,STOP=A,SUSP=A,DSUSP=A,REPRINT=A,WERASE=A,LNEXT=A,FLUSH=A,SWTCH=A,STATUS=A,DISCARD=A,IGNPAR=A,PARMRK=A,INPCK=A,ISTRIP=A,INLCR=A,IGNCR=A,ICRNL=A,IUCLC=A,IXON=A,IXANY=A,IXOFF=A,IMAXBEL=A,ISIG=A,ICANON=A,XCASE=A,ECHO=A,ECHOE=A,ECHOK=A,ECHONL=A,NOFLSH=A,TOSTOP=A,IEXTEN=A,ECHOCTL=A,ECHOKE=A,PENDIN=A,OPOST=A,OLCUC=A,ONLCR=A,OCRNL=A,ONOCR=A,ONLRET=A,CS7=A,CS8=A,PARENB=A,PARODD=A," "AddressFamily"=dword:00000000 "ProxyExcludeList"="" "ProxyDNS"=dword:00000001 "ProxyLocalhost"=dword:00000000 "ProxyMethod"=dword:00000000 "ProxyHost"="proxy" "ProxyPort"=dword:00000050 "ProxyUsername"="" "ProxyPassword"="" "ProxyTelnetCommand"="connect %host %port\\n" "Environment"="" "UserName"="" "LocalUserName"="" "NoPTY"=dword:00000000 "Compression"=dword:00000000 "TryAgent"=dword:00000001 "AgentFwd"=dword:00000000 "ChangeUsername"=dword:00000000 "Cipher"="aes,blowfish,3des,WARN,des,arcfour" "KEX"="dh-gex-sha1,dh-group14-sha1,dh-group1-sha1,WARN" "RekeyTime"=dword:0000003c "RekeyBytes"="1G" "SshNoAuth"=dword:00000000 "AuthTIS"=dword:00000000 "AuthKI"=dword:00000001 "SshNoShell"=dword:00000000 "SshProt"=dword:00000002 "SSH2DES"=dword:00000000 "PublicKeyFile"="" "RemoteCommand"="" "RFCEnviron"=dword:00000000 "PassiveTelnet"=dword:00000000 "BackspaceIsDelete"=dword:00000001 "RXVTHomeEnd"=dword:00000000 "LinuxFunctionKeys"=dword:00000000 "NoApplicationKeys"=dword:00000000 "NoApplicationCursors"=dword:00000000 "NoMouseReporting"=dword:00000000 "NoRemoteResize"=dword:00000000 "NoAltScreen"=dword:00000000 "NoRemoteWinTitle"=dword:00000000 "RemoteQTitleAction"=dword:00000001 "NoDBackspace"=dword:00000000 "NoRemoteCharset"=dword:00000000 "ApplicationCursorKeys"=dword:00000000 "ApplicationKeypad"=dword:00000000 "NetHackKeypad"=dword:00000000 "StorageType"=dword:00000000 "Tray"=dword:00000001 "StartTray"=dword:00000000 "TrayRestore"=dword:00000001 "WakeupReconnect"=dword:00000001 "FailureReconnect"=dword:00000001 "Transparency"=dword:000000ff "WindowIcon"="" "AltF4"=dword:00000001 "AltSpace"=dword:00000000 "AltOnly"=dword:00000000 "ComposeKey"=dword:00000000 "CtrlAltKeys"=dword:00000001 "TelnetKey"=dword:00000000 "TelnetRet"=dword:00000001 "LocalEcho"=dword:00000002 "LocalEdit"=dword:00000002 "Answerback"="PuTTY" "AlwaysOnTop"=dword:00000000 "FullScreenOnAltEnter"=dword:00000000 "HideMousePtr"=dword:00000000 "SunkenEdge"=dword:00000000 "WindowBorder"=dword:00000001 "CurType"=dword:00000000 "BlinkCur"=dword:00000000 "Beep"=dword:00000001 "BeepInd"=dword:00000000 "BellWaveFile"="" "BellOverload"=dword:00000001 "BellOverloadN"=dword:00000005 "BellOverloadT"=dword:000007d0 "BellOverloadS"=dword:00001388 "ScrollbackLines"=dword:000000c8 "DECOriginMode"=dword:00000000 "AutoWrapMode"=dword:00000001 "LFImpliesCR"=dword:00000000 "DisableArabicShaping"=dword:00000000 "DisableBidi"=dword:00000000 "WinNameAlways"=dword:00000001 "WinTitle"="root@localhost:/svn/applications/discovery" "TermWidth"=dword:00000062 "TermHeight"=dword:00000016 "Font"="Yahei Mono" "FontIsBold"=dword:00000000 "FontCharSet"=dword:00000000 "FontHeight"=dword:0000000e "FontQuality"=dword:00000003 "FontVTMode"=dword:00000004 "UseSystemColours"=dword:00000000 "TryPalette"=dword:00000000 "ANSIColour"=dword:00000001 "Xterm256Colour"=dword:00000001 "BoldAsColour"=dword:00000001 "Colour0"="255,255,255" "Colour1"="255,255,255" "Colour2"="51,51,51" "Colour3"="85,85,85" "Colour4"="0,0,0" "Colour5"="0,255,0" "Colour6"="77,77,77" "Colour7"="85,85,85" "Colour8"="255,43,43" "Colour9"="255,85,85" "Colour10"="152,251,152" "Colour11"="85,255,85" "Colour12"="240,230,140" "Colour13"="255,255,85" "Colour14"="205,133,63" "Colour15"="135,206,235" "Colour16"="255,222,173" "Colour17"="255,85,255" "Colour18"="255,160,160" "Colour19"="255,215,0" "Colour20"="245,222,179" "Colour21"="255,255,255" "RawCNP"=dword:00000000 "PasteRTF"=dword:00000000 "MouseIsXterm"=dword:00000000 "RectSelect"=dword:00000000 "MouseOverride"=dword:00000001 "Wordness0"="0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" "Wordness32"="0,1,2,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1" "Wordness64"="1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,2" "Wordness96"="1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1" "Wordness128"="1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1" "Wordness160"="1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1" "Wordness192"="2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2" "Wordness224"="2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2" "LineCodePage"="Use font encoding" "CJKAmbigWide"=dword:00000000 "UTF8Override"=dword:00000001 "Printer"="" "CapsLockCyr"=dword:00000000 "ScrollBar"=dword:00000001 "ScrollBarFullScreen"=dword:00000000 "ScrollOnKey"=dword:00000000 "ScrollOnDisp"=dword:00000001 "EraseToScrollback"=dword:00000001 "LockSize"=dword:00000000 "BCE"=dword:00000001 "BlinkText"=dword:00000000 "X11Forward"=dword:00000000 "X11Display"="" "X11AuthType"=dword:00000001 "LocalPortAcceptAll"=dword:00000000 "RemotePortAcceptAll"=dword:00000000 "PortForwardings"="" "BugIgnore1"=dword:00000000 "BugPlainPW1"=dword:00000000 "BugRSA1"=dword:00000000 "BugHMAC2"=dword:00000000 "BugDeriveKey2"=dword:00000000 "BugRSAPad2"=dword:00000000 "BugPKSessID2"=dword:00000000 "BugRekey2"=dword:00000000 "StampUtmp"=dword:00000001 "LoginShell"=dword:00000001 "ScrollbarOnLeft"=dword:00000000 "BoldFont"="" "BoldFontIsBold"=dword:0040bd58 "BoldFontCharSet"=dword:00468334 "BoldFontHeight"=dword:0012ffb0 "WideFont"="" "WideFontIsBold"=dword:c1b51467 "WideFontCharSet"=dword:0040bd58 "WideFontHeight"=dword:0012ea24 "WideBoldFont"="" "WideBoldFontIsBold"=dword:00000000 "WideBoldFontCharSet"=dword:c1b51467 "WideBoldFontHeight"=dword:0000000a "ShadowBold"=dword:00000000 "ShadowBoldOffset"=dword:00000001 "SerialLine"="COM1" "SerialSpeed"=dword:00002580 "SerialDataBits"=dword:00000008 "SerialStopHalfbits"=dword:00000002 "SerialParity"=dword:00000000 "SerialFlowControl"=dword:00000001 "HyperlinkUnderline"=dword:00000001 "HyperlinkUseCtrlClick"=dword:00000001 "HyperlinkBrowserUseDefault"=dword:00000001 "HyperlinkBrowser"="" "HyperlinkRegularExpressionUseDefault"=dword:00000001 "HyperlinkRegularExpression"="(((https?|ftp):\\/\\/)|www\\.)(([0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+)|localhost|([a-zA-Z0-9\\-]+\\.)*[a-zA-Z0-9\\-]+\\.(com|net|org|info|biz|gov|name|edu|[a-zA-Z][a-zA-Z]))(:[0-9]+)?((\\/|\\?)[^ \"]*[^ ,;\\.:\">)])?" |
将上面的注册表键值保存为xxx.reg,导入注册表即可。
五、懒人解决方案
直接下载reg文件导入,记得将Yahei Mono字体文件放进
X:\windows\font\(X为操作系统安装盘符)
约定好的下载地址:
版权声明
转载保留版权: 大D技研室 | 《Putty配色字体设置教程》
本文链接地址:https://www.dadclab.com/archives/1212.jiecao
转载须知:如果您需要转载本文,请将版权信息,版权授权方式,以及本文的链接地址注明,谢谢合作。
已有 15 条评论
发表评论
电子邮件地址不会被公开。 必填项已标注。
沙发我坐定了 哇咔咔
@xushine 沙发够快的。
YM大D牛~~
yahei mono和 wenquanyi的微米黑mono很相似的样子。
@dave 嗯,确实很相似
非常赞!字体可以再小一号。font quality选用antialiased会更漂亮
呵呵。。俺近视眼。。。所以字体选得大了一点,看着舒服。嘿嘿
Pingback: Putty配色字体设置教程 « Windows Fans
近视严重中
@Win8迷 我也是啊……又该换镜片了。。各种看不清了……
看了你这篇,想到在putty字体列表里没出现的字体是否可以直接改注册表使用,比如“微软雅黑”,结果真的可以,但是很难看。
所以想问下,为什么“微软雅黑”这种字体没有出现在putty的字体列表里?难道作者有一个规则判断某种字体是否合适终端显示?
@rain 本身微软雅黑是为了cleantpye而设计,putty最clentype支持不好,其次,Yahei Mono是两种字体的结合体,利用了微软雅黑的中文部分和Mono的英文。显示不好就是因为微软雅黑的英文部分不好看。再就是等宽字体问题。字体筛选也许是用后缀名筛选。。
very great artcile, thanks!
高度近视患者前来拜会,感谢作者分享技巧。Thank you very much!
@阁主手札 我已经换到用Xshell了,比Putty看上去更舒服一点。俺也是近视患者啊。。。