Update the man-page.
[screen-lua.git] / src / doc / screen.1
blob9da825df9bfdae5477d9b677d1b0afa2dd2eec93
1 .\" vi:set wm=5
2 .TH SCREEN 1 "Aug 2003"
3 .if n .ds Q \&"
4 .if n .ds U \&"
5 .if t .ds Q ``
6 .if t .ds U ''
7 .UC 4
8 .SH NAME
9 screen \- screen manager with VT100/ANSI terminal emulation
12 .SH SYNOPSIS
13 .B screen
15 .B \-\fIoptions\fP
16 ] [
17 .B \fIcmd\fP
19 .B \fIargs\fP
20 ] ]
21 .br
22 .B screen \-r
23 [[\fIpid\fP\fB.\fP]\fItty\fP[\fB.\fP\fIhost\fP]]
24 .br
25 .B screen \-r
26 \fIsessionowner\fP\fB/\fP[[\fIpid\fP\fB.\fP]\fItty\fP[\fB.\fP\fIhost\fP]]
27 .ta .5i 1.8i
30 .SH DESCRIPTION
31 .I Screen
32 is a full-screen window manager that
33 multiplexes a physical terminal between several processes (typically
34 interactive shells).
35 Each virtual terminal provides the functions
36 of a DEC VT100 terminal and, in addition, several control functions
37 from the ISO 6429 (ECMA 48, ANSI X3.64) and ISO 2022 standards
38 (e.\|g. insert/delete line and support for multiple character sets).
39 There is a scrollback history buffer for each virtual terminal and a
40 copy-and-paste mechanism that allows moving text regions between
41 windows.
42 .PP
43 When
44 .I screen
45 is called, it creates a single window with a shell in it (or the specified
46 command) and then gets out of your way so that you can use the program as you
47 normally would.
48 Then, at any time, you can create new (full-screen) windows with other programs
49 in them (including more shells), kill existing windows, view a list of
50 windows, turn output logging on and off, copy-and-paste text between
51 windows, view the scrollback history, switch between windows
52 in whatever manner you wish, etc. All windows run their programs completely
53 independent of each other. Programs continue to run when their window
54 is currently not visible and even when the whole 
55 .I screen 
56 session is detached from the user's terminal.  When a program terminates,
57 .I screen
58 (per default) kills the window that contained it.
59 If this window was in the foreground, the display switches to the previous
60 window; if none are left,
61 .I screen
62 exits.
63 .PP
64 Everything you type is sent to the program running in the current window.
65 The only exception to this is the one keystroke that is used to initiate
66 a command to the window manager.
67 By default, each command begins with a control-a (abbreviated C-a from
68 now on), and is followed by one other keystroke.
69 The command character and all the key bindings can be fully customized
70 to be anything you like, though they are always two characters in length.
71 .PP
72 .I Screen
73 does not understand the prefix \*QC-\*U to mean control. 
74 Please use the caret notation (\*Q^A\*U instead of \*QC-a\*U) as arguments
75 to e.g. the 
76 .I escape
77 command or the \fI-e\fP option.
78 .I Screen
79 will also print out control characters in caret notation.
80 .PP
81 The standard way to create a new window is to type \*QC-a c\*U.
82 This creates a new window running a shell and switches to that
83 window immediately, regardless of the state of the process running
84 in the current window.
85 Similarly, you can create a new window with a custom command in it by
86 first binding the command to a keystroke (in your .screenrc file or at the
87 \*QC-a :\*U command line) and
88 then using it just like the \*QC-a c\*U command.
89 In addition, new windows can be created by running a command like:
90 .IP
91 screen emacs prog.c
92 .PP
93 from a shell prompt within a previously created window.
94 This will not run another copy of
95 .IR screen ,
96 but will instead supply the command name and its arguments to the window
97 manager (specified in the $STY environment variable) who will use it to
98 create the new window.
99 The above example would start the emacs editor (editing prog.c) and switch
100 to its window. - Note that you cannot transport environment variables from
101 the invoking shell to the application (emacs in this case), because it is
102 forked from the parent screen process, not from the invoking shell.
104 If \*Q/etc/utmp\*U is writable by
105 .IR screen ,
106 an appropriate record will be written to this file for each window, and
107 removed when the window is terminated.
108 This is useful for working with \*Qtalk\*U, \*Qscript\*U, \*Qshutdown\*U,
109 \*Qrsend\*U, \*Qsccs\*U and other similar programs that use the utmp
110 file to determine who you are. As long as
111 .I screen
112 is active on your terminal,
113 the terminal's own record is removed from the utmp file. See also \*QC-a L\*U.
116 .SH GETTING STARTED
117 Before you begin to use
118 .I screen
119 you'll need to make sure you have correctly selected your terminal type,
120 just as you would for any other termcap/terminfo program.
121 (You can do this by using
122 .IR tset
123 for example.)
125 If you're impatient and want to get started without doing a lot more reading,
126 you should remember this one command:  \*QC-a ?\*U.
127 Typing these two characters will display a list of the available
128 .I screen
129 commands and their bindings. Each keystroke is discussed in
130 the section \*QDEFAULT KEY BINDINGS\*U. The manual section \*QCUSTOMIZATION\*U
131 deals with the contents of your .screenrc.
133 If your terminal is a \*Qtrue\*U auto-margin terminal (it doesn't allow
134 the last position on the screen to be updated without scrolling the
135 screen) consider using a version of your terminal's termcap that has
136 automatic margins turned \fIoff\fP. This will ensure an accurate and
137 optimal update of the screen in all circumstances. Most terminals
138 nowadays have \*Qmagic\*U margins (automatic margins plus usable last
139 column). This is the VT100 style type and perfectly suited for
140 .IR screen .
141 If all you've got is a \*Qtrue\*U auto-margin terminal 
142 .I screen
143 will be content to use it, but updating a character put into the last
144 position on the screen may not be possible until the screen scrolls or
145 the character is moved into a safe position in some other way. This
146 delay can be shortened by using a terminal with insert-character
147 capability.
150 .SH "COMMAND-LINE OPTIONS"
151 Screen has the following command-line options:
152 .TP 5
153 .B \-a
154 include \fIall\fP capabilities (with some minor exceptions) in each
155 window's termcap, even if
156 .I screen
157 must redraw parts of the display in order to implement a function.
158 .TP 5
159 .B \-A
160 Adapt the sizes of all windows to the size of the current terminal.
161 By default,
162 .I screen
163 tries to restore its old window sizes when attaching to resizable terminals
164 (those with \*QWS\*U in its description, e.g. suncmd or some xterm).
165 .TP 5
166 .BI "\-c " file
167 override the default configuration file from \*Q$HOME/.screenrc\*U
168 to \fIfile\fP.
169 .TP 5
170 .BR \-d | \-D " [" \fIpid.tty.host ]
171 does not start
172 .IR screen ,
173 but detaches the elsewhere running
174 .I screen
175 session. It has the same effect as typing \*QC-a d\*U from
176 .IR screen 's
177 controlling terminal. \fB\-D\fP is the equivalent to the power detach key.
178 If no session can be detached, this option is ignored. In combination with the
179 \fB\-r\fP/\fB\-R\fP option more powerful effects can be achieved:
180 .TP 8
181 .B \-d \-r
182 Reattach a session and if necessary detach it first.
183 .TP 8
184 .B \-d \-R
185 Reattach a session and if necessary detach or even create it first.
186 .TP 8
187 .B \-d \-RR
188 Reattach a session and if necessary detach or create it. Use the first
189 session if more than one session is available.
190 .TP 8
191 .B \-D \-r
192 Reattach a session. If necessary detach and logout remotely first.
193 .TP 8
194 .B \-D \-R
195 Attach here and now. In detail this means: If a session is running, then
196 reattach. If necessary detach and logout remotely first.
197 If it was not running create it and notify the user. This is the
198 author's favorite.
199 .TP 8
200 .B \-D \-RR
201 Attach here and now. Whatever that means, just do it.
202 .IP "" 5
203 Note: It is always a good idea to check the status of your sessions by means of
204 \*Qscreen \-list\*U.
205 .TP 5
206 .BI "\-e " xy
207 specifies the command character to be \fIx\fP and the character generating a
208 literal command character to \fIy\fP (when typed after the command character).
209 The default is \*QC-a\*U and `a', which can be specified as \*Q-e^Aa\*U.
210 When creating a
211 .I screen
212 session, this option sets the default command character. In a multiuser
213 session all users added will start off with this command character. But
214 when attaching to an already running session, this option changes only
215 the command character of the attaching user.
216 This option is equivalent to either the commands \*Qdefescape\*U or
217 \*Qescape\*U respectively.
218 .TP 5
219 .BR \-f\fP ", " \-fn ", and " \-fa
220 turns flow-control on, off, or \*Qautomatic switching mode\*U.
221 This can also be defined through the \*Qdefflow\*U .screenrc command.
222 .TP 5
223 .BI "\-h " num
224 Specifies the history scrollback buffer to be \fInum\fP lines high.
225 .TP 5
226 .B \-i
227 will cause the interrupt key (usually C-c) to interrupt the display
228 immediately when flow-control is on.
229 See the \*Qdefflow\*U .screenrc command for details.
230 The use of this option is discouraged.
231 .TP 5
232 .BR \-l " and " \-ln
233 turns login mode on or off (for /etc/utmp updating).
234 This can also be defined through the \*Qdeflogin\*U .screenrc command.
235 .TP 5
236 .BR \-ls " [" \fImatch ]
237 .PD 0
238 .TP 5
239 .BR \-list " [" \fImatch ] 
241 does not start
242 .IR screen ,
243 but prints a list of
244 .I pid.tty.host
245 strings identifying your
246 .I screen
247 sessions.
248 Sessions marked `detached' can be resumed with \*Qscreen -r\*U. Those marked
249 `attached' are running and have a controlling terminal. If the session runs in 
250 multiuser mode, it is marked `multi'. Sessions marked as `unreachable' either
251 live on a different host or are `dead'.
252 An unreachable session is considered dead, when its name
253 matches either the name of the local host, or the specified parameter, if any.
254 See the \fB-r\fP flag for a description how to construct matches.
255 Sessions marked as `dead' should be thoroughly checked and removed. 
256 Ask your system administrator if you are not sure. Remove sessions with the 
257 \fB-wipe\fP option. 
258 .TP 5
259 .B \-L
260 tells
261 .I screen
262 to turn on automatic output logging for the windows.
263 .TP 5
264 .B \-m
265 causes
266 .I screen
267 to ignore the $STY environment variable. With \*Qscreen -m\*U creation of
268 a new session is enforced, regardless whether
269 .I screen
270 is called from within another
271 .I screen
272 session or not. This flag has a special meaning in connection
273 with the `-d' option:
274 .TP 8
275 .B \-d \-m
276 Start
277 .I screen
278 in \*Qdetached\*U mode. This creates a new session but doesn't
279 attach to it. This is useful for system startup scripts.
280 .TP 8
281 .B \-D \-m
282 This also starts screen in \*Qdetached\*U mode, but doesn't fork
283 a new process. The command exits if the session terminates.
284 .TP 5
285 .B \-O
286 selects a more optimal output mode for your terminal rather than true VT100
287 emulation (only affects auto-margin terminals without `LP').
288 This can also be set in your .screenrc by specifying `OP' in a \*Qtermcap\*U
289 command.
290 .TP 5
291 .BI "\-p " number_or_name
292 Preselect a window. This is useful when you want to reattach to a
293 specific window or you want to send a command via the \*Q-X\*U
294 option to a specific window. As with screen's select command, \*Q-\*U
295 selects the blank window. As a special case for reattach, \*Q=\*U
296 brings up the windowlist on the blank window. The command will not be
297 executed if the specified window could not be found.
298 .TP 5
299 .B \-q
300 Suppress printing of error messages. In combination with \*Q-ls\*U the exit 
301 value is as follows: 9 indicates a directory without sessions. 10 
302 indicates a directory with running but not attachable sessions. 11 (or more) 
303 indicates 1 (or more) usable sessions.
304 In combination with \*Q-r\*U the exit value is as follows: 10 indicates that 
305 there is no session to resume. 12 (or more) indicates that there are 2 (or 
306 more) sessions to resume and you should specify which one to choose. 
307 In all other cases \*Q-q\*U has no effect.
308 .TP 5
309 .B \-Q
310 Some commands now can be queried from a remote session using this
311 flag, e.g. 'screen -Q windows'. The commands will send the
312 response to the stdout of the querying process. If there was an
313 error in the command, then the querying process will exit with
314 a non-zero status.
316 The commands that can be queried now are:
317  \fBecho\fP
318  \fBinfo\fP
319  \fBlastmsg\fP
320  \fBnumber\fP
321  \fBselect\fP
322  \fBtime\fP
323  \fBtitle\fP
324  \fBwindows\fP
325 .TP 5
326 .BR \-r " [" \fIpid.tty.host ]
327 .PD 0
328 .TP 5
329 .BR \-r " \fIsessionowner/[" \fIpid.tty.host ]
331 resumes a detached
332 .I screen
333 session.  No other options (except combinations with \fB\-d\fP/\fB\-D\fP) may
334 be specified, though an optional prefix of [\fIpid.\fP]\fItty.host\fP
335 may be needed to distinguish between multiple detached
336 .I screen
337 sessions.  The second form is used to connect to another user's screen session
338 which runs in multiuser mode. This indicates that screen should look for
339 sessions in another user's directory. This requires setuid-root.
340 .TP 5
341 .B \-R
342 attempts to resume the first detached
343 .I screen
344 session it finds.  If successful, all other command-line options are ignored.
345 If no detached session exists, starts a new session using the specified
346 options, just as if
347 .B \-R
348 had not been specified. The option is set by default if
349 .I screen
350 is run as a login-shell (actually screen uses \*Q-xRR\*U in that case).
351 For combinations with the \fB\-d\fP/\fB\-D\fP option see there.
352 .TP 5
353 .BI "\-s " program 
354 sets the default shell to the program specified, instead of the value
355 in the environment variable $SHELL (or \*Q/bin/sh\*U if not defined).
356 This can also be defined through the \*Qshell\*U .screenrc command.
357 .TP 5
358 .BI "\-S " sessionname
359 When creating a new session, this option can be used to specify a
360 meaningful name for the session. This name identifies the session for
361 \*Qscreen -list\*U and \*Qscreen -r\*U actions. It substitutes the
362 default [\fItty.host\fP] suffix.
363 .TP 5
364 .BI "\-t " name
365 sets the title (a.\|k.\|a.) for the default shell or specified program.
366 See also the \*Qshelltitle\*U .screenrc command.
367 .TP 5
368 .B \-U
369 Run screen in UTF-8 mode. This option tells screen that your terminal
370 sends and understands UTF-8 encoded characters. It also sets the default
371 encoding for new windows to `utf8'.
372 .TP 5
373 .B \-v
374 Print version number.
375 .TP 5
376 .BR \-wipe " [" \fImatch ]
377 does the same as \*Qscreen -ls\*U, but removes destroyed sessions instead of
378 marking them as `dead'.
379 An unreachable session is considered dead, when its name matches either 
380 the name of the local host, or the explicitly given parameter, if any.
381 See the \fB-r\fP flag for a description how to construct matches.
382 .TP 5
383 .B \-x
384 Attach to a not detached
385 .I screen
386 session. (Multi display mode).
387 .I Screen
388 refuses to attach from within itself. 
389 But when cascading multiple screens, loops are not detected; take care.
390 .TP 5
391 .B \-X
392 Send the specified command to a running screen session. You can use
393 the \fB-d\fP or \fB-r\fP option to tell screen to look only for
394 attached or detached screen sessions. Note that this command doesn't
395 work if the session is password protected.
397 .SH "DEFAULT KEY BINDINGS"
398 .ta 12n 26n
399 As mentioned, each
400 .I screen
401 command consists of a
402 \*QC-a\*U followed by one other character.
403 For your convenience, all commands that are bound to lower-case letters are
404 also bound to their control character counterparts (with the exception
405 of \*QC-a a\*U; see below), thus, \*QC-a c\*U as well as \*QC-a C-c\*U can
406 be used to create a window. See section \*QCUSTOMIZATION\*U for a description
407 of the command.
409 .TP 26n
410 The following table shows the default key bindings:
411 .IP "\fBC-a '\fP        (select)"
412 Prompt for a window name or number to switch to.
413 .IP "\fBC-a ""\fP       (windowlist -b)"
414 Present a list of all windows for selection.
415 .IP "\fBC-a 0\fP        (select 0)"
416 .PD 0
417 .IP "\fB ... \fP           ..."
418 .IP "\fBC-a 9\fP        (select 9)"
419 .IP "\fBC-a -\fP        (select -)"
421 Switch to window number 0 \- 9, or to the blank window.
422 .IP "\fBC-a tab\fP      (focus)"
424 Switch the input focus to the next region.
425 See also \fIsplit, remove, only\fP.
426 .IP "\fBC-a C-a\fP      (other)"
427 Toggle to the window displayed previously.
428 Note that this binding defaults to the command character typed twice,
429 unless overridden.  For instance, if you use the option \*Q\fB\-e]x\fP\*U,
430 this command becomes \*Q]]\*U.
431 .IP "\fBC-a a\fP        (meta)"
432 Send the command character (C-a) to window. See \fIescape\fP command.
433 .IP "\fBC-a A\fP        (title)"
434 Allow the user to enter a name for the current window.
435 .IP "\fBC-a b\fP"
436 .PD 0
437 .IP "\fBC-a C-b\fP      (break)"
439 Send a break to window.
440 .IP "\fBC-a B\fP        (pow_break)"
441 Reopen the terminal line and send a break.
442 .IP "\fBC-a c\fP"
443 .PD 0
444 .IP "\fBC-a C-c\fP      (screen)"
446 Create a new window with a shell and switch to that window.
447 .IP "\fBC-a C\fP        (clear)"
448 Clear the screen.
449 .IP "\fBC-a d\fP"
450 .PD 0
451 .IP "\fBC-a C-d\fP      (detach)"
453 Detach
454 .I screen
455 from this terminal.
456 .IP "\fBC-a D D\fP      (pow_detach)"
457 Detach and logout.
458 .IP "\fBC-a f\fP"
459 .PD 0
460 .IP "\fBC-a C-f\fP      (flow)"
462 Toggle flow \fIon\fP, \fIoff\fP or \fIauto\fP.
463 .IP "\fBC-a F\fP        (fit)"
464 Resize the window to the current region size.
465 .IP "\fBC-a C-g\fP      (vbell)"
466 Toggles
467 .I screen's
468 visual bell mode.
469 .IP "\fBC-a h\fP        (hardcopy)"
471 Write a hardcopy of the current window to the file \*Qhardcopy.\fIn\fP\*U.
472 .IP "\fBC-a H\fP        (log)"
473 Begins/ends logging of the current window to the file \*Qscreenlog.\fIn\fP\*U.
474 .IP "\fBC-a i\fP"
475 .PD 0
476 .IP "\fBC-a C-i\fP      (info)"
478 Show info about this window.
479 .IP "\fBC-a k\fP"
480 .PD 0
481 .IP "\fBC-a C-k\fP      (kill)"
483 Destroy current window.
484 .IP "\fBC-a l\fP"
485 .PD 0
486 .IP "\fBC-a C-l\fP      (redisplay)"
488 Fully refresh current window.
489 .IP "\fBC-a L\fP        (login)"
490 Toggle this windows login slot. Available only if
491 .I screen
492 is configured to update the utmp database.
493 .IP "\fBC-a m\fP"
494 .PD 0
495 .IP "\fBC-a C-m\fP      (lastmsg)"
497 Repeat the last message displayed in the message line.
498 .IP "\fBC-a M\fP        (monitor)"
499 Toggles monitoring of the current window.
500 .IP "\fBC-a space\fP"
501 .PD 0
502 .IP "\fBC-a n\fP"
503 .IP "\fBC-a C-n\fP      (next)"
505 Switch to the next window.
506 .IP "\fBC-a N\fP        (number)"
507 Show the number (and title) of the current window.
508 .IP "\fBC-a backspace\fP"
509 .PD 0
510 .IP "\fBC-a h\fP"
511 .IP "\fBC-a p\fP"
512 .IP "\fBC-a C-p\fP      (prev)"
514 Switch to the previous window (opposite of \fBC-a n\fP).
515 .IP "\fBC-a q\fP"
516 .PD 0
517 .IP "\fBC-a C-q\fP      (xon)"
519 Send a control-q to the current window.
520 .IP "\fBC-a Q\fP        (only)"
521 Delete all regions but the current one.
522 See also \fIsplit, remove, focus\fP.
523 .IP "\fBC-a r\fP"
524 .PD 0
525 .IP "\fBC-a C-r\fP      (wrap)"
527 Toggle the current window's line-wrap setting (turn the current window's
528 automatic margins on and off).
529 .IP "\fBC-a s\fP"
530 .PD 0
531 .IP "\fBC-a C-s\fP      (xoff)"
533 Send a control-s to the current window.
534 .IP "\fBC-a S\fP        (split)"
535 Split the current region horizontally into two new ones.
536 See also \fIonly, remove, focus\fP.
537 .IP "\fBC-a t\fP"
538 .PD 0
539 .IP "\fBC-a C-t\fP      (time)"
541 Show system information.
542 .IP "\fBC-a v\fP        (version)"
544 Display the version and compilation date.
545 .IP "\fBC-a C-v\fP      (digraph)"
547 Enter digraph.
548 .IP "\fBC-a w\fP"
549 .PD 0
550 .IP "\fBC-a C-w\fP      (windows)"
552 Show a list of window.
553 .IP "\fBC-a W\fP        (width)"
554 Toggle 80/132 columns.
555 .IP "\fBC-a x\fP"
556 .PD 0
557 .IP "\fBC-a C-x\fP      (lockscreen)"
559 Lock this terminal.
560 .IP "\fBC-a X\fP        (remove)"
561 Kill the current region.
562 See also \fIsplit, only, focus\fP.
563 .IP "\fBC-a z\fP"
564 .PD 0
565 .IP "\fBC-a C-z\fP      (suspend)"
567 Suspend
568 .IR screen .
569 Your system must support BSD-style job-control.
570 .IP "\fBC-a Z\fP        (reset)"
571 Reset the virtual terminal to its \*Qpower-on\*U values.
572 .IP "\fBC-a .\fP        (dumptermcap)"
573 Write out a \*Q.termcap\*U file.
574 .IP "\fBC-a ?\fP        (help)"
575 Show key bindings.
576 .IP "\fBC-a C-\e\fP     (quit)"
577 Kill all windows and terminate
578 .IR screen .
579 .IP "\fBC-a :\fP        (colon)"
580 Enter command line mode.
581 .IP "\fBC-a [\fP"
582 .PD 0
583 .IP "\fBC-a C-[\fP"
584 .IP "\fBC-a esc\fP      (copy)"
586 Enter copy/scrollback mode.
587 .IP "\fBC-a C-]\fP"
588 .PD 0
589 .IP "\fBC-a ]\fP        (paste .)"
591 Write the contents of the paste buffer to the stdin queue of the
592 current window. 
593 .IP "\fBC-a {\fP
594 .PD 0
595 .IP "\fBC-a }\fP        (history)"
597 Copy and paste a previous (command) line.
598 .IP "\fBC-a >\fP        (writebuf)"
599 Write paste buffer to a file.
600 .IP "\fBC-a <\fP        (readbuf)"
601 Reads the screen-exchange file into the paste buffer.
602 .IP "\fBC-a =\fP        (removebuf)"
603 Removes the file used by \fBC-a <\fP and \fPC-a >\fP.
604 .IP "\fBC-a ,\fP        (license)"
605 Shows where
606 .I screen
607 comes from, where it went to and why you can use it.
608 .IP "\fBC-a _\fP        (silence)"
609 Start/stop monitoring the current window for inactivity.
610 .IP "\fBC-a |\fP        (split -v)"
611 Split the current region vertically into two new ones.
612 .IP "\fBC-a *\fP        (displays)"
613 Show a listing of all currently attached displays.
616 .SH CUSTOMIZATION
617 The \*Qsocket directory\*U defaults either to $HOME/.screen or simply to
618 /tmp/screens or preferably to /usr/local/screens chosen at compile-time. If
619 .I screen
620 is installed setuid-root, then the administrator
621 should compile
622 .I screen
623 with an adequate (not NFS mounted) socket directory. If
624 .I screen
625 is not running setuid-root, the user can specify any mode 700 directory
626 in the environment variable $SCREENDIR.
628 When
629 .I screen
630 is invoked, it executes initialization commands from the files
631 \*Q/usr/local/etc/screenrc\*U and
632 \*Q.screenrc\*U in the user's home directory. These are the \*Qprogrammer's
633 defaults\*U that can be overridden in the following ways: for the
634 global screenrc file 
635 .I screen
636 searches for the environment variable $SYSSCREENRC (this override feature
637 may be disabled at compile-time). The user specific
638 screenrc file is searched in $SCREENRC, then $HOME/.screenrc.
639 The command line option \fB-c\fP takes
640 precedence over the above user screenrc files.
642 Commands in these files are used to set options, bind functions to
643 keys, and to automatically establish one or more windows at the
644 beginning of your
645 .I screen
646 session.
647 Commands are listed one per line, with empty lines being ignored.
648 A command's arguments are separated by tabs or spaces, and may be
649 surrounded by single or double quotes.
650 A `#' turns the rest of the line into a comment, except in quotes.
651 Unintelligible lines are warned about and ignored.
652 Commands may contain references to environment variables. The 
653 syntax is the shell-like "$VAR " or "${VAR}". Note that this causes 
654 incompatibility with previous 
655 .I screen
656 versions, as now the '$'-character has to be protected with '\e' if no
657 variable substitution shall be performed. A string in single-quotes is also
658 protected from variable substitution.
660 Two configuration files are shipped as examples with your screen distribution:
661 \*Qetc/screenrc\*U and \*Qetc/etcscreenrc\*U. They contain a number of
662 useful examples for various commands.
664 Customization can also be done 'on-line'. To enter the command mode type
665 `C-a :'. Note that commands starting with \*Qdef\*U change default values,
666 while others change current settings.
668 The following commands are available:
669 .sp 
670 .ne 3
671 .BI acladd " usernames"
672 .RI [ crypted-pw ]
674 .BI addacl " usernames"
676 Enable users to fully access this screen session. \fIUsernames\fP can be one
677 user or a comma separated list of users. This command enables to attach to the
678 .I screen
679 session and performs the equivalent of `aclchg \fIusernames\fP +rwx \&"#?\&"'.
680 executed. To add a user with restricted access, use the `aclchg' command below.
681 If an optional second parameter is supplied, it should be a crypted password
682 for the named user(s). `Addacl' is a synonym to `acladd'.
683 Multi user mode only.
684 .sp 
685 .ne 3
686 .BI aclchg " usernames permbits list"
688 .BI chacl " usernames permbits list"
690 Change permissions for a comma separated list of users. Permission bits are
691 represented as `r', `w' and `x'. Prefixing `+' grants the permission, `-' 
692 removes it. The third parameter is a comma separated list of commands and/or
693 windows (specified either by number or title). The special list `#' refers to 
694 all windows, `?' to all commands. if \fIusernames\fP consists of a single `*',
695 all known users are affected.
696 A command can be executed when the user has the `x' bit for it.
697 The user can type input to a window when he has its `w' bit set and no other
698 user obtains a writelock for this window. 
699 Other bits are currently ignored.  
700 To withdraw the writelock from another user in window 2:
701 `aclchg \fIusername\fP -w+w 2'.
702 To allow read-only access to the session: `aclchg \fIusername\fP
703 -w \&"#\&"'. As soon as a user's name is known to 
704 .I screen 
705 he can attach to the session and (per default) has full permissions for all 
706 command and windows. Execution permission for the acl commands, `at' and others
707 should also be removed or the user may be able to regain write permission.
708 Rights of the special username
709 .B nobody
710 cannot be changed (see the \*Qsu\*U command).
711 `Chacl' is a synonym to `aclchg'.
712 Multi user mode only.
714 .ne 3
715 .BI acldel " username"
717 Remove a user from
718 .IR screen 's
719 access control list. If currently attached, all the
720 user's displays are detached from the session. He cannot attach again.
721 Multi user mode only.
723 .ne 3
724 .BI aclgrp " username"
725 .RI [ groupname ]
727 Creates groups of users that share common access rights. The name of the 
728 group is the username of the group leader. Each member of the group inherits
729 the permissions that are granted to the group leader. That means, if a user
730 fails an access check, another check is made for the group leader.
731 A user is removed from all groups the special value \*Qnone\*U is used for
732 .IR groupname .
733 If the second parameter is omitted all groups the user is in are listed.
735 .ne 3
736 .B aclumask
737 .RI [[ users ] +bits 
738 .RI |[ users ] -bits " .... ]"
740 .B umask
741 .RI [[ users ] +bits 
742 .RI |[ users ] -bits " .... ]"
744 This specifies the access other users have to windows that will be created by
745 the caller of the command.
746 .I Users
747 may be no, one or a comma separated list of known usernames. If no users are
748 specified, a list of all currently known users is assumed. 
749 .I Bits
750 is any combination of access control bits allowed defined with the 
751 \*Qaclchg\*U command. The special username \*Q?\*U predefines the access
752 that not yet known users will be granted to any window initially.
753 The special username \*Q??\*U predefines the access that not yet known 
754 users are granted to any command. 
755 Rights of the special username
756 .B nobody
757 cannot be changed (see the \*Qsu\*U command).
758 `Umask' is a synonym to `aclumask'.
760 .ne 3
761 .BI activity " message"
763 When any activity occurs in a background window that is being monitored,
764 .I screen
765 displays a notification in the message line.
766 The notification message can be re-defined by means of the \*Qactivity\*U
767 command.
768 Each occurrence of `%' in \fImessage\fP is replaced by
769 the number of the window in which activity has occurred,
770 and each occurrence of `^G' is replaced by the definition for bell
771 in your termcap (usually an audible bell).
772 The default message is
774         'Activity in window %n'
776 Note that monitoring is off for all windows by default, but can be altered
777 by use of the \*Qmonitor\*U command (C-a M).
779 .ne 3
780 .BR "allpartial on" | off
782 If set to on, only the current cursor line is refreshed on window change.
783 This affects all windows and is useful for slow terminal lines. The 
784 previous setting of full/partial refresh for each window is restored
785 with \*Qallpartial off\*U.  This is a global flag that immediately takes effect
786 on all windows overriding the \*Qpartial\*U settings. It does not change the
787 default redraw behavior of newly created windows.
789 .ne 3
790 .BR "altscreen on" | off
792 If set to on, "alternate screen" support is enabled in virtual terminals,
793 just like in xterm.  Initial setting is `off'.
795 .ne 3
796 .BR "at " "[\fIidentifier\fP][" "#\fP|\fP*\fP|\fP%\fP] "
797 .IR "command " [ args " ... ]"
799 Execute a command at other displays or windows as if it had been entered there.
800 \*QAt\*U changes the context (the `current window' or `current display'
801 setting) of the command. If the first parameter describes a 
802 non-unique context, the command will be executed multiple times. If the first 
803 parameter is of the form `\fIidentifier\fP*' then identifier is matched against
804 user names.  The command is executed once for each display of the selected 
805 user(s). If the first parameter is of the form `\fIidentifier\fP%' identifier 
806 is matched against displays. Displays are named after the ttys they 
807 attach. The prefix `/dev/' or `/dev/tty' may be omitted from the identifier.
808 If \fIidentifier\fP has a `#' or nothing appended it is matched against 
809 window numbers and titles. Omitting an identifier in front of the `#', `*' or 
810 `%'-character selects all users, displays or windows because a prefix-match is
811 performed. Note that on the affected display(s) a short message will describe
812 what happened. Permission is checked for initiator of the \*Qat\*U command,
813 not for the owners of the affected display(s).
814 Note that the '#' character works as a comment introducer when it is preceded by
815 whitespace. This can be escaped by prefixing a '\e'. 
816 Permission is checked for the initiator of the \*Qat\*U command, not for the
817 owners of the affected display(s).
819 Caveat: 
820 When matching against windows, the command is executed at least 
821 once per window. Commands that change the internal arrangement of windows
822 (like \*Qother\*U) may be called again. In shared windows the command will
823 be repeated for each attached display. Beware, when issuing toggle commands
824 like \*Qlogin\*U!
825 Some commands (e.g. \*Qprocess\*U) require that 
826 a display is associated with the target windows.  These commands may not work
827 correctly under \*Qat\*U looping over windows.
829 .ne 3
830 .BI "attrcolor " attrib
831 .RI [ "attribute/color-modifier" ]
833 This command can be used to highlight attributes by changing the color of
834 the text. If the attribute
835 .I attrib
836 is in use, the specified attribute/color modifier is also applied. If no
837 modifier is given, the current one is deleted. See the \*QSTRING ESCAPES\*U
838 chapter for the syntax of the modifier. Screen understands two
839 pseudo-attributes, \*Qi\*U stands for high-intensity foreground
840 color and \*QI\*U for high-intensity background color.
842 Examples:
844 attrcolor b "R"
846 Change the color to bright red if bold text is to be printed.
848 attrcolor u "-u b"
850 Use blue text instead of underline.
852 attrcolor b ".I"
854 Use bright colors for bold text. Most terminal emulators do this
855 already.
857 attrcolor i "+b"
859 Make bright colored text also bold.
861 .ne 3
862 .BR "autodetach on" | off
864 Sets whether 
865 .I screen
866 will automatically detach upon hangup, which
867 saves all your running programs until they are resumed with a
868 .B "screen -r"
869 command.
870 When turned off, a hangup signal will terminate 
871 .I screen
872 and all the processes it contains. Autodetach is on by default.
874 .ne 3
875 .BR "autonuke on" | off
877 Sets whether a clear screen sequence should nuke all the output
878 that has not been written to the terminal. See also
879 \*Qobuflimit\*U.
881 .ne 3
882 .BI "backtick " id
883 .I lifespan
884 .I autorefresh
885 .I cmd
886 .I args...
888 .BI "backtick " id
890 Program the backtick command with the numerical id \fIid\fP.
891 The output of such a command is used for substitution of the
892 \*Q%`\*U string escape. The specified \fIlifespan\fP is the number
893 of seconds the output is considered valid. After this time, the
894 command is run again if a corresponding string escape is encountered.
895 The \fIautorefresh\fP parameter triggers an
896 automatic refresh for caption and hardstatus strings after the
897 specified number of seconds. Only the last line of output is used
898 for substitution.
900 If both the \fIlifespan\fP and the \fIautorefresh\fP parameters
901 are zero, the backtick program is expected to stay in the
902 background and generate output once in a while.
903 In this case, the command is executed right away and screen stores
904 the last line of output. If a new line gets printed screen will
905 automatically refresh the hardstatus or the captions.
907 The second form of the command deletes the backtick command
908 with the numerical id \fIid\fP.
910 .ne 3
911 .BR "bce " [ on | off ]
913 Change background-color-erase setting. If \*Qbce\*U is set to on, all
914 characters cleared by an erase/insert/scroll/clear operation
915 will be displayed in the current background color. Otherwise
916 the default background color is used.
918 .ne 3
919 .B bell_msg
920 .RI [ message ]
922 When a bell character is sent to a background window,
923 .I screen
924 displays a notification in the message line.
925 The notification message can be re-defined by this command.
926 Each occurrence of `%' in \fImessage\fP is replaced by
927 the number of the window to which a bell has been sent,
928 and each occurrence of `^G' is replaced by the definition for bell
929 in your termcap (usually an audible bell).
930 The default message is
932         'Bell in window %n'
934 An empty message can be supplied to the \*Qbell_msg\*U command to suppress
935 output of a message line (bell_msg "").
936 Without parameter, the current message is shown.
938 .ne 3
939 .BI "bind "
940 .RB [ -c
941 .IR class ]
942 .I key 
943 .RI [ command " [" args ]]
945 Bind a command to a key.
946 By default, most of the commands provided by
947 .I screen
948 are bound to one or more keys as indicated in the \*QDEFAULT KEY BINDINGS\*U
949 section, e.\|g. the
950 command to create a new window is bound to \*QC-c\*U and \*Qc\*U.
951 The \*Qbind\*U command can be used to redefine the key bindings and to
952 define new bindings.
953 The \fIkey\fP argument is either a single character, a two-character sequence
954 of the form \*Q^x\*U (meaning \*QC-x\*U), a backslash followed by an octal
955 number (specifying the ASCII code of the character), or a backslash followed
956 by a second character, such as \*Q\e^\*U or \*Q\e\e\*U.
957 The argument can also be quoted, if you like.
958 If no further argument is given, any previously established binding
959 for this key is removed.
960 The \fIcommand\fP argument can be any command listed in this section.
962 If a command class is specified via the \*Q-c\*U option, the key
963 is bound for the specified class. Use the \*Qcommand\*U command
964 to activate a class. Command classes can be used to create multiple
965 command keys or multi-character bindings.
967 Some examples:
970         bind ' ' windows
971         bind ^k
972         bind k
973         bind K kill
974         bind ^f screen telnet foobar
975         bind \e033 screen -ln -t root -h 1000 9 su
978 would bind the space key to the command that displays a list
979 of windows (so that the command usually invoked by \*QC-a C-w\*U
980 would also be available as \*QC-a space\*U). The next three lines
981 remove the default kill binding from \*QC-a C-k\*U and \*QC-a k\*U. 
982 \*QC-a K\*U is then bound to the kill command. Then it
983 binds \*QC-f\*U to the command \*Qcreate a window with a TELNET
984 connection to foobar\*U, and bind \*Qescape\*U to the command
985 that creates an non-login window with a.\|k.\|a. \*Qroot\*U in slot #9, with
986 a superuser shell and a scrollback buffer of 1000 lines.
989         bind -c demo1 0 select 10
990         bind -c demo1 1 select 11
991         bind -c demo1 2 select 12
992         bindkey "^B" command -c demo1
995 makes \*QC-b 0\*U select window 10, \*QC-b 1\*U window 11, etc.
998         bind -c demo2 0 select 10
999         bind -c demo2 1 select 11
1000         bind -c demo2 2 select 12
1001         bind - command -c demo2
1004 makes \*QC-a - 0\*U select window 10, \*QC-a - 1\*U window 11, etc.
1006 .ne 3
1007 .B bindkey
1008 .RB [ -d ]
1009 .RB [ -m ]
1010 .RB [ -a ]
1011 .RB [[ -k | -t ]
1012 .I string
1013 .RI [ "cmd args" ]]
1015 This command manages screen's input translation tables. Every
1016 entry in one of the tables tells screen how to react if a certain
1017 sequence of characters is encountered. There are three tables:
1018 one that should contain actions programmed by the user, one for
1019 the default actions used for terminal emulation and one for
1020 screen's copy mode to do cursor movement. See section
1021 \*QINPUT TRANSLATION\*U for a list of default key bindings.
1023 If the
1024 .B -d
1025 option is given, bindkey modifies the default table,
1026 .B -m
1027 changes the copy mode table
1028 and with neither option the user table is selected.
1029 The argument
1030 .I string
1031 is the sequence of characters to which an action is bound. This
1032 can either be a fixed string or a termcap keyboard capability
1033 name (selectable with the
1034 .B -k
1035 option).
1037 Some keys on a VT100 terminal can send a different
1038 string if application mode is turned on (e.g the cursor keys).
1039 Such keys have two entries in the translation table. You can
1040 select the application mode entry by specifying the
1041 .B -a
1042 option.
1045 .B -t
1046 option tells screen not to do inter-character timing. One cannot
1047 turn off the timing if a termcap capability is used.
1049 .I Cmd
1050 can be any of screen's commands with an arbitrary number of
1051 .IR args .
1053 .I cmd
1054 is omitted the key-binding is removed from the table.
1056 Here are some examples of keyboard bindings:
1059         bindkey -d
1061 Show all of the default key bindings. The application mode entries
1062 are marked with [A].
1065         bindkey -k k1 select 1
1067 Make the "F1" key switch to window one.
1070         bindkey -t foo stuff barfoo
1072 Make "foo" an abbreviation of the word "barfoo". Timeout is disabled
1073 so that users can type slowly.
1076         bindkey "\e024" mapdefault
1078 This key-binding makes \*Q^T\*U an escape character for key-bindings. If
1079 you did the above \*Qstuff barfoo\*U binding, you can enter the word
1080 \*Qfoo\*U by typing \*Q^Tfoo\*U. If you want to insert a \*Q^T\*U
1081 you have to press the key twice (i.e., escape the escape binding).
1084         bindkey -k F1 command
1086 Make the F11 (not F1!) key an alternative screen
1087 escape (besides ^A).
1089 .ne 3
1090 .B break
1091 .RI [ duration ]
1093 Send a break signal for \fIduration\fP*0.25 seconds to this window.
1094 For non-Posix systems the time interval may be rounded up to full seconds.
1095 Most useful if a character device is attached to the window rather than 
1096 a shell process (See also chapter \*QWINDOW TYPES\*U). The maximum duration of
1097 a break signal is limited to 15 seconds.
1099 .ne 3
1100 .B blanker
1102 Activate the screen blanker. First the screen is cleared. If no blanker
1103 program is defined, the cursor is turned off, otherwise, the 
1104 program is started and it's output is written to the screen.
1105 The screen blanker is killed with the first keypress, the read key
1106 is discarded.
1108 This command is normally used together with the \*Qidle\*U command.
1110 .ne 3
1111 .B blankerprg
1112 .RI [ "program args" ]
1114 Defines a blanker program. Disables the blanker program if an
1115 empty argument is given. Shows the currently set blanker program if no
1116 arguments are given.
1118 .ne 3
1119 .B breaktype
1120 .RI [ tcsendbreak | TIOCSBRK
1121 .RI | TCSBRK ]
1123 Choose one of the available methods of generating a break signal for
1124 terminal devices. This command should affect the current window only.
1125 But it still behaves identical to \*Qdefbreaktype\*U. This will be changed in
1126 the future.
1127 Calling \*Qbreaktype\*U with no parameter displays the break method for the
1128 current window.
1130 .ne 3
1131 .B bufferfile
1132 .RI [ exchange-file ]
1134 Change the filename used for reading and writing with the paste buffer.
1135 If the optional argument to the \*Qbufferfile\*U command is omitted, 
1136 the default setting (\*Q/tmp/screen-exchange\*U) is reactivated.
1137 The following example will paste the system's password file into 
1139 .I screen
1140 window (using the paste buffer, where a copy remains):
1143         C-a : bufferfile /etc/passwd
1144         C-a < C-a ]
1145         C-a : bufferfile
1148 .ne 3
1149 .BR "c1 " [ on | off ]
1151 Change c1 code processing. \*QC1 on\*U tells screen to treat
1152 the input characters between 128 and 159 as control functions.
1153 Such an 8-bit code is normally the same as ESC followed by the
1154 corresponding 7-bit code. The default setting is to process c1
1155 codes and can be changed with the \*Qdefc1\*U command. 
1156 Users with fonts that have usable characters in the
1157 c1 positions may want to turn this off.
1159 .ne 3
1160 .BR "caption always" | splitonly
1161 .RI [ string ]
1163 .B "caption string"
1164 .RI [ string ]
1166 This command controls the display of the window captions. Normally
1167 a caption is only used if more than one window is shown on the
1168 display (split screen mode). But if the type is set to
1169 .B always
1170 screen shows a caption even if only one window is displayed. The default
1172 .BR splitonly .
1174 The second form changes the text used for the caption. You can use
1175 all escapes from the \*QSTRING ESCAPES\*U chapter. Screen uses
1176 a default of `%3n %t'.
1178 You can mix both forms by providing a string as an additional argument.
1180 .ne 3
1181 .BI "charset " set
1183 Change the current character set slot designation and charset
1184 mapping.  The first four character of
1185 .I set
1186 are treated as charset designators while the fifth and sixth
1187 character must be in range '0' to '3' and set the GL/GR charset
1188 mapping. On every position a '.' may be used to indicate that
1189 the corresponding charset/mapping should not be changed
1190 (\fIset\fP is padded to six characters internally by appending '.'
1191 chars). New windows have "BBBB02" as default charset, unless a
1192 \*Qencoding\*U command is active.
1194 The current setting can be viewed with the \*Qinfo\*U command.
1196 .ne 3
1197 .B chdir
1198 .RI [ directory ]
1200 Change the \fIcurrent directory\fP of
1201 .I screen
1202 to the specified directory or, if called without an argument,
1203 to your home directory (the value of the environment variable $HOME).
1204 All windows that are created by means of the \*Qscreen\*U command
1205 from within \*Q.screenrc\*U or by means of \*QC-a : screen ...\*U
1206 or \*QC-a c\*U use this as their default directory.
1207 Without a chdir command, this would be the directory from which
1208 .I screen
1209 was invoked.
1210 Hardcopy and log files are always written to the \fIwindow's\fP default
1211 directory, \fInot\fP the current directory of the process running in the
1212 window.
1213 You can use this command multiple times in your .screenrc to start various
1214 windows in different default directories, but the last chdir value will
1215 affect all the windows you create interactively.
1217 .ne 3
1218 .B clear
1220 Clears the current window and saves its image to the scrollback buffer.
1222 .ne 3
1223 .B colon
1224 .RI [ prefix ]
1226 Allows you to enter \*Q.screenrc\*U command lines. Useful 
1227 for on-the-fly modification of key bindings, 
1228 specific window creation and changing settings. Note that the \*Qset\*U
1229 keyword no longer exists! Usually commands affect the current window rather 
1230 than default settings for future windows. Change defaults with commands
1231 starting with 'def...'. 
1233 If you consider this as the `Ex command mode' of 
1234 .IR screen ,
1235 you may regard \*QC-a esc\*U (copy mode) as its `Vi command mode'.
1236 .sp 
1237 .ne 3
1238 .B command
1239 .RB [ -c
1240 .IR class ]
1242 This command has the same effect as typing the screen escape
1243 character (^A). It is probably only useful for key bindings.
1244 If the \*Q-c\*U option is given, select the specified command
1245 class.  See also \*Qbind\*U and \*Qbindkey\*U.
1246 .sp 
1247 .ne 3
1248 .BR "compacthist " [ on | off ]
1250 This tells screen whether to suppress trailing blank lines when
1251 scrolling up text into the history buffer.
1252 .sp 
1253 .ne 3
1254 .BR "console " [ on | off ]
1256 Grabs or un-grabs the machines console output to a window.
1257 .IR Note :
1258 Only the owner of /dev/console can grab the console output.
1259 This command is only available if the machine supports the ioctl TIOCCONS.
1261 .ne 3
1262 .B copy
1264 Enter copy/scrollback mode. This allows you to copy text from the current
1265 window and its history into the paste buffer. In this mode a vi-like
1266 `full screen editor' is active:
1268 .IR "Movement keys" :
1270 .in +4n
1271 .ti -2n
1272 \fBh\fP, \fBj\fP, \fBk\fP, \fBl\fP move the cursor line by line or 
1273 column by column.
1275 .ti -2n
1276 \fB0\fP, \fB^\fP and \fB$\fP move to the leftmost column, to the first or last
1277 non-whitespace character on the line.
1279 .ti -2n
1280 \fBH\fP, \fBM\fP and \fBL\fP move the cursor to the leftmost column
1281 of the top, center or bottom line of the window. 
1283 .ti -2n
1284 \fB+\fP and \fB\-\fP positions one line up and down.
1286 .ti -2n
1287 \fBG\fP moves to the specified absolute line (default: end of buffer).
1288 .br 
1289 .ti -2n
1290 \fB|\fP moves to the specified absolute column.
1292 .ti -2n
1293 \fBw\fP, \fBb\fP, \fBe\fP move the cursor word by word.
1294 .br 
1295 .ti -2n
1296 \fBB\fP, \fBE\fP move the cursor WORD by WORD (as in vi).
1297 .br 
1298 .ti -2n
1299 .\"\fBf\fP,\fBt\fP, \fBF\fP, \fBT\fP move the cursor forward/backward to the next occurence of the target.
1300 \fBf/F\fP, \fBt/T\fP move the cursor forward/backward to the next occurence of the target. (eg, '3fy' will 
1301 move the cursor to the 3rd 'y' to the right.)
1303 .ti -2n
1304 \fB;\fP \fB,\fP Repeat the last f/F/t/T command in the same/opposite direction.
1306 .ti -2n
1307 \fBC-u\fP and \fBC-d\fP scroll the display up/down by the specified amount of 
1308 lines while preserving the cursor position. (Default: half screen-full). 
1310 .ti -2n
1311 \fBC-b\fP and \fBC-f\fP scroll the display up/down a full screen.
1313 .ti -2n
1314 \fBg\fP moves to the beginning of the buffer.
1316 .ti -2n
1317 \fB%\fP jumps to the specified percentage of the buffer.
1319 .ti -4n
1321 .IR Note :
1323 Emacs style movement keys can be customized by a .screenrc command.
1324 (E.\|g. markkeys "h=^B:l=^F:$=^E") There is no simple method for a full 
1325 emacs-style keymap, as this involves multi-character codes.
1328 .ti -4n
1329 .IR Marking :
1331 The copy range is specified by setting two marks. The text between these marks 
1332 will be highlighted. Press 
1334 .ti -2n
1335 \fBspace\fP to set the first or second mark
1336 respectively.
1338 .ti -2n
1339 \fBY\fP and \fBy\fP used to mark one whole line or to mark from 
1340 start of line.
1342 .ti -2n
1343 \fBW\fP marks exactly one word. 
1344 .br 
1345 .ti -4n
1346 .IR "Repeat count" :
1348 Any of these commands can be prefixed with a repeat count number by pressing 
1349 digits 
1351 .ti -2n
1352 \fB0\fP..\fB9\fP which
1353 is taken as a repeat count. 
1355 Example: \*QC-a C-[ H 10 j 5 Y\*U will copy lines
1356 11 to 15 into the paste buffer.
1358 .ti -4n
1359 .IR Searching :
1360 .ti -2n
1361 \fB/\fP \fIVi\fP-like search forward.
1362 .ti -2n
1363 \fB?\fP \fIVi\fP-like search backward.
1364 .ti -2n 
1365 \fBC-a s\fP \fIEmacs\fP style incremental search forward.
1366 .ti -2n
1367 \fBC-r\fP \fIEmacs\fP style reverse i-search.
1368 .ti -4n
1369 .IR Specials :
1371 There are however some keys that act differently than in
1372 .IR vi .
1373 .I Vi
1374 does not allow one to yank rectangular blocks of text, but
1375 .I screen
1376 does. Press 
1378 .ti -2n
1379 \fBc\fP or \fBC\fP to set the left or right margin respectively. If no repeat count is
1380 given, both default to the current cursor position. 
1382 Example: Try this on a rather full text screen: 
1383 \*QC-a [ M 20 l SPACE c 10 l 5 j C SPACE\*U.
1385 This moves one to the middle line of the screen, moves in 20 columns left,
1386 marks the beginning of the paste buffer, sets the left column, moves 5 columns
1387 down, sets the right column, and then marks the end of
1388 the paste buffer. Now try:
1390 \*QC-a [ M 20 l SPACE 10 l 5 j SPACE\*U
1392 and notice the difference in the amount of text copied.
1394 .ti -2n
1395 \fBJ\fP joins lines. It toggles between 4 modes: lines separated by a
1396 newline character (012), lines glued seamless, lines separated by a single
1397 whitespace and comma separated lines. Note that you can prepend the newline
1398 character with a carriage return character, by issuing a \*Qcrlf on\*U.
1400 .ti -2n
1401 \fBv\fP is for all the
1402 .I vi 
1403 users with \*Q:set numbers\*U \- it toggles the left margin between column 9
1404 and 1. Press 
1406 .ti -2n
1407 \fBa\fP before the final space key to toggle in append mode. Thus
1408 the contents of the paste buffer will not be overwritten, but is appended to.
1410 .ti -2n
1411 \fBA\fP toggles in append mode and sets a (second) mark.
1413 .ti -2n
1414 \fB>\fP sets the (second) mark and writes the contents of the paste buffer to
1415 the screen-exchange file (/tmp/screen-exchange per default) once copy-mode is 
1416 finished. 
1418 This example demonstrates how to dump the whole scrollback buffer 
1419 to that file: \*QC-A [ g SPACE G $ >\*U.
1421 .ti -2n
1422 \fBC-g\fP gives information about the current line and column.
1424 .ti -2n
1425 \fBx\fP exchanges the first mark and the current cursor position. You
1426 can use this to adjust an already placed mark.
1428 .ti -2n
1429 \fB@\fP does nothing. Does not even exit copy mode.
1431 .ti -2n
1432 All keys not described here exit copy mode.
1433 .in -4n
1435 .ne 3
1436 .B copy_reg
1437 .RI [ key ]
1439 No longer exists, use \*Qreadreg\*U instead.
1441 .ne 3
1442 .BR "crlf " [ on | off ]
1444 This affects the copying of text regions with the `C-a [' command. If it is set
1445 to `on', lines will be separated by the two character sequence `CR' - `LF'. 
1446 Otherwise (default) only `LF' is used.
1447 When no parameter is given, the state is toggled.
1449 .ne 3
1450 .BR "debug on" | off
1452 Turns runtime debugging on or off. If 
1453 .I screen
1454 has been compiled with option -DDEBUG debugging available and is turned on per 
1455 default. Note that this command only affects debugging output from the main 
1456 \*QSCREEN\*U process correctly. Debug output from attacher processes can only
1457 be turned off once and forever.
1459 .ne 3
1460 .BR "defc1 on" | off
1462 Same as the \fBc1\fP command except that the default setting for new
1463 windows is changed. Initial setting is `on'.
1465 .ne 3
1466 .BR "defautonuke on" | off
1468 Same as the \fBautonuke\fP command except that the default setting for new displays is changed. Initial setting is `off'.
1469 Note that you can use the special `AN' terminal capability if you
1470 want to have a dependency on the terminal type.
1472 .ne 3
1473 .BR "defbce on" | off
1475 Same as the \fBbce\fP command except that the default setting for new
1476 windows is changed. Initial setting is `off'.
1478 .ne 3
1479 .B defbreaktype
1480 .RI [ tcsendbreak | TIOCSBRK
1481 .RI | TCSBRK ]
1483 Choose one of the available methods of generating a break signal for
1484 terminal devices. The preferred methods are 
1485 .IR tcsendbreak " and " TIOCSBRK .
1486 The third, 
1487 .IR TCSBRK , 
1488 blocks the complete 
1489 .I screen
1490 session for the duration
1491 of the break, but it may be the only way to generate long breaks. 
1492 .IR Tcsendbreak " and " TIOCSBRK
1493 may or may not produce long breaks with spikes (e.g. 4 per
1494 second). This is not only system-dependent, this also differs between
1495 serial board drivers.
1496 Calling \*Qdefbreaktype\*U with no parameter displays the current setting.
1498 .ne 3
1499 .BR "defcharset " [ \fIset ]
1501 Like the \fBcharset\fP command except that the default setting for
1502 new windows is changed. Shows current default if called without
1503 argument.
1505 .ne 3
1506 .BI "defescape " xy
1508 Set the default command characters. This is equivalent to the 
1509 \*Qescape\*U except that it is useful multiuser sessions only. In a
1510 multiuser session \*Qescape\*U changes the command character of the
1511 calling user, where \*Qdefescape\*U changes the default command
1512 characters for users that will be added later.
1514 .ne 3
1515 .BR "defflow on" | off | auto 
1516 .RB [ interrupt ]
1518 Same as the \fBflow\fP command except that the default setting for new windows 
1519 is changed. Initial setting is `auto'.
1520 Specifying \*Qdefflow auto interrupt\*U is the same as the command-line options
1521 .B \-fa
1523 .BR \-i . 
1525 .ne 3
1526 .BR "defgr on" | off
1528 Same as the \fBgr\fP command except that the default setting for new
1529 windows is changed. Initial setting is `off'.
1531 .ne 3
1532 .BR "defhstatus " [ \fIstatus ]
1534 The hardstatus line that all new windows will get is set to
1535 .I status\fR.
1536 This command is useful to make the hardstatus of every window
1537 display the window number or title or the like.
1538 .I Status
1539 may contain the same directives as in the window messages, but
1540 the directive escape character is '^E' (octal 005) instead of '%'.
1541 This was done to make a misinterpretation of program generated
1542 hardstatus lines impossible.
1543 If the parameter
1544 .I status
1545 is omitted, the current default string is displayed.
1546 Per default the hardstatus line of new windows is empty.
1548 .ne 3
1549 .BI "defencoding " enc
1551 Same as the \fBencoding\fP command except that the default setting for new
1552 windows is changed. Initial setting is the encoding taken from the
1553 terminal.
1555 .ne 3
1556 .BR "deflog on" | off
1558 Same as the \fBlog\fP command except that the default setting for new windows 
1559 is changed. Initial setting is `off'.
1561 .ne 3
1562 .BR "deflogin on" | off
1564 Same as the \fBlogin\fP command except that the default setting for new windows 
1565 is changed. This is initialized with `on' as distributed (see config.h.in).
1567 .ne 3
1568 .BI "defmode " mode
1570 The mode of each newly allocated pseudo-tty is set to \fImode\fP.
1571 \fIMode\fP is an octal number.
1572 When no \*Qdefmode\*U command is given, mode 0622 is used.
1574 .ne 3
1575 .BR "defmonitor on" | off
1577 Same as the \fBmonitor\fP command except that the default setting for new 
1578 windows is changed. Initial setting is `off'.
1580 .ne 3
1581 .BR "defmousetrack on" | off
1583 Same as the \fBmousetrack\fP command except that the default setting for new
1584 windows is changed. Initial setting is `off'.
1586 .ne 3
1587 .B defnonblock 
1588 .BR on | off | \fInumsecs
1590 Same as the \fBnonblock\fP command except that the default setting for
1591 displays is changed. Initial setting is `off'.
1593 .ne 3
1594 .BI "defobuflimit " limit
1596 Same as the \fBobuflimit\fP command except that the default setting for new displays is changed. Initial setting is 256 bytes.
1597 Note that you can use the special 'OL' terminal capability if you
1598 want to have a dependency on the terminal type.
1600 .ne 3
1601 .BI "defscrollback " num
1603 Same as the \fBscrollback\fP command except that the default setting for new 
1604 windows is changed. Initial setting is 100.
1606 .ne 3
1607 .BI "defshell " command
1609 Synonym to the \fBshell\fP command. See there.
1611 .ne 3
1612 .BR "defsilence on" | off
1614 Same as the \fBsilence\fP command except that the default setting for new
1615 windows is changed. Initial setting is `off'.
1617 .ne 3
1618 .BI "defslowpaste " msec"
1620 Same as the \fBslowpaste\fP command except that the default setting for new
1621 windows is changed. Initial setting is 0 milliseconds, meaning `off'.
1623 .ne 3
1624 .BR "defutf8 on" | off
1626 Same as the \fButf8\fP command except that the default setting for new
1627 windows is changed. Initial setting is `on' if screen was started with
1628 \*Q-U\*U, otherwise `off'.
1630 .ne 3
1631 .BR "defwrap on" | off
1633 Same as the \fBwrap\fP command except that the default setting for new 
1634 windows is changed. Initially line-wrap is on and can be toggled with the 
1635 \*Qwrap\*U command (\*QC-a r\*U) or by means of "C-a : wrap on|off".
1637 .ne 3
1638 .BR "defwritelock on" | off | auto
1640 Same as the \fBwritelock\fP command except that the default setting for new 
1641 windows is changed. Initially writelocks will off.
1643 .ne 3
1644 .BR "defzombie " [\fIkeys\fP]
1646 Synonym to the \fBzombie\fP command. Both currently change the default.
1647 See there.
1649 .ne 3
1650 .B detach
1651 .RB [ -h ]
1653 Detach the 
1654 .I screen
1655 session (disconnect it from the terminal and put it into the background).
1656 This returns you to the shell where you invoked
1657 .IR screen .
1658 A detached
1659 .I screen
1660 can be resumed by invoking
1661 .I screen
1662 with the
1663 .B \-r
1664 option (see also section \*QCOMMAND-LINE OPTIONS\*U). The
1665 .B \-h
1666 option tells screen to immediately close the connection to the
1667 terminal (\*Qhangup\*U).
1669 .ne 3
1670 .B dinfo
1672 Show what screen thinks about your terminal. Useful if you want to know
1673 why features like color or the alternate charset don't work.
1675 .ne 3
1676 .B displays
1678 Shows a tabular listing of all currently connected user front-ends (displays).
1679 This is most useful for multiuser sessions.
1681 .ne 3
1682 .BR "digraph " [ \fIpreset [ \fI unicode-value ] ]
1684 This command prompts the user for a digraph sequence. The next
1685 two characters typed are looked up in a builtin table and the
1686 resulting character is inserted in the input stream. For example,
1687 if the user enters 'a"', an a-umlaut will be inserted. If the
1688 first character entered is a 0 (zero),
1689 .I screen
1690 will treat the following characters (up to three) as an octal
1691 number instead.  The optional argument
1692 .I preset
1693 is treated as user input, thus one can create an \*Qumlaut\*U key.
1694 For example the command "bindkey ^K digraph '"'" enables the user
1695 to generate an a-umlaut by typing CTRL-K a.
1696 When a non-zero
1697 .I unicode-value
1698 is specified, a new digraph is created with the specified preset. The digraph is unset
1699 if a zero value is provided for the
1700 .I unicode-value.
1702 .ne 3
1703 .B dumptermcap
1705 Write the termcap entry for the virtual terminal optimized for the currently
1706 active window to the file \*Q.termcap\*U in the user's 
1707 \*Q$HOME/.screen\*U directory (or wherever 
1708 .I screen
1709 stores its sockets. See the \*QFILES\*U section below).
1710 This termcap entry is identical to the value of the environment variable
1711 $TERMCAP that is set up by
1712 .I screen
1713 for each window. For terminfo based systems you will need to run a converter
1714 like 
1715 .IR captoinfo
1716 and then compile the entry with 
1717 .IR tic .
1719 .ne 3
1720 .BR "echo " [ -n ]
1721 .I message
1723 The echo command may be used to annoy 
1724 .I screen
1725 users with a 'message of the
1726 day'. Typically installed in a global /local/etc/screenrc. 
1727 The option \*Q-n\*U may be used to suppress the line feed.
1728 See also \*Qsleep\*U.
1729 Echo is also useful for online checking of environment variables.
1731 .ne 3
1732 .BI "encoding " enc
1733 .RI [ enc ]
1735 Tell 
1736 .I screen 
1737 how to interpret the input/output. The first argument
1738 sets the encoding of the current window. Each window can emulate
1739 a different encoding. The optional second parameter overwrites
1740 the encoding of the connected terminal. It should never be
1741 needed as screen uses the locale setting to detect the encoding.
1742 There is also a way to select a terminal encoding depending on
1743 the terminal type by using the \*QKJ\*U termcap entry.
1745 Supported encodings are eucJP, SJIS, eucKR, eucCN, Big5, GBK, KOI8-R,
1746 CP1251, UTF-8, ISO8859-2, ISO8859-3, ISO8859-4, ISO8859-5, ISO8859-6,
1747 ISO8859-7, ISO8859-8, ISO8859-9, ISO8859-10, ISO8859-15, jis.
1749 See also \*Qdefencoding\*U, which changes the default setting of a new
1750 window.
1752 .ne 3
1753 .BI "escape " xy
1755 Set the command character to \fIx\fP and the character generating a literal
1756 command character (by triggering the \*Qmeta\*U command) to \fIy\fP (similar
1757 to the \-e option).
1758 Each argument is either a single character, a two-character sequence
1759 of the form \*Q^x\*U (meaning \*QC-x\*U), a backslash followed by an octal
1760 number (specifying the ASCII code of the character), or a backslash followed
1761 by a second character, such as \*Q\e^\*U or \*Q\e\e\*U.
1762 The default is \*Q^Aa\*U.
1764 .ne 3
1765 .B eval
1766 .I command1
1767 .RI [ command2
1768 .IR ... ]
1770 Parses and executes each argument as separate command.
1772 .ne 3
1773 .B exec
1774 .RI [[ fdpat ]
1775 .IR "newcommand " [ "args ..." ]]
1777 Run a unix subprocess (specified by an executable path \fInewcommand\fP and its 
1778 optional arguments) in the current window. The flow of data between 
1779 newcommands stdin/stdout/stderr, the process originally started in the window 
1780 (let us call it "application-process") and screen itself (window) is 
1781 controlled by the file descriptor pattern fdpat.
1782 This pattern is basically a three character sequence representing stdin, stdout
1783 and stderr of newcommand. A dot (.) connects the file descriptor
1785 .IR screen .
1786 An exclamation mark (!) causes the file
1787 descriptor to be connected to the application-process. A colon (:) combines
1788 both.
1789 User input will go to newcommand unless newcommand receives the 
1790 application-process' 
1791 output (fdpats first character is `!' or `:') or a pipe symbol (|) is added 
1792 (as a fourth character) to the end of fdpat.
1794 Invoking `exec' without arguments shows name and arguments of the currently
1795 running subprocess in this window. Only one subprocess a time can be running
1796 in each window.
1798 When a subprocess is running the `kill' command will affect it instead of the
1799 windows process.
1801 Refer to the postscript file `doc/fdpat.ps' for a confusing illustration
1802 of all 21 possible combinations. Each drawing shows the digits 2,1,0
1803 representing the three file descriptors of newcommand. The box marked
1804 `W' is the usual pty that has the application-process on its slave side.
1805 The box marked `P' is the secondary pty that now has
1806 .I screen
1807 at its master side.
1809 Abbreviations: 
1811 Whitespace between the word `exec' and fdpat and the command 
1812 can be omitted. Trailing dots and a fdpat consisting only of dots can be 
1813 omitted. A simple `|' is synonymous for the pattern `!..|'; the word exec can
1814 be omitted here and can always be replaced by `!'.
1816 Examples:
1818 exec ... /bin/sh
1820 exec /bin/sh
1822 !/bin/sh
1824 Creates another shell in the same window, while the original shell is still 
1825 running. Output of both shells is displayed and user input is sent to the new
1826 /bin/sh.
1828 exec !.. stty 19200
1830 exec ! stty 19200
1832 !!stty 19200
1834 Set the speed of the window's tty. If your stty command operates on stdout, 
1835 then add another `!'.
1837 exec !..| less
1839 |less
1841 This adds a pager to the window output. The special character `|' is needed to
1842 give the user control over the pager although it gets its input from the 
1843 window's process. This works, because
1844 .I less
1845 listens on stderr (a behavior that
1846 .I screen
1847 would not expect without the `|') 
1848 when its stdin is not a tty. 
1849 .I Less 
1850 versions newer than 177 fail miserably here; good old
1851 .I pg
1852 still works.
1854 !:sed -n s/.*Error.*/\e007/p
1856 Sends window output to both, the user and the sed command. The sed inserts an
1857 additional bell character (oct. 007) to the window output seen by
1858 .IR screen .
1859 This will cause "Bell in window x" messages, whenever the string "Error"
1860 appears in the window.
1862 .ne 3
1863 .B fit
1865 Change the window size to the size of the current region. This
1866 command is needed because screen doesn't adapt the window size
1867 automatically if the window is displayed more than once.
1869 .ne 3
1870 .B flow
1871 .RB [ on | off | "auto\fR]\fP"
1873 Sets the flow-control mode for this window.
1874 Without parameters it cycles the current window's flow-control setting from 
1875 "automatic" to "on" to "off".
1876 See the discussion on \*QFLOW-CONTROL\*U later on in this document for full 
1877 details and note, that this is subject to change in future releases.
1878 Default is set by `defflow'.
1880 .ne 3
1881 .BR "focus " [ up | down | top | bottom ]
1883 Move the input focus to the next region. This is done in a cyclic
1884 way so that the top region is selected after the bottom one. If
1885 no subcommand is given it defaults to `down'. `up' cycles in the
1886 opposite order, `top' and `bottom' go to the top and bottom
1887 region respectively. Useful bindings are (j and k as in vi)
1889     bind j focus down
1890     bind k focus up
1891     bind t focus top
1892     bind b focus bottom
1894 Note that \fBk\fP is traditionally bound to the \fIkill\fP command.
1896 .ne 3
1897 .BI "focusminsize [ ( " width "|max|_ ) ( " height "|max|_ ) ]"
1899 This forces any currently selected region to be automatically
1900 resized at least a certain \fIwidth\fP and \fIheight\fP. All
1901 other surrounding regions will be resized in order to accomodate.
1902 This constraint follows everytime the \*Qfocus\*U command is
1903 used. The \*Qresize\*U command can be used to increase either
1904 dimension of a region, but never below what is set with
1905 \*Qfocusminsize\*U. The underscore `_' is a synonym for
1906 \fBmax\fP. Setting a \fIwidth\fP and \fIheight\fP of `0 0'
1907 (zero zero) will undo any constraints and allow for manual resizing.
1908 Without any parameters, the minimum width and height is shown.
1910 .ne 3
1911 .BR "gr " [ on | off ]
1913 Turn GR charset switching on/off. Whenever screen sees an input
1914 character with the 8th bit set, it will use the charset stored in the
1915 GR slot and print the character with the 8th bit stripped. The
1916 default (see also \*Qdefgr\*U) is not to process GR switching because
1917 otherwise the ISO88591 charset would not work.
1919 .ne 3
1920 .BI group
1921 .RI [ grouptitle ]
1923 Change or show the group the current window belongs to. Windows can
1924 be moved around between different groups by specifying the name of
1925 the destination group. Without specifying a group, the title of the
1926 current group is displayed.
1928 .ne 3
1929 .B hardcopy
1930 .RB [ -h ]
1931 .RI [ file ]
1933 Writes out the currently displayed image to the file \fIfile\fP,
1934 or, if no filename is specified, to \fIhardcopy.n\fP in the
1935 default directory, where \fIn\fP is the number of the current window. 
1936 This either appends or overwrites the file if it exists. See below.
1937 If the option \fB-h\fP is specified, dump also the contents of the
1938 scrollback buffer.
1940 .ne 3
1941 .BR "hardcopy_append on" | off
1943 If set to "on", 
1944 .I screen
1945 will append to the "hardcopy.n" files created by the command \*QC-a h\*U, 
1946 otherwise these files are overwritten each time.
1947 Default is `off'.
1949 .ne 3
1950 .BI "hardcopydir "directory
1952 Defines a directory where hardcopy files will be placed. If unset, hardcopys
1953 are dumped in
1954 .IR screen 's
1955 current working directory.
1957 .ne 3
1958 .BR "hardstatus " [ on | off ]
1960 .BR "hardstatus \fR[\fBalways\fR]\fBlastline" | message | ignore
1961 .RI [ string ]
1963 .B "hardstatus string"
1964 .RI [ string ]
1966 This command configures the use and emulation of the terminal's
1967 hardstatus line. The first form
1968 toggles whether
1969 .I screen
1970 will use the hardware status line to display messages. If the
1971 flag is set to `off', these messages
1972 are overlaid in reverse video mode at the display line. The default
1973 setting is `on'.
1975 The second form tells 
1976 .I screen 
1977 what to do if the terminal doesn't
1978 have a hardstatus line (i.e. the termcap/terminfo capabilities
1979 "hs", "ts", "fs" and "ds" are not set). If the type
1980 \*Qlastline\*U is used, 
1981 .I screen 
1982 will reserve the last line of the
1983 display for
1984 the hardstatus. \*Qmessage\*U uses 
1985 .I screen's
1986 message mechanism and
1987 \*Qignore\*U tells 
1988 .I screen 
1989 never to display the hardstatus.
1990 If you prepend the word \*Qalways\*U to the type (e.g., \*Qalwayslastline\*U), 
1991 .I screen 
1992 will use the type even if the terminal supports a hardstatus.
1994 The third form specifies the contents of the hardstatus line.  '%h' is
1995 used as default string, i.e., the stored hardstatus of the current
1996 window (settable via \*QESC]0;<string>^G\*U or \*QESC_<string>ESC\e\*U)
1997 is displayed.  You can customize this to any string you like including
1998 the escapes from the \*QSTRING ESCAPES\*U chapter. If you leave out
1999 the argument
2000 .IR string ,
2001 the current string is displayed.
2003 You can mix the second and third form by providing the string as
2004 additional argument.
2006 .ne 3
2007 .B height
2008 .RB [ -w | -d ]
2009 .RI [ lines " [" cols ]]
2011 Set the display height to a specified number of lines. When no argument
2012 is given it toggles between 24 and 42 lines display. You can also
2013 specify a width if you want to change both values.
2015 .B -w
2016 option tells screen to leave the display size unchanged and just set
2017 the window size,
2018 .B -d
2019 vice versa.
2021 .ne 3
2022 .B help
2023 .RB [ -c
2024 .IR class ]
2026 Not really a online help, but 
2027 displays a help 
2028 .I screen 
2029 showing you all the key bindings.
2030 The first pages list all the internal commands followed by their current
2031 bindings.
2032 Subsequent pages will display the custom commands, one command per key.
2033 Press space when you're done reading each page, or return to exit early.
2034 All other characters are ignored. If the \*Q-c\*U option is given,
2035 display all bound commands for the specified command class.
2036 See also \*QDEFAULT KEY BINDINGS\*U section.
2038 .ne 3
2039 .B history
2041 Usually users work with a shell that allows easy access to previous commands.
2042 For example csh has the command \*Q!!\*U to repeat the last command executed. 
2043 .I Screen
2044 allows you to have a primitive way of re-calling \*Qthe command that
2045 started ...\*U: You just type the first letter of that command, then hit
2046 `C-a {' and
2047 .I screen
2048 tries to find a previous line that matches with the `prompt character' 
2049 to the left of the cursor. This line is pasted into this window's input queue.
2050 Thus you have a crude command history (made up by the visible window and its
2051 scrollback buffer). 
2053 .ne 3
2054 .BI "hstatus " status
2056 Change the window's hardstatus line to the string \fIstatus\fP.
2058 .ne 3
2059 .B idle
2060 .RI [ timeout
2061 .RI [ "cmd args" ]]
2063 Sets a command that is run after the specified number of seconds
2064 inactivity is reached. This command will normally be the \*Qblanker\*U
2065 command to create a screen blanker, but it can be any screen command.
2066 If no command is specified, only the timeout is set. A timeout of
2067 zero (or the special timeout \fBoff\fP) disables the timer.
2068 If no arguments are given, the current settings are displayed.
2070 .ne 3
2071 .BR "ignorecase " [ on | off ]
2073 Tell screen to ignore the case of characters in searches. Default is
2074 `off'.
2076 .ne 3
2077 .B info
2079 Uses the message line to display some information about the current window:
2080 the cursor position in the form \*Q(column,row)\*U starting with \*Q(1,1)\*U,
2081 the terminal width and height plus the size of the scrollback buffer in lines, 
2082 like in \*Q(80,24)+50\*U, the current state of window XON/XOFF flow control
2083 is shown like this (See also section FLOW CONTROL):
2086   +flow     automatic flow control, currently on.
2087   -flow     automatic flow control, currently off.
2088   +(+)flow  flow control enabled. Agrees with automatic control.
2089   -(+)flow  flow control disabled. Disagrees with automatic control.
2090   +(-)flow  flow control enabled. Disagrees with automatic control.
2091   -(-)flow  flow control disabled. Agrees with automatic control.
2094 The current line wrap setting (`+wrap' indicates enabled, `\-wrap' not) is
2095 also shown. The flags `ins', `org', `app', `log', `mon' or `nored' are 
2096 displayed when the window is in insert mode, origin mode, 
2097 application-keypad mode, has output logging,
2098 activity monitoring or partial redraw enabled.
2100 The currently active character set (\fIG0\fP, \fIG1\fP, \fIG2\fP,
2101 or \fIG3\fP) and in square brackets the terminal character sets that are
2102 currently designated as \fIG0\fP through \fIG3\fP is shown. If the window
2103 is in UTF-8 mode, the string \*QUTF-8\*U is shown instead.
2105 Additional modes depending on the type of the window are displayed at the end of the status line (See also chapter \*QWINDOW TYPES\*U).
2107 If the state machine of the terminal emulator is in a non-default state,
2108 the info line is started with a string identifying the current state.
2110 For system information use the \*Qtime\*U command.
2112 .ne 3
2113 .BR ins_reg " [" \fIkey ]
2115 No longer exists, use \*Qpaste\*U instead.
2117 .ne 3
2118 .B kill
2120 Kill current window.
2121 .br 
2122 If there is an `exec' command running then it is killed. Otherwise the process
2123 (shell) running in the window receives a HANGUP condition, 
2124 the window structure is removed and 
2125 .I screen 
2126 (your display) switches to another
2127 window.  When the last window is destroyed, 
2128 .I screen
2129 exits.
2130 After a kill 
2131 .I screen 
2132 switches to the previously displayed window.
2134 Note:
2135 .I Emacs
2136 users should keep this command in mind, when killing a line.
2137 It is recommended not to use \*QC-a\*U as the
2138 .I screen
2139 escape key or to rebind kill to \*QC-a K\*U.
2141 .ne 3
2142 .B lastmsg
2144 Redisplay the last contents of the message/status line.
2145 Useful if you're typing when a message appears, because  the message goes 
2146 away when you press a key (unless your terminal has a hardware status line).
2147 Refer to the commands \*Qmsgwait\*U and \*Qmsgminwait\*U for fine tuning.
2149 .ne 3
2150 .BR "layout new " [\fItitle\fP]
2152 Create a new layout. The screen will change to one whole region
2153 and be switched to the blank window. From here, you build the
2154 regions and the windows they show as you desire. The new layout
2155 will be numbered with the smallest available integer, starting
2156 with zero. You can optionally give a title to your new layout.
2157 Otherwise, it will have a default title of \*Qlayout\*U. You
2158 can always change the title later by using the command
2159 \fBlayout title\fP.
2161 .ne 3
2162 .BR "layout remove " [\fIn|title\fP]
2164 Remove, or in other words, delete the specified layout. Either
2165 the number or the title can be specified. Without either
2166 specification, \fIscreen\fP will remove the current layout.
2168 Removing a layout does not affect your set windows or regions.
2170 .ne 3
2171 .B layout next
2173 Switch to the next layout available
2175 .ne 3
2176 .B layout prev
2178 Switch to the previous layout available
2180 .ne 3
2181 .BR "layout select " [\fIn|title\fP]
2183 Select the desired layout. Either the number or the title can
2184 be specified. Without either specification, \fIscreen\fP will
2185 prompt and ask which screen is desired. To see which layouts are
2186 available, use the \fBlayout show\fP command.
2188 .ne 3
2189 .B layout show
2191 List on the message line the number(s) and title(s) of the available
2192 layout(s). The current layout is flagged.
2194 .ne 3
2195 .BR "layout title " [\fItitle\fP]
2197 Change or display the title of the current layout. A string given
2198 will be used to name the layout. Without any options, the current
2199 title and number is displayed on the message line.
2201 .ne 3
2202 .BR "layout number " [\fIn\fP]
2204 Change or display the number of the current layout. An integer given
2205 will be used to number the layout. Without any options, the current
2206 number and title is displayed on the message line.
2208 .ne 3
2209 .BR "layout attach " [\fItitle\fP|\fB:last\fP]
2211 Change or display which layout to reattach back to. The default is
2212 \fB:last\fP, which tells \fIscreen\fP to reattach back to the last
2213 used layout just before detachment. By supplying a title, You can
2214 instruct \fIscreen\fP to reattach to a particular layout regardless
2215 which one was used at the time of detachment. Without any options,
2216 the layout to reattach to will be shown in the message line.
2218 .ne 3
2219 .BR "layout save " [\fIn|title\fP]
2221 Remember the current arrangement of regions. When used, \fIscreen\fP
2222 will remember the arrangement of vertically and horizontally split
2223 regions. This arrangement is restored when a \fIscreen\fP session
2224 is reattached or switched back from a different layout. If the
2225 session ends or the \fIscreen\fP process dies, the layout
2226 arrangements are lost. The \fBlayout dump\fP command should help
2227 in this siutation. If a number
2228 or title is supplied, \fIscreen\fP will remember the arrangement of
2229 that particular layout. Without any options, \fIscreen\fP will
2230 remember the current layout.
2232 Saving your regions can be done automatically by using the
2233 \fBlayout autosave\fP command.
2235 .ne 3
2236 .BR "layout autosave " [\fBon|off\fP]
2238 Change or display the status of automatcally saving layouts. The
2239 default is \fBon\fP, meaning when \fIscreen\fP is detached or
2240 changed to a different layout, the arrangement of regions and windows
2241 will be remembered at the time of change and restored upon return.
2242 If autosave is set to \fBoff\fP, that arrangement will only be
2243 restored to either to the last manual save, using \fBlayout save\fP,
2244 or to when the layout was first created, to a single region with
2245 a single window. Without either an \fBon\fP or \fBoff\fP, the
2246 current status is displayed on the message line.
2248 .ne 3
2249 .BR "layout dump " [\fIfilename\fP]
2251 Write to a file the order of splits made in the current layout. This 
2252 is useful to recreate the order of your regions used in your current
2253 layout. Only the current layout is recorded. While the order of the
2254 regions are recorded, the sizes of those regions and which windows
2255 correspond to which regions are not. If no filename is specified,
2256 the default is \fIlayout-dump\fP, saved in the directory that the
2257 \fIscreen\fP process was started in. If the file already exists,
2258 \fBlayout dump\fP will append to that file. As an example:
2261         C-a : layout dump /home/user/.screenrc
2264 will save or append the layout to the user's \fI.screenrc\fP file.
2266 .ne 3
2267 .B license
2269 Display the disclaimer page. This is done whenever
2270 .I screen
2271 is started without options, which should be often enough. See also 
2272 the \*Qstartup_message\*U command.
2274 .ne 3
2275 .B lockscreen
2277 Lock this display.
2278 Call a screenlock program (/local/bin/lck or /usr/bin/lock or a builtin if no
2279 other is available). Screen does not accept any command keys until this program
2280 terminates. Meanwhile processes in the windows may continue, as the windows 
2281 are in the `detached' state. The screenlock program may be changed through the
2282 environment variable $LOCKPRG (which must be set in the shell from which 
2283 .I screen
2284 is started) and is executed with the user's uid and gid.
2286 Warning: 
2287 When you leave other shells unlocked and you have no password set on           
2288 .IR screen ,
2289 the lock is void: One could easily re-attach from an unlocked
2290 shell. This feature should rather be called `lockterminal'.
2292 .ne 3
2293 .BR "log " [ on | off ]
2295 Start/stop writing output of the current window to a file 
2296 \*Qscreenlog.\fIn\fP\*U in the window's default directory, where \fIn\fP 
2297 is the number of the current window. This filename can be changed with
2298 the `logfile' command. If no parameter is given, the state
2299 of logging is toggled. The session log is appended to the previous contents 
2300 of the file if it already exists. The current contents and the contents 
2301 of the scrollback history are not included in the session log.
2302 Default is `off'.
2304 .ne 3
2305 .BI "logfile " filename
2307 .BI "logfile flush " secs
2309 Defines the name the log files will get. The default is
2310 \*Qscreenlog.%n\*U. The second form changes the number of seconds
2311 .I screen
2312 will wait before flushing the logfile buffer to the file-system. The
2313 default value is 10 seconds.
2315 .ne 3
2316 .BR "login " [ on | off ]
2318 Adds or removes the entry in the utmp database file for the current window.
2319 This controls if the window is `logged in'.
2320 When no parameter is given, the login state of the window is toggled.
2321 Additionally to that toggle, it is convenient having a `log in' and a `log out'
2322 key. E.\|g. `bind I login on' and `bind O login off' will map these
2323 keys to be C-a I and C-a O.
2324 The default setting (in config.h.in) should be \*Qon\*U for a 
2325 .I screen
2326 that runs under suid-root.
2327 Use the \*Qdeflogin\*U command to change the default login state for new 
2328 windows. Both commands are only present when 
2329 .I screen
2330 has been compiled with utmp support.
2332 .ne 3
2333 .BR "logtstamp " [ on | off ]
2335 .B "logtstamp after"
2336 .RI [ secs ]
2338 .B "logtstamp string"
2339 .RI [ string ]
2341 This command controls logfile time-stamp mechanism of 
2342 .I screen.
2344 time-stamps are turned \*Qon\*U, 
2345 .I screen 
2346 adds a string containing
2347 the current time to the logfile after two minutes of inactivity.
2348 When output continues and more than another two minutes have passed,
2349 a second time-stamp is added to document the restart of the
2350 output. You can change this timeout with the second form
2351 of the command. The third form is used for customizing the time-stamp
2352 string (`-- %n:%t -- time-stamp -- %M/%d/%y %c:%s --\\n' by
2353 default).
2355 .ne 3
2356 .B mapdefault
2358 Tell 
2359 .I screen 
2360 that the next input character should only be looked up
2361 in the default bindkey table. See also \*Qbindkey\*U.
2363 .ne 3
2364 .B mapnotnext
2366 Like mapdefault, but don't even look in the default bindkey table.
2368 .ne 3
2369 .B maptimeout
2370 .RI [ timo ]
2372 Set the inter-character timer for input sequence detection to a timeout
2374 .I timo
2375 ms. The default timeout is 300ms. Maptimeout with no arguments shows
2376 the current setting.
2377 See also \*Qbindkey\*U.
2379 .ne 3
2380 .BI "markkeys " string
2382 This is a method of changing the keymap used for copy/history mode.
2383 The string is made up of \fIoldchar\fP=\fInewchar\fP pairs which are
2384 separated by `:'. Example: The string \*QB=^B:F=^F\*U will change the 
2385 keys `C-b' and `C-f' to the vi style binding (scroll up/down fill page).
2386 This happens to be the default binding for `B' and `F'.
2387 The command \*Qmarkkeys h=^B:l=^F:$=^E\*U would set the mode for an emacs-style
2388 binding.
2389 If your terminal sends characters, that cause you to abort copy mode,
2390 then this command may help by binding these characters to do nothing.
2391 The no-op character is `@' and is used like this: \*Qmarkkeys
2392 @=L=H\*U if you do not want to use the `H' or `L' commands any longer.
2393 As shown in this example, multiple keys can be assigned to one function in a 
2394 single statement.
2396 .ne 3
2397 .BI "maxwin " num
2399 Set the maximum window number screen will create. Doesn't affect
2400 already existing windows. The number can be increased only when there are no
2401 existing windows.
2403 .ne 3
2404 .B meta
2406 Insert the command character (C-a) in the current window's input stream.
2408 .ne 3
2409 .BR "monitor " [ on | off ]
2411 Toggles activity monitoring of windows.
2412 When monitoring is turned on and an affected window is switched into the
2413 background, you will receive the activity notification message in the
2414 status line at the first sign of output and the window will also be marked
2415 with an `@' in the window-status display.
2416 Monitoring is initially off for all windows.
2418 .ne 3
2419 .BR "mousetrack " [ on | off ]
2421 This command determines whether
2422 .I screen
2423 will watch for
2424 mouse clicks. When this command is enabled, regions that have
2425 been split in various ways can be selected by pointing to them
2426 with a mouse and left-clicking them. Without specifying \fBon\fP
2427 or \fBoff\fP, the current state is displayed. The default state
2428 is determined by the \*Qdefmousetrack\*U command.
2430 .ne 3
2431 .BI "msgminwait " sec
2433 Defines the time 
2434 .I screen 
2435 delays a new message when one message is currently displayed. 
2436 The default is 1 second.
2438 .ne 3
2439 .BI "msgwait " sec
2441 Defines the time a message is displayed if 
2442 .I screen
2443 is not disturbed by other activity. The default is 5 seconds.
2445 .ne 3
2446 .BR "multiuser on" | off
2448 Switch between singleuser and multiuser mode. Standard
2449 .I screen
2450 operation is singleuser. In multiuser mode the commands `acladd',
2451 `aclchg', `aclgrp' and `acldel'
2452 can be used to enable (and disable) other users accessing this 
2453 .I screen
2454 session. 
2456 .ne 3
2457 .BR "nethack on" | off
2459 Changes the kind of error messages used by
2460 .IR screen .
2461 When you are familiar with the game \*Qnethack\*U, you may enjoy the
2462 nethack-style messages which will often blur the facts a little, but are
2463 much funnier to read. Anyway, standard messages often tend to be unclear as
2464 well.
2466 This option is only 
2467 available if
2468 .I screen
2469 was compiled with the NETHACK flag defined. The
2470 default setting is then determined by the presence of the environment 
2471 variable $NETHACKOPTIONS and the file ~/.nethackrc - if either one is present,
2472 the default is \fBon\fP.
2474 .ne 3
2475 .B next
2477 Switch to the next window.
2478 This command can be used repeatedly to cycle through the list of windows.
2480 .ne 3
2481 .B nonblock 
2482 .RB [ on | off | \fInumsecs ]
2484 Tell screen how to deal with user interfaces (displays) that cease to
2485 accept output. This can happen if a user presses ^S or a TCP/modem
2486 connection gets cut but no hangup is received. If nonblock is
2487 \fBoff\fP (this is the default) screen waits until the display
2488 restarts to accept the output. If nonblock is \fBon\fP, screen
2489 waits until the timeout is reached (\fBon\fP is treated as 1s). If the
2490 display still doesn't receive characters, screen will consider
2491 it \*Qblocked\*U and stop sending characters to it. If at
2492 some time it restarts to accept characters, screen will unblock
2493 the display and redisplay the updated window contents.
2495 .ne 3
2496 .BR "number " [[+|-] \fIn ]
2498 Change the current window's number. If the given number \fIn\fP is already 
2499 used by another window, both windows exchange their numbers. If no argument is
2500 specified, the current window number (and title) is shown. Using `+' or `-'
2501 will change the window's number by the relative amount specified.
2503 .ne 3
2504 .BR "obuflimit " [ \fIlimit ]
2506 If the output buffer contains more bytes than the specified limit, no
2507 more data will be
2508 read from the windows. The default value is 256. If you have a fast
2509 display (like xterm), you can set it to some higher value. If no
2510 argument is specified, the current setting is displayed.
2512 .ne 3
2513 .B only
2515 Kill all regions but the current one.
2517 .ne 3
2518 .B other
2520 Switch to the window displayed previously. If this window does no longer exist,
2521 \fIother\fP has the same effect as \fInext\fP.
2523 .ne 3
2524 .BR "partial on" | off
2526 Defines whether the display should be refreshed (as with \fIredisplay\fP) after
2527 switching to the current window. This command only affects the current window.
2528 To immediately affect all windows use the \fIallpartial\fP command.
2529 Default is `off', of course.  This default is fixed, as there is currently no 
2530 \fIdefpartial\fP command.
2532 .ne 3
2533 .BR "password " [ \fIcrypted_pw ]
2535 Present a crypted password in your \*Q.screenrc\*U file and
2536 .I screen
2537 will ask
2538 for it, whenever someone attempts to resume a detached. This is useful
2539 if you have privileged programs running under
2540 .I screen
2541 and you want to protect your session from reattach attempts by another user
2542 masquerading as your uid (i.e. any superuser.)
2543 If no crypted password is specified,
2544 .I screen
2545 prompts twice for typing a
2546 password and places its encryption in the paste buffer.
2547 Default is `none', this disables password checking.
2549 .ne 3
2550 .BR paste
2551 .RI [ registers " [" dest_reg ]]
2553 Write the (concatenated) contents of the specified registers to the stdin queue
2554 of the current window. The register '.' is treated as the
2555 paste buffer. If no parameter is given the user is prompted for a single 
2556 register to paste.
2557 The paste buffer can be filled with the \fIcopy\fP, \fIhistory\fP and 
2558 \fIreadbuf\fP commands. 
2559 Other registers can be filled with the \fIregister\fP, \fIreadreg\fP and 
2560 \fIpaste\fP commands.
2561 If \fIpaste\fP is called with a second argument, the contents of the specified
2562 registers is pasted into the named destination register rather than 
2563 the window. If '.' is used as the second argument, the displays paste buffer is
2564 the destination.
2565 Note, that \*Qpaste\*U uses a wide variety of resources: Whenever a second 
2566 argument is specified no current window is needed. When the source specification
2567 only contains registers (not the paste buffer) then there need not be a current 
2568 display (terminal attached), as the registers are a global resource. The 
2569 paste buffer exists once for every user.
2571 .ne 3
2572 .BR "pastefont " [ on | off ]
2574 Tell 
2575 .I screen 
2576 to include font information in the paste buffer. The
2577 default is not to do so. This command is especially useful for
2578 multi character fonts like kanji.
2580 .ne 3
2581 .B pow_break
2583 Reopen the window's terminal line and send a break condition. See `break'.
2585 .ne 3
2586 .B pow_detach
2588 Power detach. 
2589 Mainly the same as \fIdetach\fP, but also sends a HANGUP signal to
2590 the parent process of
2591 .IR screen .
2592 CAUTION: This will result in a logout, when 
2593 .I screen
2594 was started from your login shell.
2596 .ne 3
2597 .B pow_detach_msg
2598 .RI [ message ]
2600 The \fImessage\fP specified here is output whenever a `Power detach' was
2601 performed. It may be used as a replacement for a logout message or to reset 
2602 baud rate, etc. 
2603 Without parameter, the current message is shown.
2605 .ne 3
2606 .B prev
2608 Switch to the window with the next lower number.
2609 This command can be used repeatedly to cycle through the list of windows.
2611 .ne 3
2612 .B printcmd
2613 .RI [ cmd ]
2616 .I cmd
2617 is not an empty string, 
2618 .I screen 
2619 will not use the terminal capabilities
2620 \*Qpo/pf\*U if it detects an ansi print sequence
2621 .BR "ESC [ 5 i" ,
2622 but pipe the output into
2623 .IR cmd .
2624 This should normally be a command like \*Qlpr\*U or
2625 \*Q'cat > /tmp/scrprint'\*U.
2626 .B printcmd
2627 without a command displays the current setting.
2628 The ansi sequence
2629 .B "ESC \e"
2630 ends printing and closes the pipe.
2632 Warning: Be careful with this command! If other user have write
2633 access to your terminal, they will be able to fire off print commands.
2635 .ne 3
2636 .BR process " [" \fIkey ]
2638 Stuff the contents of the specified register into 
2639 .IR screen 's
2640 input queue. If no argument is given you are prompted for a
2641 register name. The text is parsed as if it had been typed in from the user's
2642 keyboard. This command can be used to bind multiple actions to a single key.
2644 .ne 3
2645 .B quit
2647 Kill all windows and terminate
2648 .IR screen .
2649 Note that on VT100-style terminals the keys C-4 and C-\e are identical.
2650 This makes the default bindings dangerous:
2651 Be careful not to type C-a C-4 when selecting window no. 4.
2652 Use the empty bind command (as in \*Qbind '^\e'\*U) to remove a key binding.
2654 .ne 3
2655 .B readbuf
2656 .RB [ -e
2657 .IR encoding ]
2658 .RI [ filename ]
2660 Reads the contents of the specified file into the paste buffer.
2661 You can tell screen the encoding of the file via the \fB-e\fP option.
2662 If no file is specified, the screen-exchange filename is used.
2663 See also \*Qbufferfile\*U command.
2665 .ne 3
2666 .B readreg 
2667 .RB [ -e
2668 .IR encoding ]
2669 .RI [ register " [" filename ]]
2671 Does one of two things, dependent on number of arguments: with zero or one
2672 arguments it it duplicates the paste buffer contents into the register specified
2673 or entered at the prompt. With two arguments it reads the contents of the named 
2674 file into the register, just as \fIreadbuf\fP reads the screen-exchange file
2675 into the paste buffer.
2676 You can tell screen the encoding of the file via the \fB-e\fP option.
2677 The following example will paste the system's password file into 
2678 the 
2679 .I screen 
2680 window (using register p, where a copy remains):
2683         C-a : readreg p /etc/passwd
2684         C-a : paste p
2687 .ne 3
2688 .B redisplay
2690 Redisplay the current window. Needed to get a full redisplay when in
2691 partial redraw mode.
2693 .ne 3
2694 .B register
2695 .RB [ -e
2696 .IR encoding ]
2697 .I "key string"
2699 Save the specified \fIstring\fP to the register \fIkey\fP.
2700 The encoding of the string can be specified via the \fB-e\fP option.
2701 See also the \*Qpaste\*U command.
2703 .ne 3
2704 .B "remove"
2706 Kill the current region. This is a no-op if there is only one region.
2708 .ne 3
2709 .B "removebuf"
2711 Unlinks the screen-exchange file used by the commands \*Qwritebuf\*U and 
2712 \*Qreadbuf\*U. 
2714 .ne 3
2715 .B "rendition bell" | monitor | so
2716 .RB "\fIattr\fR " [ \fIcolor ]
2718 Change the way
2719 .I screen
2720 renders the titles of windows that have monitor or bell flags set in caption or hardstatus or windowlist. See the \*QSTRING ESCAPES\*U chapter for the syntax of the modifiers.
2721 The default for monitor is currently \*Q=b \*U (bold, active colors) and for bell \*Q=ub \*U (underline, bold and active colors).
2723 .ne 3
2724 .B "reset"
2725 .PP 
2726 Reset the virtual terminal to its \*Qpower-on\*U values. Useful when strange
2727 settings (like scroll regions or graphics character set) are left over from
2728 an application.
2730 .ne 3
2731 .B "resize"
2732 .PP 
2733 Resize the current region. The space will be removed from or added to
2734 the region below or if there's not enough space from the region above.
2736 resize +N       increase current region height by N
2738 resize -N       decrease current region height by N
2740 resize  N       set current region height to N
2742 resize  =       make all windows equally high
2744 resize  max     maximize current region height
2746 resize  min     minimize current region height
2749 .ne 3
2750 .B "screen \fP[\fI-opts\fP] [\fIn\fP] [\fIcmd\fP [\fIargs\fP]|\fB//group\fP]"
2752 Establish a new window.
2753 The flow-control options (\fB\-f\fP, \fB\-fn\fP and \fB\-fa\fP),
2754 title (a.\|k.\|a.) option (\fB\-t\fP), login options (\fB-l\fP and \fB-ln\fP)
2755 , terminal type option (\fB-T\fP <term>), the all-capability-flag (\fB-a\fP)
2756 and scrollback option (\fB-h\fP <num>) may be specified with each command. 
2757 The option (\fB-M\fP) turns monitoring on for this window.
2758 The option (\fB-L\fP) turns output logging on for this window.
2759 If an optional number \fIn\fP in the range 0..MAXWIN-1 is given,
2760 the window number \fIn\fP is assigned to the newly created window
2761 (or, if this number is already in-use, the next available number).
2762 If a command is specified after \*Qscreen\*U, this command (with the given
2763 arguments) is started in the window; otherwise, a shell is created.
2764 If \fB//group\fP is supplied, a container-type window is created in
2765 which other windows may be created inside it. 
2767 Thus, if your \*Q.screenrc\*U contains the lines
2770         # example for .screenrc:
2771         screen 1
2772         screen -fn -t foobar -L 2 telnet foobar
2775 .I screen
2776 creates a shell window (in window #1) and a window with a TELNET connection
2777 to the machine foobar (with no flow-control using the title \*Qfoobar\*U
2778 in window #2) and will write a logfile (\*Qscreenlog.2\*U) of the telnet 
2779 session.
2780 Note, that unlike previous versions of
2781 .I screen
2782 no additional default window is created when \*Qscreen\*U commands are 
2783 included in your \*Q.screenrc\*U file. When the initialization is completed,
2784 .I screen
2785 switches to the last window specified in your .screenrc file or, if none,
2786 opens a default window #0.
2788 Screen has built in some functionality of \*Qcu\*U and \*Qtelnet\*U.
2789 See also chapter \*QWINDOW TYPES\*U.
2791 .ne 3
2792 .B "scrollback \fP\fInum\fP"
2794 Set the size of the scrollback buffer for the current windows to \fInum\fP 
2795 lines. The default scrollback is 100 lines.
2796 See also the \*Qdefscrollback\*U command and use \*QC-a i\*U to view the 
2797 current setting.
2799 .ne 3
2800 .BR "select " [ \fIWindowID ]
2802 Switch to the window identified by \fIWindowID\fP.
2803 This can be a prefix of a window title (alphanumeric window name) or a
2804 window number.
2805 The parameter is optional and if omitted, you get prompted for an identifier. 
2806 When a new window is established, the first available number
2807 is assigned to this window.
2808 Thus, the first window can be activated by \*Qselect 0\*U.
2809 The number of windows is limited at compile-time by the MAXWIN
2810 configuration parameter (which defaults to 40).
2811 There are two special WindowIDs, \*Q-\*U selects the
2812 internal blank window and \*Q.\*U selects the current window. The
2813 latter is useful if used with screen's \*Q-X\*U option.
2816 .BR "sessionname " [ \fIname ]
2818 Rename the current session. Note, that for \*Qscreen -list\*U the
2819 name shows up with the process-id prepended. If the argument \*Qname\*U
2820 is omitted, the name of this session is displayed. Caution: The $STY 
2821 environment variables will still reflect the old name in pre-existing
2822 shells. This may result in confusion. Use of this command is generally
2823 discouraged. Use the \*Q-S\*U command-line option if you want to
2824 name a new session.
2825 The default is constructed from the tty and host names.
2827 .ne 3
2828 .B "setenv " 
2829 .RI [ var " [" string ]]
2831 Set the environment variable \fIvar\fP to value \fIstring\fP.
2832 If only \fIvar\fP is specified, the user will be prompted to enter a value.
2833 If no parameters are specified, the user will be prompted for both variable
2834 and value. The environment is inherited by all subsequently forked shells.
2836 .ne 3
2837 .BR "setsid " [ on | off ]
2839 Normally screen uses different sessions and process groups for
2840 the windows. If setsid is turned \fIoff\fP, this is not done
2841 anymore and all windows will be in the same process group as the
2842 screen backend process. This also breaks job-control, so be careful.
2843 The default is \fIon\fP, of course. This command is probably useful
2844 only in rare circumstances.
2846 .ne 3
2847 .B "shell \fIcommand\fP"
2849 Set the command to be used to create a new shell.
2850 This overrides the value of the environment variable $SHELL.
2851 This is useful if you'd like to run a tty-enhancer which is expecting to
2852 execute the program specified in $SHELL. If the command begins with
2853 a '-' character, the shell will be started as a login-shell.
2855 .ne 3
2856 .B "shelltitle \fItitle\fP"
2858 Set the title for all shells created during startup or by
2859 the C-A C-c command.
2860 For details about what a title is, see the discussion
2861 entitled \*QTITLES (naming windows)\*U.
2863 .ne 3
2864 .BR "silence " [ on | off "|\fIsec\fP]"
2866 Toggles silence monitoring of windows.
2867 When silence is turned on and an affected window is switched into the
2868 background, you will receive the silence notification message in the
2869 status line after a specified period of inactivity (silence). The default
2870 timeout can be changed with the `silencewait' command or by specifying a 
2871 number of seconds instead of `on' or `off'.
2872 Silence is initially off for all windows.
2874 .ne 3
2875 .BI "silencewait " sec
2877 Define the time that all windows monitored for silence should wait before
2878 displaying a message. Default 30 seconds.
2881 .B "sleep \fP\fInum\fP"
2883 This command will pause the execution of a .screenrc file for \fInum\fP seconds.
2884 Keyboard activity will end the sleep.
2885 It may be used to give users a chance to read the messages output by \*Qecho\*U.
2887 .ne 3
2888 .B "slowpaste \fImsec\fP"
2890 Define the speed at which text is inserted into the current window by the 
2891 paste ("C-a ]") command. 
2892 If the slowpaste value is nonzero text is written character by character.
2893 .I screen
2894 will make a pause of \fImsec\fP milliseconds after each single character write 
2895 to allow the application to process its input. Only use slowpaste if your 
2896 underlying system exposes flow control problems while pasting large amounts of 
2897 text. 
2899 .ne 3
2900 .BI "source " file
2902 Read and execute commands from file \fIfile\fP. Source commands may
2903 be nested to a maximum recursion level of ten. If file is not an
2904 absolute path and screen is already processing a source command, the
2905 parent directory of the running source command file is used to search
2906 for the new command file before screen's current directory.
2908 Note that termcap/terminfo/termcapinfo commands only work at
2909 startup and reattach time, so they must be reached via the
2910 default screenrc files to have an effect.
2912 .ne 3
2913 .B sorendition
2914 .RB [ "\fIattr\fR " [ \fIcolor ]]
2916 This command is deprecated. See "rendition so" instead.
2918 .ne 3
2919 .B split
2920 .RB [ -v ]
2922 Split the current region into two new ones. All regions on the
2923 display are resized to make room for the new region. The blank
2924 window is displayed on the new region. Splits are made horizontally
2925 unless -v is used. Use the \*Qremove\*U or the \*Qonly\*U command
2926 to delete regions. Use \*Qfocus\*U to toggle between regions.
2928 .ne 3
2929 .B "startup_message on\fP|\fBoff"
2931 Select whether you want to see the copyright notice during startup.
2932 Default is `on', as you probably noticed.
2934 .ne 3
2935 .B stuff
2936 .I string
2938 Stuff the string
2939 .I string
2940 in the input buffer of the current window.
2941 This is like the \*Qpaste\*U command but with much less overhead.
2942 You cannot paste
2943 large buffers with the \*Qstuff\*U command. It is most useful for key
2944 bindings. See also \*Qbindkey\*U.
2946 .ne 3
2947 .B su
2948 .RB [ username " [" password
2949 .RB [ password2 ]]
2951 Substitute the user of a display. The command prompts for all parameters that
2952 are omitted. If passwords are specified as parameters, they have to be
2953 specified un-crypted. The first password is matched against the systems
2954 passwd database, the second password is matched against the 
2955 .I screen
2956 password as set with the commands \*Qacladd\*U or \*Qpassword\*U.
2957 \*QSu\*U may be useful for the 
2958 .I screen
2959 administrator to test multiuser setups.
2960 .\"                                             XXX removed in 3.8.0 XXX
2961 .\" but it is mainly used implicitly
2962 .\" by the \*Qconnect\*U command to identify users that access a remote session.
2963 When the identification fails, the user has access to the commands available
2964 for user
2965 .BR nobody .
2966 These are \*Qdetach\*U, \*Qlicense\*U, \*Qversion\*U, \*Qhelp\*U and
2967 \*Qdisplays\*U.
2969 .ne 3
2970 .B "suspend"
2972 Suspend
2973 .IR screen .
2974 The windows are in the `detached' state, while 
2975 .I screen
2976 is suspended. This feature relies on the shell being able to do job control.
2978 .ne 3
2979 .B "term \fIterm\fP"
2981 In each window's environment
2982 .I screen
2983 opens, the $TERM variable is set to \*Qscreen\*U by default. 
2984 But when no description for \*Qscreen\*U is installed in the local termcap
2985 or terminfo data base, you set $TERM to \- say \-
2986 \*Qvt100\*U. This won't do much harm, as 
2987 .I screen
2988 is VT100/ANSI compatible.
2989 The use of the \*Qterm\*U command is discouraged for non-default purpose.
2990 That is, one may want to specify special $TERM settings (e.g. vt100) for the
2991 next \*Qscreen rlogin othermachine\*U command. Use the command \*Qscreen -T vt100
2992 rlogin othermachine\*U rather than setting and resetting the default.
2994 .ne 3
2995 .BI termcap " term terminal-tweaks"
2996 .RI [ window-tweaks ]
2998 .BI terminfo " term terminal-tweaks"
2999 .RI [ window-tweaks ]
3001 .BI termcapinfo " term terminal-tweaks"
3002 .RI [ window-tweaks ]
3004 Use this command to modify your terminal's termcap entry without going
3005 through all the hassles involved in creating a custom termcap entry.
3006 Plus, you can optionally customize the termcap generated for the windows.
3007 You have to place these commands in one of the screenrc startup files, as
3008 they are meaningless once the terminal emulator is booted.  
3010 If your system works uses the terminfo database rather than termcap, 
3011 .I screen 
3012 will understand the `terminfo' command, which has the same effects as the
3013 `termcap' command.  Two separate commands are provided, as there are subtle
3014 syntactic differences, e.g. when parameter interpolation (using `%') is
3015 required. Note that termcap names of the capabilities have to be used
3016 with the `terminfo' command. 
3018 In many cases, where the arguments are valid in both terminfo and termcap
3019 syntax, you can use the command `termcapinfo', which is just a shorthand
3020 for a pair of `termcap' and `terminfo' commands with identical arguments.
3022 The first argument specifies which terminal(s) should be affected by this
3023 definition.
3024 You can specify multiple terminal names by separating them with `|'s.
3025 Use `*' to match all terminals and `vt*' to match all terminals that begin
3026 with \*Qvt\*U.
3028 Each \fItweak\fP argument contains one or more termcap defines (separated
3029 by `:'s) to be inserted at the start of the appropriate termcap entry,
3030 enhancing it or overriding existing values.
3031 The first tweak modifies your terminal's termcap, and contains definitions
3032 that your terminal uses to perform certain functions.
3033 Specify a null string to leave this unchanged (e.\|g. '').
3034 The second (optional) tweak modifies all the window termcaps, and should
3035 contain definitions that
3036 .I screen
3037 understands (see the \*QVIRTUAL TERMINAL\*U
3038 section).
3040 Some examples:
3042 termcap xterm*  LP:hs@
3044 Informs
3045 .I screen
3046 that all terminals that begin with `xterm' have firm auto-margins that
3047 allow the last position on the screen to be updated (LP), but they don't
3048 really have a status line (no 'hs' \- append `@' to turn entries off).
3049 Note that we assume `LP' for all terminal names that start with \*Qvt\*U,
3050 but only if you don't specify a termcap command for that terminal.
3052 termcap vt*  LP
3054 termcap vt102|vt220  Z0=\eE[?3h:Z1=\eE[?3l
3056 Specifies the firm-margined `LP' capability for all terminals that begin with
3057 `vt', and the second line will also add the escape-sequences to switch
3058 into (Z0) and back out of (Z1) 132-character-per-line mode if this is
3059 a VT102 or VT220.
3060 (You must specify Z0 and Z1 in your termcap to use the width-changing
3061 commands.)
3063 termcap vt100  ""  l0=PF1:l1=PF2:l2=PF3:l3=PF4
3065 This leaves your vt100 termcap alone and adds the function key labels to
3066 each window's termcap entry.
3068 termcap h19|z19  am@:im=\eE@:ei=\eEO  dc=\eE[P
3070 Takes a h19 or z19 termcap and turns off auto-margins (am@) and enables the
3071 insert mode (im) and end-insert (ei) capabilities (the `@' in the `im'
3072 string is after the `=', so it is part of the string).
3073 Having the `im' and `ei' definitions put into your terminal's termcap will
3074 cause
3075 .I screen
3076 to automatically advertise the character-insert capability in
3077 each window's termcap.
3078 Each window will also get the delete-character capability (dc) added to its
3079 termcap, which
3080 .I screen
3081 will translate into a line-update for the terminal
3082 (we're pretending it doesn't support character deletion).
3084 If you would like to fully specify each window's termcap entry, you should
3085 instead set the $SCREENCAP variable prior to running
3086 .IR screen .
3087 See the discussion on the \*QVIRTUAL TERMINAL\*U in this manual, and the termcap(5)
3088 man page for more information on termcap definitions.
3090 .ne 3
3091 .B time
3092 .RI [ string ]
3094 Uses the message line to display the time of day, the host name, and the load
3095 averages over 1, 5, and 15 minutes (if this is available on your system).
3096 For window specific information use \*Qinfo\*U.
3098 If a string is specified, it changes the format of the time report like it is
3099 described in the \*QSTRING ESCAPES\*U chapter. Screen uses a default of
3100 "%c:%s %M %d %H%? %l%?".
3102 .ne 3
3103 .BR "title " [ \fIwindowtitle ]
3105 Set the name of the current window to \fIwindowtitle\fP. If no name is 
3106 specified,
3107 .I screen
3108 prompts for one. This command was known as `aka' in previous
3109 releases.
3111 .ne 3
3112 .BI "unbindall "
3114 Unbind all the bindings. This can be useful when
3115 screen is used solely for its detaching abilities, such as when
3116 letting a console application run as a daemon. If, for some reason,
3117 it is necessary to bind commands after this, use 'screen -X'.
3119 .ne 3
3120 .BI "unsetenv " var
3122 Unset an environment variable.
3124 .ne 3
3125 .B utf8
3126 .RB [ on | off
3127 .RB [ on | off ]]
3129 Change the encoding used in the current window. If utf8 is enabled, the
3130 strings sent to the window will be UTF-8 encoded and vice versa. Omitting the
3131 parameter toggles the setting. If a second parameter is given, the display's
3132 encoding is also changed (this should rather be done with screen's \*Q-U\*U
3133 option).
3134 See also \*Qdefutf8\*U, which changes the default setting of a new
3135 window.
3137 .ne 3
3138 .B vbell 
3139 .RB [ on | off ]
3141 Sets the visual bell setting for this window. Omitting the parameter
3142 toggles the setting. If vbell is switched on, but your terminal does not 
3143 support a visual bell, a `vbell-message' is displayed in the status line when
3144 the bell character (^G) is received.
3145 Visual bell support of a terminal is defined by the termcap variable `vb' 
3146 (terminfo: 'flash'). 
3148 Per default, vbell is off, thus the audible bell is used. 
3149 See also `bell_msg'.
3151 .ne 3
3152 .B vbell_msg
3153 .RI [ message ]
3155 Sets the visual bell message. \fImessage\fP is printed to the status line if
3156 the window receives a bell character (^G), vbell is set to \*Qon\*U, but the 
3157 terminal does not support a visual bell.
3158 The default message is \*QWuff, Wuff!!\*U.
3159 Without parameter, the current message is shown.
3161 .ne 3
3162 .BI "vbellwait " sec
3164 Define a delay in seconds after each display of 
3165 .IR screen 's
3166 visual bell message. The default is 1 second.
3168 .ne 3
3169 .B verbose
3170 .RB [ on | off ]
3172 If verbose is switched on, the command name is echoed, whenever a window
3173 is created (or resurrected from zombie state). Default is off.
3174 Without parameter, the current setting is shown.
3176 .ne 3
3177 .B version
3179 Print the current version and the compile date in the status line.
3181 .ne 3
3182 .BI "wall " "message"
3184 Write a message to all displays. The message will appear in the terminal's
3185 status line.
3187 .ne 3
3188 .B width
3189 .RB [ -w | -d ]
3190 .RI [ cols " [" lines ]]
3192 Toggle the window width between 80 and 132 columns or set it to \fIcols\fP 
3193 columns if an argument is specified. 
3194 This requires a capable terminal and the termcap entries \*QZ0\*U and \*QZ1\*U.
3195 See the \*Qtermcap\*U command for more information. You can also specify
3196 a new height if you want to change both values.
3198 .B -w
3199 option tells screen to leave the display size unchanged and just set
3200 the window size,
3201 .B -d
3202 vice versa.
3204 .ne 3
3205 .B windowlist
3206 .RB [ -b ]
3207 .RB [ -m ]
3208 .RB [ -g ]
3210 .B windowlist
3211 .B string
3212 .RI [ string ]
3214 .B windowlist
3215 .B title
3216 .RI [ title ]
3218 Display all windows in a table for visual window selection. The
3219 desired window can be selected via the standard movement keys (see
3220 the \*Qcopy\*U command) and activated via the return key.
3221 If screen was in a window group, screen will
3222 back out of the group and then display the windows in that group.
3223 If the 
3224 .B -b
3225 option is given, screen will switch to the blank window before
3226 presenting the list, so that the current window is also selectable.
3228 .B -m
3229 option changes the order of the windows, instead of sorting by
3230 window numbers screen uses its internal most-recently-used list.
3232 .B -g
3233 option will show the windows inside any groups in that level
3234 and downwards.
3236 The table format can be changed with the \fBstring\fP and
3237 \fBtitle\fP option, the title is displayed as table heading, while
3238 the lines are made by using the string setting. The default
3239 setting is \*QNum Name%=Flags\*U for the title and \*Q%3n %t%=%f\*U
3240 for the lines.
3241 See the \*QSTRING ESCAPES\*U chapter for more codes (e.g. color
3242 settings).
3244 .ne 3
3245 .B windows
3247 Uses the message line to display a list of all the windows.
3248 Each window is listed by number with the name of process that has been
3249 started in the window (or its title);
3250 the current window is marked with a `*';
3251 the previous window is marked with a `-';
3252 all the windows that are \*Qlogged in\*U are marked with a `$';
3253 a background window that has received a bell is marked with a `!';
3254 a background window that is being monitored and has had activity occur
3255 is marked with an `@';
3256 a window which has output logging turned on is marked with `(L)'; 
3257 windows occupied by other users are marked with `&';
3258 windows in the zombie state are marked with `Z'.
3259 If this list is too long to fit on the terminal's status line only the
3260 portion around the current window is displayed.
3262 .ne 3
3263 .BR "wrap " [ on | off ]
3265 Sets the line-wrap setting for the current window.
3266 When line-wrap is on, the second consecutive printable character output at
3267 the last column of a line will wrap to the start of the following line.
3268 As an added feature, backspace (^H) will also wrap through the left margin
3269 to the previous line.
3270 Default is `on'.
3272 .ne 3
3273 .B writebuf
3274 .RB [ -e
3275 .IR encoding ]
3276 .RI [ filename ]
3278 Writes the contents of the paste buffer to the specified file, or the public accessible screen-exchange
3279 file if no filename is given. This is thought of as a primitive means of communication between
3280 .I screen
3281 users on the same host. If an encoding is specified the paste buffer
3282 is recoded on the fly to match the encoding.
3283 The filename can be set with the \fIbufferfile\fP
3284 command and defaults to \*Q/tmp/screen-exchange\*U.
3286 .ne 3
3287 .BR "writelock " [ on | "off\fR|\fBauto\fR]"
3289 In addition to access control lists, not all users may be able to write to
3290 the same window at once. Per default, writelock is in `auto' mode and
3291 grants exclusive input permission to the user who is the first to switch
3292 to the particular window. When he leaves the window, other users may obtain
3293 the writelock (automatically). The writelock of the current window is disabled
3294 by the command \*Qwritelock off\*U. If the user issues the command 
3295 \*Qwritelock on\*U he keeps the exclusive write permission while switching
3296 to other windows.
3298 .ne 3
3299 .B xoff
3301 .B xon
3303 Insert a CTRL-s / CTRL-q character to the stdin queue of the
3304 current window.
3306 .ne 3
3307 .B zmodem
3308 .RB [ off\fR|\fPauto\fR|\fPcatch\fR|\fPpass ]
3310 .B "zmodem sendcmd"
3311 .RI [ string ]
3313 .B "zmodem recvcmd"
3314 .RI [ string ]
3316 Define zmodem support for screen. Screen understands two different
3317 modes when it detects a zmodem request: \*Qpass\*U and \*Qcatch\*U.
3318 If the mode is set to \*Qpass\*U, screen will relay all data
3319 to the attacher until the end of the transmission is reached.
3320 In \*Qcatch\*U mode screen acts as a zmodem endpoint and starts
3321 the corresponding rz/sz commands. If the mode is set to \*Qauto\*U,
3322 screen will use \*Qcatch\*U if the window is a tty (e.g. a serial line),
3323 otherwise it will use \*Qpass\*U.
3325 You can define the templates screen uses in \*Qcatch\*U mode
3326 via the second and the third form.
3328 Note also that this is an experimental feature.
3330 .ne 3
3331 .BR "zombie " [\fIkeys\fP [ onerror ] ]
3333 .BR "defzombie " [\fIkeys\fP]
3335 Per default
3336 .I screen 
3337 windows are removed from the window list as soon as
3338 the windows process (e.g. shell) exits. When a string of two keys is 
3339 specified to the zombie command, `dead' windows will remain in the list.
3340 The \fBkill\fP command may be used to remove such a window. Pressing the 
3341 first key in the dead window has the same effect. When pressing the second 
3342 key, 
3343 .I screen 
3344 will attempt to resurrect the window. The process that was 
3345 initially running in the window will be launched again. Calling \fBzombie\fP
3346 without parameters will clear the zombie setting, thus making windows disappear 
3347 when their process exits.
3349 As the zombie-setting is manipulated globally for all windows, this command 
3350 should only be called \fBdefzombie\fP. Until we need this as a per window 
3351 setting, the commands \fBzombie\fP and \fBdefzombie\fP are synonymous.
3353 Optionally you can put the word \*Qonerror\*U after the keys. This will cause screen
3354 to monitor exit status of the process running in the window. If it exits normally ('0'), 
3355 the window disappears. Any other exit value causes the window to become a zombie.
3357 .SH "THE MESSAGE LINE"
3358 .I Screen
3359 displays informational messages and other diagnostics in a \fImessage line\fP.
3360 While this line is distributed to appear at the bottom of the screen,
3361 it can be defined to appear at the top of the screen during compilation.
3362 If your terminal has a status line defined in its termcap,
3363 .I screen
3364 will use this for displaying its messages, otherwise a line of the
3365 current screen will
3366 be temporarily overwritten and output will be momentarily interrupted. The
3367 message line is automatically removed after a few seconds delay, but it
3368 can also be removed early (on terminals without a status line) by beginning
3369 to type.
3371 The message line facility can be used by an application running in
3372 the current window by means of the ANSI \fIPrivacy message\fP
3373 control sequence.
3374 For instance, from within the shell, try something like:
3376 echo '<esc>^Hello world from window '$WINDOW'<esc>\e\e'
3378 where '<esc>' is an \fIescape\fP, '^' is a literal up-arrow,
3379 and '\e\e' turns into a single backslash.
3381 .SH "WINDOW TYPES"
3382 Screen provides three different window types. New windows are created with 
3383 .IR screen 's
3384 .B screen
3385 command (see also the entry in chapter \*QCUSTOMIZATION\*U). The first
3386 parameter to the 
3387 .B screen
3388 command defines which type of window is created. The different window types are
3389 all special cases of the normal type. They have been added in order
3390 to allow 
3391 .I screen 
3392 to be used efficiently as a console multiplexer with 100 or more windows.
3394 .IP \(bu 3
3395 The normal window contains a shell (default, if no parameter is given) or any
3396 other system command that could be executed from a shell (e.g.  
3397 .BR slogin ,
3398 etc...) 
3400 .IP \(bu
3401 If a tty (character special device) name (e.g. \*Q/dev/ttya\*U)
3402 is specified as the first parameter, then the window is directly connected to
3403 this device. 
3404 This window type is similar to \*Qscreen cu -l /dev/ttya\*U.
3405 Read and write access is required on the device node, an exclusive open is
3406 attempted on the node to mark the connection line as busy.
3407 An optional parameter is allowed consisting of a comma separated list of flags
3408 in the notation used by stty(1):
3410 .IP <baud_rate>         
3411 Usually 300, 1200, 9600 or 19200. This affects transmission as well as receive speed.
3412 .IP "cs8 or cs7"
3413 Specify the transmission of eight (or seven) bits per byte.
3414 .IP "ixon or -ixon"
3415 Enables (or disables) software flow-control (CTRL-S/CTRL-Q) for sending data.
3416 .IP "ixoff or -ixon"
3417 Enables (or disables) software flow-control for receiving data.
3418 .IP "istrip or -istrip"
3419 Clear (or keep) the eight bit in each received byte.
3421 You may want to specify as many of these options as applicable. Unspecified
3422 options cause the terminal driver to make up the parameter values of the
3423 connection.  These values are system dependent and may be in defaults or values
3424 saved from a previous connection.
3426 For tty windows, the 
3427 .B info
3428 command shows some of the modem control lines
3429 in the status line. These may include `RTS', `CTS', 'DTR', `DSR', `CD' and more.
3430 This depends on the available ioctl()'s and system header files as well as the
3431 on the physical capabilities of the serial board. 
3432 Signals that are logical low (inactive) have their name preceded by
3433 an exclamation mark (!), otherwise the signal is logical high (active).
3434 Signals not supported by the hardware but available to the ioctl() interface
3435 are usually shown low. 
3437 When the CLOCAL status bit is true, the whole set of modem signals is placed 
3438 inside curly braces ({ and }).
3439 When the CRTSCTS or TIOCSOFTCAR bit is set, the signals `CTS' or `CD' 
3440 are shown in parenthesis, respectively. 
3443 For tty windows, the command
3444 .B break
3445 causes the Data transmission line (TxD) to go low for a specified period of
3446 time. This is expected to be interpreted as break signal on the other side.
3447 No data is sent and no modem control line is changed when a 
3448 .B break
3449 is issued.
3451 .IP \(bu
3452 If the first parameter is \*Q//telnet\*U, the second parameter is expected to
3453 be a host name, and an optional third parameter may specify a TCP port number
3454 (default decimal 23).  Screen will connect to a server listening on the remote
3455 host and use the telnet protocol to communicate with that server.
3458 For telnet windows, the command
3459 .B info
3460 shows details about the connection in square brackets ([ and ]) at the end of
3461 the status line. 
3463 .IP b
3464 BINARY. The connection is in binary mode.
3465 .IP e
3466 ECHO. Local echo is disabled.
3467 .IP c
3468 SGA. The connection is in `character mode' (default: `line mode').
3469 .IP t
3470 TTYPE. The terminal type has been requested by the remote host.
3471 Screen sends the name \*Qscreen\*U unless instructed otherwise (see also
3472 the command `term').
3473 .IP w
3474 NAWS. The remote site is notified about window size changes.
3475 .IP f
3476 LFLOW. The remote host will send flow control information.
3477 (Ignored at the moment.)
3479 Additional flags for debugging are x, t and n (XDISPLOC, TSPEED and
3480 NEWENV).
3482 For telnet windows, the command
3483 .B break
3484 sends the telnet code IAC BREAK (decimal 243) to the remote host.
3487 This window type is only available if
3488 .I screen
3489 was compiled with the BUILTIN_TELNET option defined.
3493 .SH "STRING ESCAPES"
3494 Screen provides an escape mechanism to insert information like the
3495 current time into messages or file names. The escape character
3496 is '%' with one exception: inside of a window's hardstatus '^%' ('^E')
3497 is used instead.
3499 Here is the full list of supported escapes:
3500 .IP %
3501 the escape character itself
3502 .IP a
3503 either 'am' or 'pm'
3504 .IP A
3505 either 'AM' or 'PM'
3506 .IP c
3507 current time HH:MM in 24h format
3508 .IP C
3509 current time HH:MM in 12h format
3510 .IP d
3511 day number
3512 .IP D
3513 weekday name
3514 .IP f
3515 flags of the window
3516 .IP F
3517 sets %? to true if the window has the focus
3518 .IP h
3519 hardstatus of the window
3520 .IP H
3521 hostname of the system
3522 .IP l
3523 current load of the system
3524 .IP m
3525 month number
3526 .IP M
3527 month name
3528 .IP n
3529 window number
3530 .IP P
3531 sets %? to true if the current region is in copy/paste mode
3532 .IP S
3533 session name
3534 .IP s
3535 seconds
3536 .IP t
3537 window title
3538 .IP u
3539 all other users on this window
3540 .IP w
3541 all window numbers and names. With '-' qualifier: up to the current
3542 window; with '+' qualifier: starting with the window after the current
3543 one.
3544 .IP W
3545 all window numbers and names except the current one
3546 .IP y
3547 last two digits of the year number
3548 .IP Y
3549 full year number
3550 .IP ?
3551 the part to the next '%?' is displayed only if a '%' escape
3552 inside the part expands to a non-empty string
3553 .IP :
3554 else part of '%?'
3555 .IP =
3556 pad the string to the display's width (like TeX's hfill). If a
3557 number is specified, pad to the percentage of the window's width.
3558 A '0' qualifier tells screen to treat the number as absolute position.
3559 You can specify to pad relative to the last absolute pad position
3560 by adding a '+' qualifier or to pad relative to the right margin
3561 by using '-'. The padding truncates the string if the specified
3562 position lies before the current position. Add the 'L' qualifier
3563 to change this.
3564 .IP <
3565 same as '%=' but just do truncation, do not fill with spaces
3566 .IP >
3567 mark the current text position for the next truncation. When
3568 screen needs to do truncation, it tries to do it in a way that
3569 the marked position gets moved to the specified percentage of
3570 the output area. (The area starts from the last absolute pad
3571 position and ends with the position specified by the truncation
3572 operator.) The 'L' qualifier tells screen to mark the truncated
3573 parts with '...'.
3574 .IP {
3575 attribute/color modifier string terminated by the next \*Q}\*U
3576 .IP `
3577 Substitute with the output of a 'backtick' command. The length
3578 qualifier is misused to identify one of the commands.
3580 The 'c' and 'C' escape may be qualified with a '0' to make 
3581 .I screen 
3582 use zero instead of space as fill character. The '0' qualifier
3583 also makes the '=' escape use absolute positions. The 'n' and '='
3584 escapes understand
3585 a length qualifier (e.g. '%3n'), 'D' and 'M' can be prefixed with 'L'
3586 to generate long names, 'w' and 'W' also show the window flags
3587 if 'L' is given.
3589 An attribute/color modifier is is used to change the attributes or the
3590 color settings. Its format
3591 is \*Q[attribute modifier] [color description]\*U. The attribute modifier
3592 must be prefixed by a change type indicator if it can be confused with
3593 a color description. The following change types are known:
3594 .IP +
3595 add the specified set to the current attributes
3596 .IP -
3597 remove the set from the current attributes
3598 .IP !
3599 invert the set in the current attributes
3600 .IP =
3601 change the current attributes to the specified set
3603 The attribute set can either be specified as a hexadecimal number or
3604 a combination of the following letters:
3605 .IP d
3607 .PD 0
3608 .IP u
3609 underline
3610 .IP b
3611 bold
3612 .IP r
3613 reverse
3614 .IP s
3615 standout
3616 .IP B
3617 blinking
3620 Colors are coded either as a hexadecimal number or two letters specifying
3621 the desired background and foreground color (in that order). The following
3622 colors are known:
3623 .IP k
3624 black
3625 .PD 0
3626 .IP r
3628 .IP g
3629 green
3630 .IP y
3631 yellow
3632 .IP b
3633 blue
3634 .IP m
3635 magenta
3636 .IP c
3637 cyan
3638 .IP w
3639 white
3640 .IP d
3641 default color
3642 .IP .
3643 leave color unchanged
3646 The capitalized versions of the letter specify bright colors. You can also
3647 use the pseudo-color 'i' to set just the brightness and leave the color
3648 unchanged.
3650 A one digit/letter color description is treated as foreground or
3651 background color dependent on the current attributes: if reverse mode is
3652 set, the background color is changed instead of the foreground color.
3653 If you don't like this, prefix the color with a \*Q.\*U. If you want
3654 the same behavior for two-letter color descriptions, also prefix them
3655 with a \*Q.\*U.
3657 As a special case, \*Q%{-}\*U restores the attributes and colors that
3658 were set before the last change was made (i.e., pops one level of the
3659 color-change stack).
3661 Examples:
3662 .IP "\*QG\*U"
3663 set color to bright green
3664 .IP "\*Q+b r\*U"
3665 use bold red
3666 .IP "\*Q= yd\*U"
3667 clear all attributes, write in default color on yellow background.
3668 .IP "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<"
3669 The available windows centered at the current window and truncated to
3670 the available width. The current window is displayed white on blue.
3671 This can be used with \*Qhardstatus alwayslastline\*U.
3672 .IP "%?%F%{.R.}%?%3n %t%? [%h]%?"
3673 The window number and title and the window's hardstatus, if one is set.
3674 Also use a red background if this is the active focus. Useful for
3675 \*Qcaption string\*U.
3676 .SH "FLOW-CONTROL"
3677 Each window has a flow-control setting that determines how
3678 .I screen
3679 deals with
3680 the XON and XOFF characters (and perhaps the interrupt character).
3681 When flow-control is turned off,
3682 .I screen
3683 ignores the XON and XOFF characters,
3684 which allows the user to send them to the current program by simply typing
3685 them (useful for the \fIemacs\fP editor, for instance).
3686 The trade-off is that it will take longer for output from a \*Qnormal\*U
3687 program to pause in response to an XOFF.
3688 With flow-control turned on, XON and XOFF characters are used to immediately
3689 pause the output of the current window.
3690 You can still send these characters to the current program, but you must use
3691 the appropriate two-character
3692 .I screen
3693 commands (typically \*QC-a q\*U (xon)
3694 and \*QC-a s\*U (xoff)).
3695 The xon/xoff commands are also useful for typing C-s and C-q past a terminal
3696 that intercepts these characters.
3698 Each window has an initial flow-control value set with either the
3699 .B \-f
3700 option or the \*Qdefflow\*U .screenrc command. Per default the windows
3701 are set to automatic flow-switching.
3702 It can then be toggled between the three states 'fixed on', 'fixed off'
3703 and 'automatic' interactively with the \*Qflow\*U command bound to "C-a f".
3705 The automatic flow-switching mode deals with
3706 flow control using the TIOCPKT mode (like \*Qrlogin\*U does). If
3707 the tty driver does not support TIOCPKT,
3708 .I screen
3709 tries to find out
3710 the right mode based on the current setting of the application
3711 keypad \- when it is enabled, flow-control is turned off and visa versa.
3712 Of course, you can still manipulate flow-control manually when needed.
3714 If you're running with flow-control enabled and find that pressing the
3715 interrupt key (usually C-c) does not interrupt the display until another
3716 6-8 lines have scrolled by, try running
3717 .I screen
3718 with the \*Qinterrupt\*U
3719 option (add the \*Qinterrupt\*U flag to the \*Qflow\*U command in
3720 your .screenrc, or use the
3721 .B \-i
3722 command-line option).
3723 This causes the output that
3724 .I screen
3725 has accumulated from the interrupted program to be flushed.
3726 One disadvantage is that the virtual terminal's memory contains the
3727 non-flushed version of the output, which in rare cases can cause
3728 minor inaccuracies in the output.
3729 For example, if you switch screens and return, or update the screen
3730 with \*QC-a l\*U you would see the version of the output you would
3731 have gotten without \*Qinterrupt\*U being on.
3732 Also, you might need to turn off flow-control (or use auto-flow mode to turn
3733 it off automatically) when running a program that expects you to type the
3734 interrupt character as input, as it is possible to interrupt
3735 the output of the virtual terminal to your physical terminal when flow-control
3736 is enabled.
3737 If this happens, a simple refresh of the screen with \*QC-a l\*U will
3738 restore it.
3739 Give each mode a try, and use whichever mode you find more comfortable.
3742 .SH "TITLES (naming windows)"
3743 You can customize each window's name in the window display (viewed with the
3744 \*Qwindows\*U command (C-a w)) by setting it with one of
3745 the title commands.
3746 Normally the name displayed is the actual command name of the program
3747 created in the window.
3748 However, it is sometimes useful to distinguish various programs of the same
3749 name or to change the name on-the-fly to reflect the current state of
3750 the window.
3752 The default name for all shell windows can be set with the \*Qshelltitle\*U
3753 command in the .screenrc file, while all other windows are created with
3754 a \*Qscreen\*U command and thus can have their name set with the
3755 .B \-t
3756 option.
3757 Interactively, there is the title-string escape-sequence
3758 (<esc>k\fIname\fP<esc>\e) and the \*Qtitle\*U command (C-a A).
3759 The former can be output from an application to control the window's name
3760 under software control, and the latter will prompt for a name when typed.
3761 You can also bind pre-defined names to keys with the \*Qtitle\*U command
3762 to set things quickly without prompting.
3764 Finally,
3765 .I screen
3766 has a shell-specific heuristic that is enabled by setting the window's name
3767 to \*Q\fIsearch|name\fP\*U and arranging to have a null title escape-sequence
3768 output as a part of your prompt.
3769 The \fIsearch\fP portion specifies an end-of-prompt search string, while
3770 the \fIname\fP portion specifies the default shell name for the window.
3771 If the \fIname\fP ends in a `:'
3772 .I screen
3773 will add what it believes to be the current command running in the window
3774 to the end of the window's shell name (e.\|g. \*Q\fIname:cmd\fP\*U).
3775 Otherwise the current command name supersedes the shell name while it is
3776 running.
3778 Here's how it works:  you must modify your shell prompt to output a null
3779 title-escape-sequence (<esc>k<esc>\e) as a part of your prompt.
3780 The last part of your prompt must be the same as the string you specified
3781 for the \fIsearch\fP portion of the title.
3782 Once this is set up,
3783 .I screen
3784 will use the title-escape-sequence to clear the previous command name and
3785 get ready for the next command.
3786 Then, when a newline is received from the shell, a search is made for the
3787 end of the prompt.
3788 If found, it will grab the first word after the matched string and use it
3789 as the command name.
3790 If the command name begins with either '!', '%', or '^'
3791 .I screen
3792 will use the first word on the following line (if found) in preference to
3793 the just-found name.
3794 This helps csh users get better command names when using job control or
3795 history recall commands.
3797 Here's some .screenrc examples:
3799 screen -t top 2 nice top
3801 Adding this line to your .screenrc would start a nice-d version of the
3802 \*Qtop\*U command in window 2 named \*Qtop\*U rather than \*Qnice\*U.
3805         shelltitle '> |csh'
3806         screen 1
3809 These commands would start a shell with the given shelltitle.
3810 The title specified is an auto-title that would expect the prompt and
3811 the typed command to look something like the following:
3813 /usr/joe/src/dir> trn
3815 (it looks after the '> ' for the command name).
3816 The window status would show the name \*Qtrn\*U while the command was
3817 running, and revert to \*Qcsh\*U upon completion.
3819 bind R screen -t '% |root:' su
3821 Having this command in your .screenrc would bind the key
3822 sequence \*QC-a R\*U to the \*Qsu\*U command and give it an
3823 auto-title name of \*Qroot:\*U.
3824 For this auto-title to work, the screen could look something
3825 like this:
3828         % !em
3829         emacs file.c
3832 Here the user typed the csh history command \*Q!em\*U which ran the
3833 previously entered \*Qemacs\*U command.
3834 The window status would show \*Qroot:emacs\*U during the execution
3835 of the command, and revert to simply \*Qroot:\*U at its completion.
3838         bind o title
3839         bind E title ""
3840         bind u title (unknown)
3843 The first binding doesn't have any arguments, so it would prompt you
3844 for a title. when you type \*QC-a o\*U.
3845 The second binding would clear an auto-title's current setting (C-a E).
3846 The third binding would set the current window's title to \*Q(unknown)\*U
3847 (C-a u).
3849 One thing to keep in mind when adding a null title-escape-sequence to
3850 your prompt is that some shells (like the csh) count all the non-control
3851 characters as part of the prompt's length.
3852 If these invisible characters aren't a multiple of 8 then backspacing over
3853 a tab will result in an incorrect display.
3854 One way to get around this is to use a prompt like this:
3856 set prompt='^[[0000m^[k^[\e% '
3858 The escape-sequence \*Q<esc>[0000m\*U not only normalizes the character
3859 attributes, but all the zeros round the length of the invisible characters
3860 up to 8.
3861 Bash users will probably want to echo the escape sequence in the
3862 PROMPT_COMMAND:
3864 PROMPT_COMMAND='printf "\e033k\e033\e134"'
3866 (I used \*Q\134\*U to output a `\e' because of a bug in bash v1.04).
3869 .SH "THE VIRTUAL TERMINAL"
3870 Each window in a 
3871 .I screen
3872 session emulates a VT100 terminal, with some extra functions added. The
3873 VT100 emulator is hard-coded, no other terminal types can be emulated.
3875 Usually
3876 .I screen
3877 tries to emulate as much of the VT100/ANSI standard
3878 as possible. But if your terminal lacks certain capabilities,
3879 the emulation may not be complete. In these cases
3880 .I screen
3881 has to tell the applications that some of the features
3882 are missing. This is no problem on machines using termcap,
3883 because
3884 .I screen
3885 can use the $TERMCAP variable to
3886 customize the standard
3887 .I screen
3888 termcap.
3890 But if you do a
3891 rlogin on another machine or your machine supports only
3892 terminfo this method fails. Because of this,
3893 .I screen
3894 offers a way to deal with these cases. 
3895 Here is how it works:
3897 When 
3898 .I screen
3899 tries to figure out a terminal name for itself,
3900 it first looks
3901 for an entry named \*Qscreen.<term>\*U, where <term> is
3902 the contents of your $TERM variable.
3903 If no such entry exists,
3904 .I screen
3905 tries \*Qscreen\*U (or \*Qscreen-w\*U if the terminal is wide
3906 (132 cols or more)).
3907 If even this entry cannot be found, \*Qvt100\*U is used as a
3908 substitute.
3910 The idea is that if you have a terminal which doesn't
3911 support an important feature (e.g. delete char or clear to EOS)
3912 you can build a new termcap/terminfo entry for
3913 .I screen
3914 (named \*Qscreen.<dumbterm>\*U) in which this capability
3915 has been disabled. If this entry is installed on your
3916 machines you are able to do
3917 a rlogin and still keep the correct termcap/terminfo entry.
3918 The terminal name is put in the $TERM variable
3919 of all new windows.
3920 .I Screen
3921 also sets the $TERMCAP variable reflecting the capabilities
3922 of the virtual terminal emulated. Notice that, however, on machines
3923 using the terminfo database this variable has no effect.
3924 Furthermore, the variable $WINDOW is set to the window number
3925 of each window.
3927 The actual set of capabilities supported by the virtual terminal
3928 depends on the capabilities supported by the physical terminal.
3929 If, for instance, the physical terminal does not support underscore mode,
3930 .I screen
3931 does not put the `us' and `ue' capabilities into the window's $TERMCAP
3932 variable, accordingly.
3933 However, a minimum number of capabilities must be supported by a
3934 terminal in order to run
3935 .IR screen ;
3936 namely scrolling, clear screen, and direct cursor addressing
3937 (in addition,
3938 .I screen
3939 does not run on hardcopy terminals or on terminals that over-strike).
3941 Also, you can customize the $TERMCAP value used by
3942 .I screen
3943 by using the \*Qtermcap\*U .screenrc command, or
3944 by defining the variable $SCREENCAP prior to startup.
3945 When the is latter defined, its value will be copied verbatim into each
3946 window's $TERMCAP variable.
3947 This can either be the full terminal definition, or a filename where the
3948 terminal \*Qscreen\*U (and/or \*Qscreen-w\*U) is defined.
3950 Note that 
3951 .I screen
3952 honors the \*Qterminfo\*U .screenrc command if the system uses the
3953 terminfo database rather than termcap.
3955 When the boolean `G0' capability is present in the termcap entry
3956 for the terminal on which
3957 .I screen
3958 has been called, the terminal emulation of
3959 .I screen
3960 supports multiple character sets.
3961 This allows an application to make use of, for instance,
3962 the VT100 graphics character set or national character sets.
3963 The following control functions from ISO 2022 are supported:
3964 \fIlock shift G0\fP (\fISI\fP), \fIlock shift G1\fP (\fISO\fP),
3965 \fIlock shift G2\fP, \fIlock shift G3\fP, \fIsingle shift G2\fP,
3966 and \fIsingle shift G3\fP.
3967 When a virtual terminal is created or reset, the ASCII character
3968 set is designated as \fIG0\fP through \fIG3\fP.
3969 When the `G0' capability is present,
3970 .I screen
3971 evaluates the capabilities
3972 `S0', `E0', and `C0' if present. `S0' is the sequence the terminal uses
3973 to enable and start the graphics character set rather than \fISI\fP. 
3974 `E0' is the corresponding replacement for \fISO\fP. `C0' gives a character
3975 by character translation string that is used during semi-graphics mode. This 
3976 string is built like the `acsc' terminfo capability.
3978 When the `po' and `pf' capabilities are present in the terminal's
3979 termcap entry, applications running in a
3980 .I screen
3981 window can send output to the printer port of the terminal.
3982 This allows a user to have an application in one window
3983 sending output to a printer connected to the terminal, while all
3984 other windows are still active (the printer port is enabled
3985 and disabled again for each chunk of output).
3986 As a side-effect, programs running in different windows can
3987 send output to the printer simultaneously.
3988 Data sent to the printer is not displayed in the window.  The 
3989 .I info
3990 command displays a line starting `PRIN' while the printer is active.
3992 .I Screen
3993 maintains a hardstatus line for every window. If a window
3994 gets selected, the display's hardstatus will be updated to match
3995 the window's hardstatus line. If the display has no hardstatus
3996 the line will be displayed as a standard 
3997 .I screen 
3998 message.
3999 The hardstatus line can be changed with the ANSI Application
4000 Program Command (APC): \*QESC_<string>ESC\e\*U. As a convenience
4001 for xterm users the sequence \*QESC]0..2;<string>^G\*U is
4002 also accepted.
4004 Some capabilities are only put into the $TERMCAP
4005 variable of the virtual terminal if they can be efficiently
4006 implemented by the physical terminal.
4007 For instance, `dl' (delete line) is only put into the $TERMCAP
4008 variable if the terminal supports either delete line itself or
4009 scrolling regions. Note that this may provoke confusion, when 
4010 the session is reattached on a different terminal, as the value
4011 of $TERMCAP cannot be modified by parent processes.
4013 The "alternate screen" capability is not enabled by default.
4014 Set the \fBaltscreen\fP .screenrc command to enable it.
4016 The following is a list of control sequences recognized by
4017 .IR screen .
4018 \*Q(V)\*U and \*Q(A)\*U indicate VT100-specific and ANSI- or
4019 ISO-specific functions, respectively.
4021 .ta 22n
4022 .TP 27
4023 .B "ESC E"
4024 Next Line
4025 .TP 27
4026 .B "ESC D"
4027 Index
4028 .TP 27
4029 .B "ESC M"
4030 Reverse Index
4031 .TP 27
4032 .B "ESC H"
4033 Horizontal Tab Set
4034 .TP 27
4035 .B "ESC Z"
4036 Send VT100 Identification String
4037 .TP 27
4038 .BR "ESC 7" "   (V)"
4039 Save Cursor and Attributes
4040 .TP 27
4041 .BR "ESC 8" "   (V)"
4042 Restore Cursor and Attributes
4043 .TP 27
4044 .BR "ESC [s" "  (A)"
4045 Save Cursor and Attributes
4046 .TP 27
4047 .BR "ESC [u" "  (A)"
4048 Restore Cursor and Attributes
4049 .TP 27
4050 .B "ESC c"
4051 Reset to Initial State
4052 .TP 27
4053 .B "ESC g"
4054 Visual Bell
4055 .TP 27
4056 .B "ESC \fPPn\fB p"
4057 Cursor Visibility (97801)
4058 .TP 27
4059 \h'\w'ESC 'u'Pn = \fB6\fP
4060 Invisible
4061 .TP 27
4062 \h'\w'ESC Pn = 'u'\fB7\fP
4063 Visible
4064 .TP 27
4065 .BR "ESC =" "   (V)"
4066 Application Keypad Mode
4067 .TP 27
4068 .BR "ESC >" "   (V)"
4069 Numeric Keypad Mode
4070 .TP 27
4071 .BR "ESC # 8" " (V)"
4072 Fill Screen with E's
4073 .TP 27
4074 .BR "ESC \e" "  (A)"
4075 String Terminator
4076 .TP 27
4077 .BR "ESC ^" "   (A)"
4078 Privacy Message String (Message Line)
4079 .TP 27
4080 .B "ESC !"
4081 Global Message String (Message Line)
4082 .TP 27
4083 .B "ESC k"
4084 A.\|k.\|a. Definition String
4085 .TP 27
4086 .BR "ESC P" "   (A)"
4087 Device Control String.
4088 Outputs a string directly to the host
4089 terminal without interpretation.
4090 .TP 27
4091 .BR "ESC _" "   (A)"
4092 Application Program Command (Hardstatus)
4093 .TP 27
4094 .BR "ESC ] 0 ; string ^G" "     (A)"
4095 Operating System Command (Hardstatus, xterm title hack)
4096 .TP 27
4097 .BR "ESC ] 83 ; cmd ^G" "       (A)"
4098 Execute screen command. This only works if multi-user support is
4099 compiled into screen. The pseudo-user \*Q:window:\*U is used to
4100 check the access control list. Use \*Qaddacl :window: -rwx #?\*U to
4101 create a user with no rights and allow only the needed commands.
4102 .TP 27
4103 .BR "Control-N" "       (A)"
4104 Lock Shift G1 (SO)
4105 .TP 27
4106 .BR "Control-O" "       (A)"
4107 Lock Shift G0 (SI)
4108 .TP 27
4109 .BR "ESC n" "   (A)"
4110 Lock Shift G2
4111 .TP 27
4112 .BR "ESC o" "   (A)"
4113 Lock Shift G3
4114 .TP 27
4115 .BR "ESC N" "   (A)"
4116 Single Shift G2
4117 .TP 27
4118 .BR "ESC O" "   (A)"
4119 Single Shift G3
4120 .TP 27
4121 .BR "ESC ( \fPPcs" "    (A)"
4122 Designate character set as G0
4123 .TP 27
4124 .BR "ESC ) \fPPcs" "    (A)"
4125 Designate character set as G1
4126 .TP 27
4127 .BR "ESC * \fPPcs" "    (A)"
4128 Designate character set as G2
4129 .TP 27
4130 .BR "ESC + \fPPcs" "    (A)"
4131 Designate character set as G3
4132 .TP 27
4133 .B "ESC [ \fPPn\fB ; \fPPn\fB H"
4134 Direct Cursor Addressing
4135 .TP 27
4136 .B "ESC [ \fPPn\fB ; \fPPn\fB f"
4137 same as above
4138 .TP 27
4139 .B "ESC [ \fPPn\fB J"
4140 Erase in Display
4141 .TP 27
4142 \h'\w'ESC [ 'u'Pn = None or \fB0\fP
4143 From Cursor to End of Screen
4144 .TP 27
4145 \h'\w'ESC [ Pn = 'u'\fB1\fP
4146 From Beginning of Screen to Cursor
4147 .TP 27
4148 \h'\w'ESC [ Pn = 'u'\fB2\fP
4149 Entire Screen
4150 .TP 27
4151 .B "ESC [ \fPPn\fB K"
4152 Erase in Line
4153 .TP 27
4154 \h'\w'ESC [ 'u'Pn = None or \fB0\fP
4155 From Cursor to End of Line
4156 .TP 27
4157 \h'\w'ESC [ Pn = 'u'\fB1\fP
4158 From Beginning of Line to Cursor
4159 .TP 27
4160 \h'\w'ESC [ Pn = 'u'\fB2\fP
4161 Entire Line
4162 .TP 27
4163 .B "ESC [ \fPPn\fB X"
4164 Erase character
4165 .TP 27
4166 .B "ESC [ \fPPn\fB A"
4167 Cursor Up
4168 .TP 27
4169 .B "ESC [ \fPPn\fB B"
4170 Cursor Down
4171 .TP 27
4172 .B "ESC [ \fPPn\fB C"
4173 Cursor Right
4174 .TP 27
4175 .B "ESC [ \fPPn\fB D"
4176 Cursor Left
4177 .TP 27
4178 .B "ESC [ \fPPn\fB E"
4179 Cursor next line
4180 .TP 27
4181 .B "ESC [ \fPPn\fB F"
4182 Cursor previous line
4183 .TP 27
4184 .B "ESC [ \fPPn\fB G"
4185 Cursor horizontal position
4186 .TP 27
4187 .B "ESC [ \fPPn\fB `"
4188 same as above
4189 .TP 27
4190 .B "ESC [ \fPPn\fB d"
4191 Cursor vertical position
4192 .TP 27
4193 .B "ESC [ \fPPs\fB ;\fP...\fB; \fPPs\fB m"
4194 Select Graphic Rendition
4195 .TP 27
4196 \h'\w'ESC [ 'u'Ps = None or \fB0\fP
4197 Default Rendition
4198 .TP 27
4199 \h'\w'ESC [ Ps = 'u'\fB1\fP
4200 Bold
4201 .TP 27
4202 \h'\w'ESC [ Ps = 'u'\fB2\fP     (A)
4203 Faint
4204 .TP 27
4205 \h'\w'ESC [ Ps = 'u'\fB3\fP     (A)
4206 \fIStandout\fP Mode (ANSI: Italicized)
4207 .TP 27
4208 \h'\w'ESC [ Ps = 'u'\fB4\fP
4209 Underlined
4210 .TP 27
4211 \h'\w'ESC [ Ps = 'u'\fB5\fP
4212 Blinking
4213 .TP 27
4214 \h'\w'ESC [ Ps = 'u'\fB7\fP
4215 Negative Image
4216 .TP 27
4217 \h'\w'ESC [ Ps = 'u'\fB22\fP    (A)
4218 Normal Intensity
4219 .TP 27
4220 \h'\w'ESC [ Ps = 'u'\fB23\fP    (A)
4221 \fIStandout\fP Mode off (ANSI: Italicized off)
4222 .TP 27
4223 \h'\w'ESC [ Ps = 'u'\fB24\fP    (A)
4224 Not Underlined
4225 .TP 27
4226 \h'\w'ESC [ Ps = 'u'\fB25\fP    (A)
4227 Not Blinking
4228 .TP 27
4229 \h'\w'ESC [ Ps = 'u'\fB27\fP    (A)
4230 Positive Image
4231 .TP 27
4232 \h'\w'ESC [ Ps = 'u'\fB30\fP    (A)
4233 Foreground Black
4234 .TP 27
4235 \h'\w'ESC [ Ps = 'u'\fB31\fP    (A)
4236 Foreground Red
4237 .TP 27
4238 \h'\w'ESC [ Ps = 'u'\fB32\fP    (A)
4239 Foreground Green
4240 .TP 27
4241 \h'\w'ESC [ Ps = 'u'\fB33\fP    (A)
4242 Foreground Yellow
4243 .TP 27
4244 \h'\w'ESC [ Ps = 'u'\fB34\fP    (A)
4245 Foreground Blue
4246 .TP 27
4247 \h'\w'ESC [ Ps = 'u'\fB35\fP    (A)
4248 Foreground Magenta
4249 .TP 27
4250 \h'\w'ESC [ Ps = 'u'\fB36\fP    (A)
4251 Foreground Cyan
4252 .TP 27
4253 \h'\w'ESC [ Ps = 'u'\fB37\fP    (A)
4254 Foreground White
4255 .TP 27
4256 \h'\w'ESC [ Ps = 'u'\fB39\fP    (A)
4257 Foreground Default
4258 .TP 27
4259 \h'\w'ESC [ Ps = 'u'\fB40\fP    (A)
4260 Background Black
4261 .TP 27
4262 \h'\w'ESC [ Ps = 'u'\fB...\fP
4264 .TP 27
4265 \h'\w'ESC [ Ps = 'u'\fB49\fP    (A)
4266 Background Default
4267 .TP 27
4268 .B "ESC [ \fPPn\fB g"
4269 Tab Clear
4270 .TP 27
4271 \h'\w'ESC [ 'u'Pn = None or \fB0\fP
4272 Clear Tab at Current Position
4273 .TP 27
4274 \h'\w'ESC [ Ps = 'u'\fB3\fP
4275 Clear All Tabs
4276 .TP 27
4277 .BR "ESC [ \fPPn\fB ; \fPPn\fB r" "     (V)"
4278 Set Scrolling Region
4279 .TP 27
4280 .BR "ESC [ \fPPn\fB I" "        (A)"
4281 Horizontal Tab
4282 .TP 27
4283 .BR "ESC [ \fPPn\fB Z" "        (A)"
4284 Backward Tab
4285 .TP 27
4286 .BR "ESC [ \fPPn\fB L" "        (A)"
4287 Insert Line
4288 .TP 27
4289 .BR "ESC [ \fPPn\fB M" "        (A)"
4290 Delete Line
4291 .TP 27
4292 .BR "ESC [ \fPPn\fB @" "        (A)"
4293 Insert Character
4294 .TP 27
4295 .BR "ESC [ \fPPn\fB P" "        (A)"
4296 Delete Character
4297 .TP 27
4298 .B "ESC [ \fPPn\fB S"
4299 Scroll Scrolling Region Up
4300 .TP 27
4301 .B "ESC [ \fPPn\fB T"
4302 Scroll Scrolling Region Down
4303 .TP 27
4304 .B "ESC [ \fPPn\fB ^"
4305 same as above
4306 .TP 27
4307 .B "ESC [ \fPPs\fB ;\fP...\fB; \fPPs\fB h"
4308 Set Mode
4309 .TP 27
4310 .B "ESC [ \fPPs\fB ;\fP...\fB; \fPPs\fB l"
4311 Reset Mode
4312 .TP 27
4313 \h'\w'ESC [ 'u'Ps = \fB4\fP     (A)
4314 Insert Mode
4315 .TP 27
4316 \h'\w'ESC [ Ps = 'u'\fB20\fP    (A)
4317 \fIAutomatic Linefeed\fP Mode
4318 .TP 27
4319 \h'\w'ESC [ Ps = 'u'\fB34\fP
4320 Normal Cursor Visibility
4321 .TP 27
4322 \h'\w'ESC [ Ps = 'u'\fB?1\fP    (V)
4323 Application Cursor Keys
4324 .TP 27
4325 \h'\w'ESC [ Ps = 'u'\fB?3\fP    (V)
4326 Change Terminal Width to 132 columns
4327 .TP 27
4328 \h'\w'ESC [ Ps = 'u'\fB?5\fP    (V)
4329 Reverse Video
4330 .TP 27
4331 \h'\w'ESC [ Ps = 'u'\fB?6\fP    (V)
4332 \fIOrigin\fP Mode
4333 .TP 27
4334 \h'\w'ESC [ Ps = 'u'\fB?7\fP    (V)
4335 \fIWrap\fP Mode
4336 .TP 27
4337 \h'\w'ESC [ Ps = 'u'\fB?9\fP
4338 X10 mouse tracking
4339 .TP 27
4340 \h'\w'ESC [ Ps = 'u'\fB?25\fP   (V)
4341 Visible Cursor
4342 .TP 27
4343 \h'\w'ESC [ Ps = 'u'\fB?47\fP
4344 Alternate Screen (old xterm code)
4345 .TP 27
4346 \h'\w'ESC [ Ps = 'u'\fB?1000\fP (V)
4347 VT200 mouse tracking
4348 .TP 27
4349 \h'\w'ESC [ Ps = 'u'\fB?1047\fP
4350 Alternate Screen (new xterm code)
4351 .TP 27
4352 \h'\w'ESC [ Ps = 'u'\fB?1049\fP
4353 Alternate Screen (new xterm code)
4354 .TP 27
4355 .BR "ESC [ 5 i" "       (A)"
4356 Start relay to printer (ANSI Media Copy)
4357 .TP 27
4358 .BR "ESC [ 4 i" "       (A)"
4359 Stop relay to printer (ANSI Media Copy)
4360 .TP 27
4361 .B "ESC [ 8 ; \fPPh\fB ; \fPPw\fB t"
4362 Resize the window to `Ph' lines and `Pw' columns (SunView special)
4363 .TP 27
4364 .B "ESC [ c"
4365 Send VT100 Identification String
4366 .TP 27
4367 .B "ESC [ x"
4368 Send Terminal Parameter Report
4369 .TP 27
4370 .B "ESC [ > c"
4371 Send VT220 Secondary Device Attributes String
4372 .TP 27
4373 .B "ESC [ 6 n"
4374 Send Cursor Position Report
4377 .SH "INPUT TRANSLATION"
4378 In order to do a full VT100 emulation 
4379 .I screen
4380 has to detect
4381 that a sequence of characters in the input stream was generated
4382 by a keypress on the user's keyboard and insert the VT100
4383 style escape sequence. \fIScreen\fP has a very flexible way of doing
4384 this by making it possible to map arbitrary commands on arbitrary
4385 sequences of characters. For standard VT100 emulation the command
4386 will always insert a string in the input buffer of the window
4387 (see also command \fBstuff\fP in the command table).
4388 Because the sequences generated by a keypress can
4389 change after a reattach from a different terminal type, it is
4390 possible to bind commands to the termcap name of the keys.
4391 \fIScreen\fP will insert the correct binding after each
4392 reattach. See the \fBbindkey\fP command for further details on the
4393 syntax and examples.
4395 Here is the table of the default key bindings. (A) means that the
4396 command is executed if the keyboard is switched into application
4397 mode.
4399 .ta 18n 34n 50n
4401 Key name        Termcap name    Command
4402 \l'54n'
4403 .ta 22n 34n 50n
4404 Cursor up       ku      stuff \e033[A
4405                 stuff \e033OA   (A)
4406 Cursor down     kd      stuff \e033[B
4407                 stuff \e033OB   (A)
4408 Cursor right    kr      stuff \e033[C
4409                 stuff \e033OC   (A)
4410 Cursor left     kl      stuff \e033[D
4411                 stuff \e033OD   (A)
4412 Function key 0  k0      stuff \e033[10~
4413 Function key 1  k1      stuff \e033OP
4414 Function key 2  k2      stuff \e033OQ
4415 Function key 3  k3      stuff \e033OR
4416 Function key 4  k4      stuff \e033OS
4417 Function key 5  k5      stuff \e033[15~
4418 Function key 6  k6      stuff \e033[17~
4419 Function key 7  k7      stuff \e033[18~
4420 Function key 8  k8      stuff \e033[19~
4421 Function key 9  k9      stuff \e033[20~
4422 Function key 10 k;      stuff \e033[21~
4423 Function key 11 F1      stuff \e033[23~
4424 Function key 12 F2      stuff \e033[24~
4425 Home    kh      stuff \e033[1~
4426 End     kH      stuff \e033[4~
4427 Insert  kI      stuff \e033[2~
4428 Delete  kD      stuff \e033[3~
4429 Page up kP      stuff \e033[5~
4430 Page down       kN      stuff \e033[6~
4431 Keypad 0        f0      stuff 0
4432                 stuff \e033Op   (A)
4433 Keypad 1        f1      stuff 1
4434                 stuff \e033Oq   (A)
4435 Keypad 2        f2      stuff 2
4436                 stuff \e033Or   (A)
4437 Keypad 3        f3      stuff 3
4438                 stuff \e033Os   (A)
4439 Keypad 4        f4      stuff 4
4440                 stuff \e033Ot   (A)
4441 Keypad 5        f5      stuff 5
4442                 stuff \e033Ou   (A)
4443 Keypad 6        f6      stuff 6
4444                 stuff \e033Ov   (A)
4445 Keypad 7        f7      stuff 7
4446                 stuff \e033Ow   (A)
4447 Keypad 8        f8      stuff 8
4448                 stuff \e033Ox   (A)
4449 Keypad 9        f9      stuff 9
4450                 stuff \e033Oy   (A)
4451 Keypad +        f+      stuff +
4452                 stuff \e033Ok   (A)
4453 Keypad -        f-      stuff -
4454                 stuff \e033Om   (A)
4455 Keypad *        f*      stuff *
4456                 stuff \e033Oj   (A)
4457 Keypad /        f/      stuff /
4458                 stuff \e033Oo   (A)
4459 Keypad =        fq      stuff =
4460                 stuff \e033OX   (A)
4461 Keypad .        f.      stuff .
4462                 stuff \e033On   (A)
4463 Keypad ,        f,      stuff ,
4464                 stuff \e033Ol   (A)
4465 Keypad enter    fe      stuff \e015
4466                 stuff \e033OM   (A)
4470 .SH SPECIAL TERMINAL CAPABILITIES
4471 The following table describes all terminal capabilities
4472 that are recognized by 
4473 .I screen
4474 and are not in the termcap(5) manual.
4475 You can place these capabilities in your termcap entries (in
4476 `/etc/termcap') or use them with the commands `termcap', `terminfo' and
4477 `termcapinfo' in your screenrc files. It is often not possible to place
4478 these capabilities in the terminfo database.
4480 .ta 5n
4481 .TP 13
4482 .BI LP "        (bool)"
4483 Terminal has VT100 style margins (`magic margins'). Note that
4484 this capability is obsolete because 
4485 .I screen
4486 uses the standard 'xn' instead.
4487 .TP 13
4488 .BI Z0 "        (str)"
4489 Change width to 132 columns.
4490 .TP 13
4491 .BI Z1 "        (str)"
4492 Change width to 80 columns.
4493 .TP 13
4494 .BI WS "        (str)"
4495 Resize display. This capability has the desired width and height as
4496 arguments. \fISunView(tm)\fP example: '\eE[8;%d;%dt'.
4497 .TP 13
4498 .BI NF "        (bool)"
4499 Terminal doesn't need flow control. Send ^S and ^Q direct to
4500 the application. Same as 'flow off'. The opposite of this
4501 capability is 'nx'.
4502 .TP 13
4503 .BI G0 "        (bool)"
4504 Terminal can deal with ISO 2022 font selection sequences.
4505 .TP 13
4506 .BI S0 "        (str)"
4507 Switch charset 'G0' to the specified charset. Default
4508 is '\eE(%.'.
4509 .TP 13
4510 .BI E0 "        (str)"
4511 Switch charset 'G0' back to standard charset. Default
4512 is '\eE(B'.
4513 .TP 13
4514 .BI C0 "        (str)"
4515 Use the string as a conversion table for font '0'. See
4516 the 'ac' capability for more details.
4517 .TP 13
4518 .BI CS "        (str)"
4519 Switch cursor-keys to application mode.
4520 .TP 13
4521 .BI CE "        (str)"
4522 Switch cursor-keys back to normal mode.
4523 .TP 13
4524 .BI AN "        (bool)"
4525 Turn on autonuke. See the 'autonuke' command for more details.
4526 .TP 13
4527 .BI OL "        (num)"
4528 Set the output buffer limit. See the 'obuflimit' command for more details.
4529 .TP 13
4530 .BI KJ "        (str)"
4531 Set the encoding of the terminal. See the 'encoding' command for
4532 valid encodings.
4533 .TP 13
4534 .BI AF "        (str)"
4535 Change character foreground color in an ANSI conform way. This
4536 capability will almost always be set to '\eE[3%dm' ('\eE[3%p1%dm'
4537 on terminfo machines).
4538 .TP 13
4539 .BI AB "        (str)"
4540 Same as 'AF', but change background color.
4541 .TP 13
4542 .BI AX "        (bool)"
4543 Does understand ANSI set default fg/bg color (\eE[39m / \eE[49m).
4544 .TP 13
4545 .BI XC "        (str)"
4546 Describe a translation of characters to strings depending on the
4547 current font. More details follow in the next section.
4548 .TP 13
4549 .BI XT "        (bool)"
4550 Terminal understands special xterm sequences (OSC, mouse tracking).
4551 .TP 13
4552 .BI C8 "        (bool)"
4553 Terminal needs bold to display high-intensity colors (e.g. Eterm).
4554 .TP 13
4555 .BI TF "        (bool)"
4556 Add missing capabilities to the termcap/info entry. (Set by default).
4558 .SH CHARACTER TRANSLATION
4559 \fIScreen\fP has a powerful mechanism to translate characters to arbitrary
4560 strings depending on the current font and terminal type.
4561 Use this feature if you want to work with a common standard character
4562 set (say ISO8851-latin1) even on terminals that scatter the more
4563 unusual characters over several national language font pages.
4565 Syntax:
4567     \fBXC=\fP\fI<charset-mapping>\fP{\fB,,\fP\fI<charset-mapping>\fP}
4568     \fI<charset-mapping>\fP := \fI<designator><template>\fP{\fB,\fP\fI<mapping>\fP}
4569     \fI<mapping>\fP := \fI<char-to-be-mapped><template-arg>\fP
4572 The things in braces may be repeated any number of times.
4574 A \fI<charset-mapping>\fP tells 
4575 .I screen
4576 how to map characters
4577 in font \fI<designator>\fP ('B': Ascii, 'A': UK, 'K': German, etc.)
4578 to strings. Every \fI<mapping>\fP describes to what string a single
4579 character will be translated. A template mechanism is used, as 
4580 most of the time the codes have a lot in common (for example
4581 strings to switch to and from another charset). Each occurrence
4582 of '%' in \fI<template>\fP gets substituted with the \fI<template-arg>\fP
4583 specified together with the character. If your strings are not
4584 similar at all, then use '%' as a template and place the full
4585 string in \fI<template-arg>\fP. A quoting mechanism was added to make
4586 it possible to use a real '%'. The '\e' character quotes the
4587 special characters '\e', '%', and ','.
4589 Here is an example:
4591     termcap hp700 'XC=B\eE(K%\eE(B,\e304[,\e326\e\e\e\e,\e334]'
4593 This tells
4594 .I screen
4595 how to translate ISOlatin1 (charset 'B')
4596 upper case umlaut characters on a hp700 terminal that has a
4597 German charset. '\e304' gets translated to '\eE(K[\eE(B' and so on.
4598 Note that this line gets parsed *three* times before the internal
4599 lookup table is built, therefore a lot of quoting is needed to
4600 create a single '\e'.
4602 Another extension was added to allow more emulation: If a mapping
4603 translates the unquoted '%' char, it will be sent to the terminal
4604 whenever 
4605 .I screen
4606 switches to the corresponding \fI<designator>\fP. In this
4607 special case the template is assumed to be just '%' because
4608 the charset switch sequence and the character mappings normally
4609 haven't much in common.
4611 This example shows one use of the extension:
4613     termcap xterm 'XC=K%,%\eE(B,[\e304,\e\e\e\e\e326,]\e334'
4615 Here, a part of the German ('K') charset is emulated on an xterm.
4616 If 
4617 .I screen
4618 has to change to the 'K' charset, '\eE(B' will be sent
4619 to the terminal, i.e. the ASCII charset is used instead. The
4620 template is just '%', so the mapping is straightforward: '['
4621 to '\e304', '\e' to '\e326', and ']' to '\e334'.
4623 .SH ENVIRONMENT
4624 .PD 0
4625 .IP COLUMNS 15
4626 Number of columns on the terminal (overrides termcap entry).
4627 .IP HOME
4628 Directory in which to look for .screenrc.
4629 .IP LINES 
4630 Number of lines on the terminal (overrides termcap entry).
4631 .IP LOCKPRG
4632 Screen lock program.
4633 .IP NETHACKOPTIONS
4634 Turns on nethack option.
4635 .IP PATH
4636 Used for locating programs to run.
4637 .IP SCREENCAP
4638 For customizing a terminal's TERMCAP value.
4639 .IP SCREENDIR
4640 Alternate socket directory.
4641 .IP SCREENRC
4642 Alternate user screenrc file.
4643 .IP SHELL
4644 Default shell program for opening windows (default \*Q/bin/sh\*U).
4645 .IP STY
4646 Alternate socket name.
4647 .IP SYSSCREENRC
4648 Alternate system screenrc file.
4649 .IP TERM
4650 Terminal name.
4651 .IP TERMCAP
4652 Terminal description.
4653 .IP WINDOW
4654 Window number of a window (at creation time).
4656 .SH FILES
4657 .PD 0
4658 .IP .../screen-4.?.??/etc/screenrc 34
4659 .IP .../screen-4.?.??/etc/etcscreenrc
4660 Examples in the 
4661 .I screen
4662 distribution package for private and global initialization files.
4663 .IP $SYSSCREENRC 
4664 .IP /usr/local/etc/screenrc
4665 .I screen
4666 initialization commands
4667 .IP $SCREENRC
4668 .IP $HOME/.screenrc
4669 Read in after /usr/local/etc/screenrc
4670 .IP $SCREENDIR/S-<login>
4671 .IP /local/screens/S-<login>
4672 Socket directories (default)
4673 .IP /usr/tmp/screens/S-<login>
4674 Alternate socket directories.
4675 .IP "<socket directory>/.termcap"
4676 Written by the "termcap" output function
4677 .IP /usr/tmp/screens/screen-exchange
4679 .IP /tmp/screen-exchange
4680 .I screen
4681 `interprocess communication buffer'
4682 .IP hardcopy.[0-9]
4683 Screen images created by the hardcopy function
4684 .IP screenlog.[0-9]
4685 Output log files created by the log function
4686 .IP /usr/lib/terminfo/?/*
4688 .IP /etc/termcap
4689 Terminal capability databases
4690 .IP /etc/utmp
4691 Login records
4692 .IP $LOCKPRG
4693 Program that locks a terminal.
4696 .SH "SEE ALSO"
4697 termcap(5), utmp(5), vi(1), captoinfo(1), tic(1)
4700 .SH AUTHORS
4701 Originally created by Oliver Laumann, this latest version was
4702 produced by Wayne Davison, Juergen Weigert and Michael Schroeder.
4704 .SH COPYLEFT
4706 Copyright (C) 1993-2003
4707         Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de)
4708         Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de)
4709 Copyright (C) 1987 Oliver Laumann
4712 This program is free software; you can redistribute it and/or modify
4713 it under the terms of the GNU General Public License as published by
4714 the Free Software Foundation; either version 2, or (at your option)
4715 any later version.
4717 This program is distributed in the hope that it will be useful,
4718 but WITHOUT ANY WARRANTY; without even the implied warranty of
4719 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4720 GNU General Public License for more details.
4722 You should have received a copy of the GNU General Public License
4723 along with this program (see the file COPYING); if not, write to the
4724 Free Software Foundation, Inc.,
4725 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
4727 .SH CONTRIBUTORS
4729 Ken Beal (kbeal@amber.ssd.csd.harris.com),
4730 Rudolf Koenig (rfkoenig@immd4.informatik.uni-erlangen.de),
4731 Toerless Eckert (eckert@immd4.informatik.uni-erlangen.de), 
4732 Wayne Davison (davison@borland.com),
4733 Patrick Wolfe (pat@kai.com, kailand!pat),
4734 Bart Schaefer (schaefer@cse.ogi.edu),
4735 Nathan Glasser (nathan@brokaw.lcs.mit.edu),
4736 Larry W. Virden (lvirden@cas.org),
4737 Howard Chu (hyc@hanauma.jpl.nasa.gov),
4738 Tim MacKenzie (tym@dibbler.cs.monash.edu.au),
4739 Markku Jarvinen (mta@{cc,cs,ee}.tut.fi),
4740 Marc Boucher (marc@CAM.ORG),
4741 Doug Siebert (dsiebert@isca.uiowa.edu),
4742 Ken Stillson (stillson@tsfsrv.mitre.org),
4743 Ian Frechett (frechett@spot.Colorado.EDU),
4744 Brian Koehmstedt (bpk@gnu.ai.mit.edu),
4745 Don Smith (djs6015@ultb.isc.rit.edu),
4746 Frank van der Linden (vdlinden@fwi.uva.nl),
4747 Martin Schweikert (schweik@cpp.ob.open.de),
4748 David Vrona (dave@sashimi.lcu.com),
4749 E. Tye McQueen (tye%spillman.UUCP@uunet.uu.net),
4750 Matthew Green (mrg@eterna.com.au),
4751 Christopher Williams (cgw@pobox.com),
4752 Matt Mosley (mattm@access.digex.net),
4753 Gregory Neil Shapiro (gshapiro@wpi.WPI.EDU),
4754 Johannes Zellner (johannes@zellner.org),
4755 Pablo Averbuj (pablo@averbuj.com).
4759 .SH VERSION
4760 This is version 4.0.2. Its roots are a merge of a custom version
4761 2.3PR7 by Wayne Davison
4762 and several enhancements to Oliver Laumann's version 2.0. Note that all versions
4763 numbered 2.x are copyright by Oliver Laumann. 
4765 .SH AVAILABILITY
4766 The latest official release of 
4767 .I screen
4768 available via anonymous ftp from gnudist.gnu.org, nic.funet.fi or any other 
4769 .I GNU 
4770 distribution site. The home site of
4771 .I screen
4772 is ftp.uni-erlangen.de, in the directory
4773 pub/utilities/screen. The subdirectory `private' contains the latest beta
4774 testing release. If you want to help, send a note to
4775 screen@uni-erlangen.de.
4777 .SH BUGS
4779 .IP \(bu 3
4780 `dm' (delete mode) and `xs' are not handled
4781 correctly (they are ignored). `xn' is treated as a magic-margin
4782 indicator.
4783 .IP \(bu
4784 .I Screen
4785 has no clue about double-high or double-wide characters.         
4786 But this is the only area where 
4787 .I vttest
4788 is allowed to fail.
4789 .IP \(bu
4790 It is not possible to change the environment variable $TERMCAP when 
4791 reattaching under a different terminal type.
4792 .IP \(bu
4793 The support of terminfo based systems is very limited. Adding extra
4794 capabilities to $TERMCAP may not have any effects.
4795 .IP \(bu
4796 .I Screen
4797 does not make use of hardware tabs.
4798 .IP \(bu
4799 .I Screen
4800 must be installed as set-uid with owner root on most systems in order
4801 to be able to correctly change the owner of the tty device file for
4802 each window.
4803 Special permission may also be required to write the file \*Q/etc/utmp\*U.
4804 .IP \(bu
4805 Entries in \*Q/etc/utmp\*U are not removed when
4806 .I screen
4807 is killed with SIGKILL.
4808 This will cause some programs (like "w" or "rwho")
4809 to advertise that a user is logged on who really isn't.
4810 .IP \(bu
4811 .I Screen
4812 may give a strange warning when your tty has no utmp entry.
4813 .IP \(bu
4814 When the modem line was hung up, 
4815 .I screen
4816 may not automatically detach (or quit)
4817 unless the device driver is configured to send a HANGUP signal. 
4818 To detach a 
4819 .I screen
4820 session use the -D or -d command line option.
4821 .IP \(bu
4822 If a password is set, the command line options -d and -D still detach a 
4823 session without asking.
4824 .IP \(bu
4825 Both \*Qbreaktype\*U and \*Qdefbreaktype\*U change the break generating
4826 method used by all terminal devices. The first should change a window
4827 specific setting, where the latter should change only the default for new 
4828 windows.
4829 .IP \(bu
4830 When attaching to a multiuser session, the user's .screenrc file is not
4831 sourced. Each user's personal settings have to be included in the .screenrc
4832 file from which the session is booted, or have to be changed manually.
4833 .IP \(bu
4834 A weird imagination is most useful to gain full advantage of all the features.
4835 .IP \(bu
4836 Send bug-reports, fixes, enhancements, t-shirts, money, beer & pizza to
4837 .BR screen@uni-erlangen.de .