📄 config.but
字号:
\S{config-rtfpaste} Pasting in Rich Text Format\cfg{winhelp-topic}{selection.rtf}If you enable \q{Paste to clipboard in RTF as well as plain text},PuTTY will write formatting information to the clipboard as well asthe actual text you copy. Currently the only effect of this will bethat if you paste into (say) a word processor, the text will appearin the word processor in the same font PuTTY was using to displayit. In future it is likely that other formatting information (bold,underline, colours) will be copied as well.This option can easily be inconvenient, so by default it isdisabled.\S{config-mouse} Changing the actions of the mouse buttons\cfg{winhelp-topic}{selection.buttons}PuTTY's copy and paste mechanism is by default modelled on the Unix\c{xterm} application. The X Window System uses a three-button mouse,and the convention is that the left button selects, the right buttonextends an existing selection, and the middle button pastes.Windows often only has two mouse buttons, so in PuTTY's defaultconfiguration (\q{Compromise}), the \e{right} button pastes, and the\e{middle} button (if you have one) extends a selection.If you have a three-button mouse and you are already used to the\c{xterm} arrangement, you can select it using the \q{Action ofmouse buttons} control.Alternatively, with the \q{Windows} option selected, the middlebutton extends, and the right button brings up a context menu (onwhich one of the options is \q{Paste}). (This context menu is alwaysavailable by holding down Ctrl and right-clicking, regardless of thesetting of this option.)\S{config-mouseshift} \q{Shift overrides application's use of mouse}\cfg{winhelp-topic}{selection.shiftdrag}PuTTY allows the server to send control codes that let it take overthe mouse and use it for purposes other than copy and paste.Applications which use this feature include the text-mode webbrowser \c{links}, the Usenet newsreader \c{trn} version 4, and thefile manager \c{mc} (Midnight Commander).When running one of these applications, pressing the mouse buttonsno longer performs copy and paste. If you do need to copy and paste,you can still do so if you hold down Shift while you do your mouseclicks.However, it is possible in theory for applications to even detectand make use of Shift + mouse clicks. We don't know of anyapplications that do this, but in case someone ever writes one,unchecking the \q{Shift overrides application's use of mouse}checkbox will cause Shift + mouse clicks to go to the server as well(so that mouse-driven copy and paste will be completely disabled).If you want to prevent the application from taking over the mouse atall, you can do this using the Features control panel; see\k{config-features-mouse}.\S{config-rectselect} Default selection mode\cfg{winhelp-topic}{selection.rect}As described in \k{using-selection}, PuTTY has two modes ofselecting text to be copied to the clipboard. In the default mode(\q{Normal}), dragging the mouse from point A to point B selects tothe end of the line containing A, all the lines in between, and fromthe very beginning of the line containing B. In the other mode(\q{Rectangular block}), dragging the mouse between two pointsdefines a rectangle, and everything within that rectangle is copied.Normally, you have to hold down Alt while dragging the mouse toselect a rectangular block. Using the \q{Default selection mode}control, you can set rectangular selection as the default, and thenyou have to hold down Alt to get the \e{normal} behaviour.\S{config-charclasses} Configuring word-by-word selection\cfg{winhelp-topic}{selection.charclasses}PuTTY will select a word at a time in the terminal window if youdouble-click to begin the drag. This panel allows you to controlprecisely what is considered to be a word.Each character is given a \e{class}, which is a small number(typically 0, 1 or 2). PuTTY considers a single word to be anynumber of adjacent characters in the same class. So by modifying theassignment of characters to classes, you can modify the word-by-wordselection behaviour.In the default configuration, the character classes are:\b Class 0 contains white space and control characters.\b Class 1 contains most punctuation.\b Class 2 contains letters, numbers and a few pieces of punctuation(the double quote, minus sign, period, forward slash andunderscore).So, for example, if you assign the \c{@} symbol into character class2, you will be able to select an e-mail address with just a doubleclick.In order to adjust these assignments, you start by selecting a groupof characters in the list box. Then enter a class number in the editbox below, and press the \q{Set} button.This mechanism currently only covers ASCII characters, because itisn't feasible to expand the list to cover the whole of Unicode.Character class definitions can be modified by control sequencessent by the server. This configuration option controls the\e{default} state, which will be restored when you reset theterminal (see \k{reset-terminal}). However, if you modify thisoption in mid-session using \q{Change Settings}, it will take effectimmediately.\H{config-colours} The Colours panelThe Colours panel allows you to control PuTTY's use of colour.\S{config-boldcolour} \q{Bolded text is a different colour}\cfg{winhelp-topic}{colours.bold}When the server sends a control sequence indicating that some textshould be displayed in bold, PuTTY can handle this two ways. It caneither change the font for a bold version, or use the same font in abrighter colour. This control lets you choose which.By default the box is checked, so non-bold text is displayed inlight grey and bold text is displayed in bright white (and similarlyin other colours). If you uncheck the box, bold and non-bold textwill be displayed in the same colour, and instead the font willchange to indicate the difference.\S{config-logpalette} \q{Attempt to use logical palettes}\cfg{winhelp-topic}{colours.logpal}Logical palettes are a mechanism by which a Windows applicationrunning on an 8-bit colour display can select precisely the coloursit wants instead of going with the Windows standard defaults.If you are not getting the colours you ask for on an 8-bit display,you can try enabling this option. However, be warned that it's neverworked very well.\S{config-syscolour} \q{Use system colours}\cfg{winhelp-topic}{colours.system}Enabling this option will cause PuTTY to ignore the configured coloursfor \q{Default Background/Foreground} and \q{Cursor Colour/Text} (see\k{config-colourcfg}), instead going with the system-wide defaults.Note that non-bold and bold text will be the same colour if thisoption is enabled. You might want to change to indicating bold textby font changes (see \k{config-boldcolour}).\S{config-colourcfg} Adjusting the colours in the terminal window\cfg{winhelp-topic}{colours.config}The main colour control allows you to specify exactly what coloursthings should be displayed in. To modify one of the PuTTY colours,use the list box to select which colour you want to modify. The RGBvalues for that colour will appear on the right-hand side of thelist box. Now, if you press the \q{Modify} button, you will bepresented with a colour selector, in which you can choose a newcolour to go in place of the old one.PuTTY allows you to set the cursor colour, the default foregroundand background, and the precise shades of all the ANSI configurablecolours (black, red, green, yellow, blue, magenta, cyan, and white).You can also modify the precise shades used for the bold versions ofthese colours; these are used to display bold text if you haveselected \q{Bolded text is a different colour}, and can also be usedif the server asks specifically to use them. (Note that \q{DefaultBold Background} is \e{not} the background colour used for bold text;it is only used if the server specifically asks for a boldbackground.)\H{config-connection} The Connection panelThe Connection panel allows you to configure options that apply tomore than one type of connection.\S{config-termtype} \q{Terminal-type string}\cfg{winhelp-topic}{connection.termtype}Most servers you might connect to with PuTTY are designed to beconnected to from lots of different types of terminal. In order tosend the right control sequences to each one, the server will needto know what type of terminal it is dealing with. Therefore, each ofthe SSH, Telnet and Rlogin protocols allow a text string to be sentdown the connection describing the terminal.PuTTY attempts to emulate the Unix \c{xterm} program, and by defaultit reflects this by sending \c{xterm} as a terminal-type string. Ifyou find this is not doing what you want - perhaps the remotesystem reports \q{Unknown terminal type} - you could try settingthis to something different, such as \c{vt220}.If you're not sure whether a problem is due to the terminal typesetting or not, you probably need to consult the manual for yourapplication or your server.\S{config-termspeed} \q{Terminal speeds}\cfg{winhelp-topic}{connection.termspeed}The Telnet, Rlogin, and SSH protocols allow the client to specifyterminal speeds to the server.This parameter does \e{not} affect the actual speed of the connection,which is always \q{as fast as possible}; it is just a hint that issometimes used by server software to modify its behaviour. Forinstance, if a slow speed is indicated, the server may switch to aless bandwidth-hungry display mode.The value is usually meaningless in a network environment, butPuTTY lets you configure it, in case you find the server is reactingbadly to the default value.The format is a pair of numbers separated by a comma, for instance,\c{38400,38400}. The first number represents the output speed(\e{from} the server) in bits per second, and the second is the inputspeed (\e{to} the server). (Only the first is used in the Rloginprotocol.)This option has no effect on Raw connections.\S{config-username} \q{Auto-login username}\cfg{winhelp-topic}{connection.username}All three of the SSH, Telnet and Rlogin protocols allow you tospecify what user name you want to log in as, without having to typeit explicitly every time. (Some Telnet servers don't support this.)In this box you can type that user name.\S{config-environ} Setting environment variables on the server\cfg{winhelp-topic}{telnet.environ}The Telnet protocol provides a means for the client to passenvironment variables to the server. Many Telnet servers havestopped supporting this feature due to security flaws, but PuTTYstill supports it for the benefit of any servers which have foundother ways around the security problems than just disabling thewhole mechanism.Version 2 of the SSH protocol also provides a similar mechanism,which is easier to implement without security flaws. Newer SSH2servers are more likely to support it than older ones.This configuration data is not used in the SSHv1, rlogin or rawprotocols.To add an environment variable to the list transmitted down theconnection, you enter the variable name in the \q{Variable} box,enter its value in the \q{Value} box, and press the \q{Add} button.To remove one from the list, select it in the list box and press\q{Remove}.\S{config-keepalive} Using keepalives to prevent disconnection\cfg{winhelp-topic}{connection.keepalive}If you find your sessions are closing unexpectedly (\q{Connectionreset by peer}) after they have been idle for a while, you mightwant to try using this option.Some network routers and firewalls need to keep track of allconnections through them. Usually, these firewalls will assume aconnection is dead if no data is transferred in either directionafter a certain time interval. This can cause PuTTY sessions to beunexpectedly closed by the firewall if no traffic is seen in thesession for some time.The keepalive option (\q{Seconds between keepalives}) allows you toconfigure PuTTY to send data through the session at regularintervals, in a way that does not disrupt the actual terminalsession. If you find your firewall is cutting idle connections off,you can try entering a non-zero value in this field. The value ismeasured in seconds; so, for example, if your firewall cutsconnections off after ten minutes then you might want to enter 300seconds (5 minutes) in the box.Note that keepalives are not always helpful. They help if you have afirewall which drops your connection after an idle period; but ifthe network between you and the server suffers from breaks inconnectivity then keepalives can actually make things worse. If asession is idle, and connectivity is temporarily lost between theendpoints, but the connectivity is restored before either side triesto send anything, then there will be no problem - neither endpointwill notice that anything was wrong. However, if one side does sendsomething during the break, it will repeatedly try to re-send, andeventually give up and abandon the connection. Then whenconnectivity is restored, the other side will find that the firstside doesn't believe there is an open connection any more.Keepalives can make this sort of problem worse, because theyincrease the proba
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -