Continue writing documentation. Looks like a long job :-(
[sgt/putty] / doc / config.but
CommitLineData
e5b0d077 1\C{config} Configuring PuTTY
2
55ba634a 3This chapter describes all the configuration options in PuTTY.
4
5PuTTY is configured using the control panel that comes up before you
6start a session. Some options can also be changed in the middle of a
7session, by selecting \e{Change Settings} from the window menu.
8
9\H{config-session} The Session panel
10
11The Session configuration panel contains the basic options you need
12to specify in order to open a session at all, and also allows you to
13save your settings to be reloaded later.
14
15\S{config-hostname} The host name section
16
17The top box on the Session panel, labelled \q{Specify your
18connection by host name}, contains the details that need to be
19filled in before PuTTY can open a session at all.
20
21\b The \e{Host Name} box is where you type the name, or the IP
22address, of the server you want to connect to.
23
24\b The \e{Protocol} radio buttons let you choose what type of
25connection you want to make: a raw connection, a Telnet connection,
26or an SSH connection. \#{ FIXME: link to sections on these? }
27
28\b The \e{Port} box lets you specify which port number on the server
29to connect to. If you select Telnet or SSH, this box will be filled
30in automatically to the usual value, and you will only need to
31change it if you have an unusual server. If you select Raw mode, you
32will almost certainly need to fill in the \e{Port} box.
33
34\S{config-saving} Loading and storing saved sessions
35
36The next part of the Session configuration panel allows you to save
37your preferred PuTTY options so they will appear automatically the
38next time you start PuTTY. It also allows you to create \e{saved
39sessions}, which contain a full set of configuration options plus a
40host name and protocol. A saved session contains all the information
41PuTTY needs to start exactly the session you want.
42
43\b To save your default settings: first set up the settings the way
44you want them saved. Then come back to the Session panel. Select the
45\q{Default Settings} entry in the saved sessions list, with a single
46click. Then press the \e{Save} button.
47
48\b To save a session: first go through the rest of the configuration
49box setting up all the options you want. Then come back to the
50Session panel. Enter a name for the saved session in the \e{Saved
51Sessions} input box. (The server name is often a good choice for a
52saved session name.) Then press the \e{Save} button. Your saved
53session name should now appear in the list box.
54
55\b To reload a saved session: single-click to select the session
56name in the list box, and then press the \e{Load} button. Your saved
57settings should all appear in the configuration panel.
58
59\b To modify a saved session: first load it as described above. Then
60make the changes you want. Come back to the Session panel,
61single-click to select the session name in the list box, and press
62the \e{Save} button. The new settings will be saved over the top of
63the old ones.
64
65\b To start a saved session immediately: double-click on the session
66name in the list box.
67
68\b To delete a saved session: single-click to select the session
69name in the list box, and then press the \e{Delete} button.
70
71Each saved session is independent of the Default Settings
72configuration. If you change your preferences and update Default
73Settings, you must also update every saved session separately.
74
75\S{config-closeonexit} \q{Close Window on Exit}
76
77Finally in the Session panel, there is a check box labelled \q{Close
78Window on Exit}. If this is turned on, the PuTTY session window will
79disappear as soon as the session inside it terminates. Otherwise,
80the window will remain on the desktop until you close it yourself,
81so you can still read and copy text out of it.
82
83\H{config-terminal} The Terminal panel
84
85The Terminal configuration panel allows you to control the behaviour
86of PuTTY's terminal emulation.
87
88\S{config-autowrap} \q{Auto wrap mode initially on}
89
90Auto wrap mode controls what happens when text printed in a PuTTY
91window reaches the right-hand edge of the window.
92
93With auto wrap mode on, if a long line of text reaches the
94right-hand edge, it will wrap over on to the next line so you can
95still see all the text. With auto wrap mode off, the cursor will
96stay at the right-hand edge of the screen, and all the characters in
97the line will be printed on top of each other.
98
99If you are running a full-screen application and you occasionally
100find the screen scrolling up when it looks as if it shouldn't, you
101could try turning this option off.
102
103Auto wrap mode can be turned on and off by control sequences sent by
104the server. This configuration option only controls the \e{default}
105state. If you modify this option in mid-session using \e{Change
106Settings}, you will need to reset the terminal \#{ FIXME } before
107the change takes effect.
108
109\S{config-decom} \q{DEC Origin Mode initially on}
110
111DEC Origin Mode is a minor option which controls how PuTTY
112interprets cursor-position control sequences sent by the server.
113
114The server can send a control sequence that restricts the scrolling
115region of the display. For example, in an editor, the server might
116reserve a line at the top of the screen and a line at the bottom,
117and might send a control sequence that causes scrolling operations
118to affect only the remaining lines.
119
120With DEC Origin Mode on, cursor coordinates are counted from the top
121of the scrolling region. With it turned off, cursor coordinates are
122counted from the top of the whole screen regardless of the scrolling
123region.
124
125It is unlikely you would need to change this option, but if you find
126a full-screen application is displaying pieces of text in what looks
127like the wrong part of the screen, you could try turning DEC Origin
128Mode on to see whether that helps.
129
130DEC Origin Mode can be turned on and off by control sequences sent by
131the server. This configuration option only controls the \e{default}
132state. If you modify this option in mid-session using \e{Change
133Settings}, you will need to reset the terminal \#{ FIXME } before
134the change takes effect.
135
136\S{config-crlf} \q{Implicit CR in every LF}
137
138Most servers send two control characters, CR and LF, to start a new
139line of the screen. The CR character makes the cursor return to the
140left-hand side of the screen. The LF character makes the cursor move
141one line down (and might make the screen scroll).
142
143Some servers only send LF, and expect the terminal to move the
144cursor over to the left automatically. If you come across a server
145that does this, you will see a stepped effect on the screen, like
146this:
147
148\c First line of text
149\c Second line
150\c Third line
151
152If this happens to you, try enabling the \q{Implicit CR in every LF}
153option, and things might go back to normal:
154
155\c First line of text
156\c Second line
157\c Third line
158
159\S{config-beep} \q{Beep enabled}
160
161This option lets you turn off beeps in PuTTY. If your server is
162beeping too much or attracting unwelcome attention, you can turn the
163beeps off.
164
165\S{config-erase} \q{Use background colour to erase screen}
166
167Not all terminals agree on what colour to turn the screen when the
168server sends a \q{clear screen} sequence. Some terminals believe the
169screen should always be cleared to the \e{default} background
170colour. Others believe the screen should be cleared to whatever the
171server has selected as a background colour.
172
173There exist applications that expect both kinds of behaviour.
174Therefore, PuTTY can be configured to do either.
175
176With this option disabled, screen clearing is always done in the
177default background colour. With this option enabled, it is done in
178the \e{current} background colour.
179
180\S{config-blink} \q{Enable blinking text}
181
182The server can ask PuTTY to display text that blinks on and off.
183This is very distracting, so PuTTY allows you to turn blinking text
184off completely.
185
186\S{config-localterm} \q{Use local terminal line discipline}
187
188Normally, every character you type into the PuTTY window is sent
189straight to the server.
190
191If you enable local terminal line discipline, this changes. PuTTY
192will let you edit a whole line at a time locally, and the line will
193only be sent to the server when you press Return. If you make a
194mistake, you can use the Backspace key to correct it before you
195press Return, and the server will never see the mistake.
196
197Since it would be hard to edit a line locally without being able to
198see it, local terminal line discipline also makes PuTTY echo what
199you type. This makes it ideal for use in raw mode \#{ FIXME } or
200when connecting to MUDs or talkers.
201
202\S{config-logging} Controlling session logging
203
204PuTTY has the ability to log the output from your session into a
205file. You might want this if you were saving a particular piece of
206output to mail to somebody, for example in a bug report.
207
208You can choose between:
209
210\b not logging anything (the default)
211
212\b logging only the printable characters in a session (ignoring
213control sequences to change colours or clear the screen)
214
215\b logging everything sent to the terminal by the server.
216
217You can turn logging on and off in mid-session using \e{Change
218Settings}.
219
220\H{config-keyboard} The Keyboard panel
221
222\S{config-backspace} Changing the action of the Backspace key
223
224\S{config-homeend} Changing the action of the Home and End keys
225
226\S{config-funkeys} Changing the action of the function keys and keypad
227
228\S{config-appcursor} Controlling Application Cursor Keys mode
229
230\S{config-appkeypad} Controlling Application Keypad mode
231
232\S{config-nethack} Using NetHack keypad mode
233
234\S{config-compose} Enabling a DEC-like Compose key
235
236\H{config-window} The Window panel
237
238\S{config-winsize} Setting the size of the PuTTY window
239
240\S{config-scrollback} Controlling scrollback
241
242\S{config-warnonclose} \q{Warn before closing window}
243
244\S{config-altf4} \q{Window closes on ALT-F4}
245
246\S{config-altspace} \q{System menu appears on ALT-Space}
247
248\S{config-altonly} \q{System menu appears on Alt alone}
249
250\S{config-alwaysontop} \q{Ensure window is always on top}
251
252\H{config-appearance} The Appearance panel
253
254\S{config-cursor} Controlling the appearance of the cursor
255
256\# this will look considerably less silly when we bring in
257\# underline-versus-block-versus-vertical-line cursor configuration
258\# and also allow the cursor to vanish on keypress a la Word. Until
259\# then, this box does look silly with only one thing in it. Deal.
260
261\S{config-font} Controlling the font used in the terminal window
262
263\S{config-title} Controlling the window title
264
265\H{config-translation} The Translation panel
266
267\S{config-linedraw} Line drawing characters
268
269\S{config-outputtrans} Character set translation of output data
270
271\S{config-inputtrans} Character set translation of input data
272
273\H{config-selection} The Selection panel
274
275\S{config-mouse} Changing the actions of the mouse buttons
276
277\S{config-charclasses} Configuring word-by-word selection
278
279\H{config-colours} The Colours panel
280
281\S{config-boldcolour} \q{Bolded text is a different colour}
282
283\S{config-logpalette} \q{Attempt to use logical palettes}
284
285\S{config-colourcfg} Adjusting the colours in the terminal window
286
287\H{config-connection} The Connection panel
288
289\S{config-termtype} \q{Terminal-type string}
290
291\S{config-username} \q{Auto-login username}
292
293\S{config-keepalive} Using keepalives to prevent disconnection
294
295\H{config-telnet} The Telnet panel
296
297\S{config-termspeed} \q{Terminal-speed string}
298
299\S{config-environ} Setting environment variables on the server
300
301\S{config-oldenviron} \q{Handling of OLD_ENVIRON ambiguity}
302
303\H{config-ssh} The SSH panel
304
305\S{config-command} Executing a specific command on the server
306
307\S{config-auth} SSH authentication options
308
309\S{config-protocol} SSH protocol options