putty color config

    xiaoxiao2026-10-06  2

    如上图, 在xubuntu系统terminal终端的color panel中:

    Palette里面从左到右从上到下依次对应于Xresource中的color0, color1, color2, ..., color15.

    color0: black

    color1: red

    color2: green

    color3: yellow

    color4: blue

    color5: magenta

    color6: cyan

    color7: white

    color8-15则分别对应上述color0-7的intense版本的颜色, 即light ver

    General里面Text color/Background color分别对应Xresource里面的fg/bg, 可以分别设置为color0/color8对应的颜色.

    下面是设置windows下putty终端颜色:

    Putty终端颜色为Colour0, Colour1, Colour2, ..., Colour21总共22种颜色, 

    其中Colour0/Colour1对应终端fg/bg, (Colour2/3应该对应fg/bgColour4/5应该是对应intense fg/bg),

    Colour6对应Xresource中的color0,

    Colour7对应color8,

    Colour8对应color1,

    Colour9对应color9

    ...

    Colour21对应color15

    如此可将*nix系统下颜色配置copy到putty下, putty不提供配置文件, 只可以在register数据库中作session配置,

    这样也比较方便, 只要作一份reg文件, 每次只要双击即可, 不同的session按照这个reg模板文件修改并导入即可.

    这里有一篇更好的颜色设置提示比如一般是对哪些文本对象设置颜色等:

    http://www.eclipsecolorthemes.org/?view=theme&id=1115

    copy一份保存为reg文件双击之即可. 

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    Putty Color Setup

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\SOFTWARE\SimonTatham\PuTTY\Sessions\vbox] "Present"=dword:00000001 "HostName"="192.168.56.101" "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:00000000 "PingIntervalSecs"=dword:00000000 "TCPNoDelay"=dword:00000001 "TCPKeepalives"=dword:00000000 "TerminalType"="xterm" "TerminalSpeed"="38400,38400" "TerminalModes"="CS7=A,CS8=A,DISCARD=A,DSUSP=A,ECHO=A,ECHOCTL=A,ECHOE=A,ECHOK=A,ECHOKE=A,ECHONL=A,EOF=A,EOL=A,EOL2=A,ERASE=A,FLUSH=A,ICANON=A,ICRNL=A,IEXTEN=A,IGNCR=A,IGNPAR=A,IMAXBEL=A,INLCR=A,INPCK=A,INTR=A,ISIG=A,ISTRIP=A,IUCLC=A,IXANY=A,IXOFF=A,IXON=A,KILL=A,LNEXT=A,NOFLSH=A,OCRNL=A,OLCUC=A,ONLCR=A,ONLRET=A,ONOCR=A,OPOST=A,PARENB=A,PARMRK=A,PARODD=A,PENDIN=A,QUIT=A,REPRINT=A,START=A,STATUS=A,STOP=A,SUSP=A,SWTCH=A,TOSTOP=A,WERASE=A,XCASE=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"="dcf" "UserNameFromEnvironment"=dword:00000000 "LocalUserName"="" "NoPTY"=dword:00000000 "Compression"=dword:00000000 "TryAgent"=dword:00000001 "AgentFwd"=dword:00000001 "GssapiFwd"=dword:00000000 "ChangeUsername"=dword:00000000 "Cipher"="aes,blowfish,3des,WARN,arcfour,des" "KEX"="rsa,dh-gex-sha1,dh-group14-sha1,dh-group1-sha1,WARN" "RekeyTime"=dword:0000003c "RekeyBytes"="1G" "SshNoAuth"=dword:00000000 "SshBanner"=dword:00000001 "AuthTIS"=dword:00000000 "AuthKI"=dword:00000001 "AuthGSSAPI"=dword:00000001 "GSSLibs"="gssapi32,sspi,custom" "GSSCustom"="" "SshNoShell"=dword:00000000 "SshProt"=dword:00000003 "LogHost"="" "SSH2DES"=dword:00000000 "PublicKeyFile"="C:\\Program Files (x86)\\PuTTY\\vbox_ppk.ppk" "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 "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:00000001 "BlinkCur"=dword:00000001 "Beep"=dword:00000001 "BeepInd"=dword:00000000 "BellWaveFile"="" "BellOverload"=dword:00000001 "BellOverloadN"=dword:00000005 "BellOverloadT"=dword:000007d0 "BellOverloadS"=dword:00001388 "ScrollbackLines"=dword:0000270f "DECOriginMode"=dword:00000000 "AutoWrapMode"=dword:00000001 "LFImpliesCR"=dword:00000000 "CRImpliesLF"=dword:00000000 "DisableArabicShaping"=dword:00000000 "DisableBidi"=dword:00000000 "WinNameAlways"=dword:00000001 "WinTitle"="" "TermWidth"=dword:00000082 "TermHeight"=dword:00000028 "Font"="Courier New" "FontIsBold"=dword:00000000 "FontCharSet"=dword:00000000 "FontHeight"=dword:0000000c "FontQuality"=dword:00000000 "FontVTMode"=dword:00000004 "UseSystemColours"=dword:00000000 "TryPalette"=dword:00000000 "ANSIColour"=dword:00000001 "Xterm256Colour"=dword:00000001 "BoldAsColour"=dword:00000001 "Colour0"="170,170,170" "Colour1"="224,224,224" "Colour2"="0,43,54" "Colour3"="7,54,66" "Colour4"="0,43,54" "Colour5"="0,255,0" "Colour6"="7,54,66" "Colour7"="0,43,54" "Colour8"="204,0,0" "Colour9"="239,41,41" "Colour10"="78,154,6" "Colour11"="95,135,0" "Colour12"="160,116,0" "Colour13"="235,200,0" "Colour14"="38,139,210" "Colour15"="0,135,255" "Colour16"="117,80,123" "Colour17"="175,0,95" "Colour18"="6,152,154" "Colour19"="0,175,175" "Colour20"="211,215,207" "Colour21"="238,238,236" "RawCNP"=dword:00000000 "PasteRTF"=dword:00000000 "MouseIsXterm"=dword:00000001 "RectSelect"=dword:00000000 "MouseOverride"=dword:00000000 "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"="UTF-8" "CJKAmbigWide"=dword:00000001 "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 "X11AuthFile"="" "LocalPortAcceptAll"=dword:00000000 "RemotePortAcceptAll"=dword:00000000 "PortForwardings"="" "BugIgnore1"=dword:00000000 "BugPlainPW1"=dword:00000000 "BugRSA1"=dword:00000000 "BugIgnore2"=dword:00000000 "BugHMAC2"=dword:00000000 "BugDeriveKey2"=dword:00000000 "BugRSAPad2"=dword:00000000 "BugPKSessID2"=dword:00000000 "BugRekey2"=dword:00000000 "BugMaxPkt2"=dword:00000000 "BugOldGex2"=dword:00000000 "BugWinadj"=dword:00000000 "BugChanReq"=dword:00000000 "StampUtmp"=dword:00000001 "LoginShell"=dword:00000001 "ScrollbarOnLeft"=dword:00000000 "BoldFont"="" "BoldFontIsBold"=dword:00000000 "BoldFontCharSet"=dword:00000000 "BoldFontHeight"=dword:00000000 "WideFont"="" "WideFontIsBold"=dword:00000000 "WideFontCharSet"=dword:00000000 "WideFontHeight"=dword:00000000 "WideBoldFont"="" "WideBoldFontIsBold"=dword:00000000 "WideBoldFontCharSet"=dword:00000000 "WideBoldFontHeight"=dword:00000000 "ShadowBold"=dword:00000000 "ShadowBoldOffset"=dword:00000001 "SerialLine"="COM1" "SerialSpeed"=dword:00002580 "SerialDataBits"=dword:00000008 "SerialStopHalfbits"=dword:00000002 "SerialParity"=dword:00000000 "SerialFlowControl"=dword:00000001 "WindowClass"="" "ConnectionSharing"=dword:00000000 "ConnectionSharingUpstream"=dword:00000001 "ConnectionSharingDownstream"=dword:00000001 "SSHManualHostKeys"=""

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    =======================================

    Ubuntu下保存恢复terminal设置:

    gconftool-2 --dump '/apps/gnome-terminal' > gnome-terminal-conf.xml gconftool-2 --load gnome-terminal-conf.xml

    http://askubuntu.com/questions/714735/how-can-i-export-ubuntu-terminals-profile-in-another-computers

    =======================================

    Xubuntu下保存恢复terminal设置:

    cp xubuntu_termial_settings.rc ~/.config/xfce4/terminal/terminalrc

    #############

    [Configuration] ColorPalette=#070736364242;#cccc00000000;#4e4e9a9a0606;#c4c4a0a00000;#34346565a4a4;#757550507b7b;#060698989a9a;#d3d3d7d7cfcf;#00002b2b3636;#efef29292929;#8a8ae2e23434;#fcfce9e94f4f;#73739f9fcfcf;#adad7f7fa8a8;#3434e2e2e2e2;#eeeeeeeeecec FontName=DejaVu Sans Mono 16 MiscAlwaysShowTabs=FALSE MiscBell=FALSE MiscBordersDefault=TRUE MiscCursorBlinks=FALSE MiscCursorShape=TERMINAL_CURSOR_SHAPE_BLOCK MiscDefaultGeometry=80x24 MiscInheritGeometry=FALSE MiscMenubarDefault=TRUE MiscMouseAutohide=FALSE MiscToolbarDefault=FALSE MiscConfirmClose=TRUE MiscCycleTabs=TRUE MiscTabCloseButtons=TRUE MiscTabCloseMiddleClick=TRUE MiscTabPosition=GTK_POS_TOP MiscHighlightUrls=TRUE MiscScrollAlternateScreen=TRUE ScrollingOnOutput=FALSE ScrollingLines=55555 ColorForeground=#aaaaaaaaaaaa ColorBackground=#070736364242

    =======================================

    以下为xubuntu下terminal tango palette

    =======================================

    color0: #073642 (7,54,66) #Black color1: #CC0000 (204,0,0) #Red color2: #4E9A06 (78,154,6) #Green color3: #C4A000 (196,160,0) #Brown/Yellow color4: #3465A4 (52,101,164) #Blue color5: #75507B (117,80,123) #Magenta color6: #06989A (6,152,154) #Cyan color7: #D3D7CF (211,215,207) #Light Gray color8: #002B36 (0,43,54) #Dark Gray color9: #EF2929 (239,41,41) #Light Red color10: #8AE234 (138,226,52) #Light Green color11: #FCE94F (252,233,79) #Yellow color12: #739FCF (115,159,207) #Light Blue color13: #AD7FA8 (173,127,168) #Light Magenta color14: #34E2E2 (52,226,226) #Light Cyan color15: #EEEEEC (238,238,236) #White Text color/fg: #AAAAAA (170,170,170) Bg: #073642 (7,54,66) Cursor color: #00AA00 (0,170,0) Tab activity color: #AA0000 (170,0,0)

    Dominant color config

    =======================================

    以下为konsole color config

    =======================================

    put below > ~/.kde/share/apps/konsole/SolarizeDark.schema OR:  ~/.local/share/konsole (version>2015) # schema for konsole autogenerated with the schema editor title SolarizedDark # foreground colors # note that the default background color is flagged # to become transparent when an image is present. #   slot    transparent bold #      | red grn blu  | | #      V V--color--V  V V color  0 131 148 150  0 0 # 0 - Foreground Color color  1   0  43  54  1 0 # 1 - Background Color color  2   7  54  66  0 0 # 2 - Color 0 (black)      # vim normal fg color  3 204   0   0  0 0 # 3 - Color 1 (red) color  4  24 178  24  0 0 # 4 - Color 2 (green)      # 78 154 6 color  5 160 116   0  0 0 # 5 - Color 3 (yellow)     # 196 160 0 color  6  38 139 210  0 0 # 6 - Color 4 (blue) color  7 117  80 123  0 0 # 7 - Color 5 (magenta) color  8   6 152 154  0 0 # 8 - Color 6 (cyan) color  9 211 215 207  0 0 # 9 - Color 7 (white)      # shell normal fg? color 10 170 170 170  0 1 # 10 - Foreground Intensive Color color 11   7  54  66  1 0 # 11 - Background Intensive Color # 0 255 0 color 12   0  43  56  0 0 # 12 - Color 0 Intensive (gray) color 13 239  41  41  0 0 # 13 - Color 1 Intensive (light red) color 14  95 135   0  0 0 # 14 - Color 2 Intensive (light green) color 15 235 200   0  0 0 # 15 - Color 3 Intensive (light yellow) color 16   0 135 255  0 0 # 16 - Color 4 Intensive (light blue) color 17 175   0  95  0 0 # 17 - Color 5 Intensive (light magenta) color 18   0 175 175  0 0 # 18 - Color 6 Intensive (light cyan) color 19 238 238 236  0 0 # 19 - Color 7 Intensive (white) # PuTTY #"Colour6"="7,54,66"        # color0 #"Colour8"="204,0,0"        # color1 #"Colour10"="78,154,6"      # color2 #"Colour12"="196,160,0"     # color3 #"Colour14"="52,101,164"    # color4 #"Colour16"="117,80,123"    # color5 #"Colour18"="6,152,154"     # color6 #"Colour20"="211,215,207"   # color7 # #"Colour7"="0,43,54"        # color8   # color 0 intense #"Colour9"="239,41,41"      # color9   # color 1 intense #"Colour11"="138,226,52"    # color10  # color 2 intense #"Colour13"="252,233,79"    # color11  # color 3 intense #"Colour15"="115,159,207"   # color12  # color 4 intense #"Colour17"="173,127,168"   # color13  # color 5 intense #"Colour19"="52,226,226"    # color14  # color 6 intense #"Colour21"="238,238,236"   # color15  # color 7 intense

    ############################################

    ############################################

    the meaning of the color numbering:

    Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\SESSION_NAME] ; Default Foreground "Colour0"="217,216,216" ; Default Bold Foreground "Colour1"="217,216,216" ; Default Background "Colour2"="28,28,28" ; Default Background "Colour3"="28,63,149" ; Cursor Text "Colour4"="28,28,28" ; Cursor Color "Colour5"="231,231,232" ; ANSI Black "Colour6"="115,113,113" ; ANSI Black Bold "Colour7"="115,113,113" ; ANSI Red "Colour8"="251,38,8" ; ANSI Red Bold "Colour9"="251,38,8" ; ANSI Green "Colour10"="167,226,46" ; ANSI Green Bold "Colour11"="167,226,46" ; ANSI Yellow "Colour12"="102,217,238" ; ANSI Yellow Bold "Colour13"="102,217,238" ; ANSI Blue "Colour14"="0,157,220" ; ANSI Blue Bold "Colour15"="0,157,220" ; ANSI Magenta "Colour16"="255,85,255" ; ANSI Magenta Bold "Colour17"="255,85,255" ; ANSI Cyan "Colour18"="255,210,4" ; ANSI Cyan Bold "Colour19"="255,210,4" ; ANSI White "Colour20"="217,216,216" ; ANSI White Bold "Colour21"="255,255,255"

    转载请注明原文地址: https://ju.6miu.com/read-1312691.html
    最新回复(0)