home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume27 / screen-3.5.1 / part09 < prev    next >
Text File  |  1993-08-08  |  91KB  |  2,720 lines

  1. Newsgroups: comp.sources.unix
  2. From: screen@uni-erlangen.de (Juergen & Michael)
  3. Subject: v27i022: screen-3.5.1 - full-screen window manager/multiplexor, Part09/10
  4. References: <1.744844979.5722@gw.home.vix.com>
  5. Sender: unix-sources-moderator@gw.home.vix.com
  6. Approved: vixie@gw.home.vix.com
  7.  
  8. Submitted-By: screen@uni-erlangen.de (Juergen & Michael)
  9. Posting-Number: Volume 27, Issue 22
  10. Archive-Name: screen-3.5.1/part09
  11.  
  12. #! /bin/sh
  13. # This is a shell archive.  Remove anything before this line, then unpack
  14. # it by saving it into a file and typing "sh file".  To overwrite existing
  15. # files, type "sh file -c".  You can also feed this as standard input via
  16. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  17. # will see the following message at the end:
  18. #        "End of archive 9 (of 10)."
  19. # Contents:  doc/screen.1
  20. # Wrapped by vixie@gw.home.vix.com on Sun Aug  8 14:19:12 1993
  21. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  22. if test -f 'doc/screen.1' -a "${1}" != "-c" ; then 
  23.   echo shar: Will not clobber existing file \"'doc/screen.1'\"
  24. else
  25. echo shar: Extracting \"'doc/screen.1'\" \(86513 characters\)
  26. sed "s/^X//" >'doc/screen.1' <<'END_OF_FILE'
  27. X.TH SCREEN 1 "2 Aug 1993"
  28. X.if n .ds Q \&"
  29. X.if n .ds U \&"
  30. X.if t .ds Q ``
  31. X.if t .ds U ''
  32. X.UC 4
  33. X.SH NAME
  34. Xscreen \- screen manager with VT100/ANSI terminal emulation
  35. X
  36. X
  37. X.SH SYNOPSIS
  38. X.B screen
  39. X[
  40. X.B \-\fIoptions\fP
  41. X] [
  42. X.B \fIcmd\fP
  43. X[
  44. X.B \fIargs\fP
  45. X] ]
  46. X.br
  47. X.B screen \-r
  48. X[ [\fIpid.\fP]\fItty\fP[\fI.host\fP] ]
  49. X.ta .5i 1.8i
  50. X
  51. X
  52. X.SH DESCRIPTION
  53. X.I Screen
  54. Xis a full-screen window manager that
  55. Xmultiplexes a physical terminal between several processes (typically
  56. Xinteractive shells).
  57. XEach virtual terminal provides the functions
  58. Xof a DEC VT100 terminal and, in addition, several control functions
  59. Xfrom the ANSI X3.64 (ISO 6429) and ISO 2022 standards
  60. X(e.\|g. insert/delete line and support for multiple character sets).
  61. XThere is a scrollback history buffer for each virtual terminal and a 
  62. Xcopy-and-paste mechanism that allows moving text regions between
  63. Xwindows.
  64. X.PP 
  65. XWhen
  66. X.I screen
  67. Xis called, it creates a single window with a shell in it (or the specified
  68. Xcommand) and then gets out of your way so that you can use the program as you
  69. Xnormally would.
  70. XThen, at any time, you can create new (full-screen) windows with other programs
  71. Xin them (including more shells), kill existing windows, view a list of 
  72. Xwindows, turn output logging on and off, copy-and-paste text between
  73. Xwindows, view the scrollback history, switch between windows
  74. Xin whatever manner you wish, etc.
  75. XWhen a program terminates,
  76. X.I screen
  77. X(per default) kills the window that contained it.
  78. XIf this window was in the foreground, the display switches to the previous
  79. Xwindow; if none are left,
  80. X.I screen
  81. Xexits.
  82. X.PP
  83. XEverything you type is sent to the program running in the current window.
  84. XThe only exception to this is the one keystroke that is used to initiate
  85. Xa command to the window manager.
  86. XBy default, each command begins with a control-a (abbreviated C-a from
  87. Xnow on), and is followed by one other keystroke.
  88. XThe command character and all the key bindings can be fully customized
  89. Xto be anything you like, though they are always two characters in length.
  90. X.PP
  91. XThe standard way to create a new window is to type \*QC-a c\*U.
  92. XThis creates a new window running a shell and switches to that
  93. Xwindow immediately, regardless of the state of the process running
  94. Xin the current window.
  95. XSimilarly, you can create a new window with a custom command in it by
  96. Xfirst binding the command to a keystroke (in your .screenrc file or at the 
  97. X\*QC-a :\*U command line) and
  98. Xthen using it just like the \*QC-a c\*U command.
  99. XIn addition, new windows can be created by running a command like:
  100. X.IP
  101. Xscreen emacs prog.c
  102. X.PP
  103. Xfrom a shell prompt within a previously created window.
  104. XThis will not run another copy of 
  105. X.IR screen ,
  106. Xbut will instead supply the command name and its arguments to the window 
  107. Xmanager (specified in the $STY environment variable) who will use it to
  108. Xcreate the new window.
  109. XThe above example would start the emacs editor (editing prog.c) and switch
  110. Xto its window.
  111. X.PP
  112. XIf \*Q/etc/utmp\*U is writable by
  113. X.IR screen ,
  114. Xan appropriate record will be written to this file for each window, and
  115. Xremoved when the window is terminated.
  116. XThis is useful for working with \*Qtalk\*U, \*Qscript\*U, \*Qshutdown\*U,
  117. X\*Qrsend\*U, \*Qsccs\*U and other similar programs that use the utmp
  118. Xfile to determine who you are. As long as 
  119. X.I screen
  120. Xis active on your terminal,
  121. Xthe terminal's own record is removed from the utmp file. See also \*QC-a L\*U.
  122. X
  123. X
  124. X.SH GETTING STARTED
  125. XBefore you begin to use
  126. X.I screen
  127. Xyou'll need to make sure you have correctly selected your terminal type,
  128. Xjust as you would for any other termcap/terminfo program.
  129. X(You can do this by using
  130. X.IR tset
  131. Xfor example.)
  132. X.PP
  133. XIf you're impatient and want to get started without doing a lot more reading,
  134. Xyou should remember this one command:  \*QC-a ?\*U.
  135. XTyping these two characters will display a list of the available
  136. X.I screen
  137. Xcommands and their bindings. Each keystroke is discussed in
  138. Xthe section \*QDEFAULT KEY BINDINGS\*U. The manual section \*QCUSTOMIZATION\*U 
  139. Xdeals with the contents of your .screenrc.
  140. X.PP
  141. XIf possible, choose a version of your terminal's termcap that has automatic
  142. Xmargins turned \fIoff\fP.
  143. XThis will ensure an accurate and optimal update of the screen
  144. Xin all circumstances.
  145. XThe next best thing is an auto-margin terminal that allows the last position
  146. Xon the screen to be updated without scrolling the screen (such as a vt100).
  147. XThis also allows the entire screen to be updated.
  148. XLastly, if all you've got is a \*Qtrue\*U auto-margin terminal
  149. X.I screen
  150. Xwill be content to use it, but updating a character put into the last position
  151. Xon the screen may not be possible until the screen scrolls or the character
  152. Xis moved into a safe position in some other way.
  153. XThis delay can be shortened by using a terminal with insert-character
  154. Xcapability.
  155. X.PP
  156. XIf your terminal is of the second type (firm-margined `am'), you will
  157. Xwant to let
  158. X.I screen
  159. Xknow about this, since a normal termcap doesn't distinguish this type of
  160. Xautomatic margins from a \*Qtrue\*U `am' terminal.
  161. XYou do this by specifying the `LP' capability in your termcap
  162. X(see the \*Qtermcap\*U .screenrc command), or by using the
  163. X.B \-L
  164. Xcommand-line option.
  165. X.I Screen
  166. Xneeds this information to correctly update the screen. Note that a `xv' together
  167. Xwith an `am' flag effects like `LP'.
  168. X.PP
  169. XIf you are using a \*Qtrue\*U auto-margin terminal (no `LP') at low baud
  170. Xrates, you may want to turn on a more optimal output mode by including the
  171. Xflag `OP' in your termcap entry, or by specifying the
  172. X.B \-O
  173. Xcommand-line option.
  174. XThe trade-off is that
  175. X.I screen
  176. Xwill no-longer accurately emulate the vt100's line-end quirks (e.\|g. the
  177. Xscreen will scroll after putting \fIone\fP character in the last screen
  178. Xposition).
  179. X
  180. X
  181. X.SH "COMMAND-LINE OPTIONS"
  182. XScreen has the following command-line options:
  183. X.TP 5
  184. X.B \-a
  185. Xinclude \fIall\fP capabilities (with some minor exceptions) in each
  186. Xwindow's termcap, even if
  187. X.I screen
  188. Xmust redraw parts of the display in order to implement a function.
  189. X.TP 5
  190. X.B \-A
  191. XAdapt the sizes of all windows to the size of the current terminal. 
  192. XBy default,
  193. X.I screen
  194. Xtries to restore its old window sizes when attaching to resizeable terminals
  195. X(those with \*QWS\*U in its description, e.g. suncmd or some xterm). 
  196. X.TP 5
  197. X.BI "\-c " file
  198. Xoverride the default configuration file from \*Q$HOME/.screenrc\*U
  199. Xto \fIfile\fP.
  200. X.TP 5
  201. X.BR \-d | \-D " [" \fIpid.tty.host ]
  202. Xdoes not start
  203. X.IR screen ,
  204. Xbut detaches the elsewhere running 
  205. X.I screen
  206. Xsession. It has the same effect as typing \*QC-a d\*U from 
  207. X.I screen's
  208. Xcontrolling terminal. \fB\-D\fP is the equivalent to the power detach key.
  209. XIf no session can be detached, this option is ignored. 
  210. XThe combination \*Qscreen \-D \-r\*U can be used to `transport' the elsewhere 
  211. Xrunning session to this terminal and logout there. 
  212. XNote: It is a good idea to have the status of your sessions checked by means of
  213. X\*Qscreen \-list\*U.
  214. X.TP 5
  215. X.BI "\-e " xy
  216. Xspecifies the command character to be \fIx\fP and the character generating a
  217. Xliteral command character to \fIy\fP (when typed after the command character).
  218. XThe default is \*QC-a\*U and `a', which can be specified as \*Q-e^Aa\*U.
  219. XSee the \*Qescape\*U .screenrc command for more details.
  220. X.TP 5
  221. X.BR \-f\fP ", " \-fn ", and " \-fa
  222. Xturns flow-control on, off, or \*Qautomatic switching mode\*U.
  223. XThis can also be defined through the \*Qdefflow\*U .screenrc command.
  224. X.TP 5
  225. X.BI "\-h " num
  226. XSpecifies the history scrollback buffer to be \fInum\fP lines high.
  227. X.TP 5
  228. X.B \-i
  229. Xwill cause the interrupt key (usually C-c) to interrupt the display
  230. Ximmediately when flow-control is on.
  231. XSee the \*Qdefflow\*U .screenrc command for details.
  232. XThe use of this option is discouraged.
  233. X.TP 5
  234. X.BR \-l " and " \-ln
  235. Xturns login mode on or off (for /etc/utmp updating).
  236. XThis can also be defined through the \*Qdeflogin\*U .screenrc command.
  237. X.TP 5
  238. X.BR \-ls " and " \-list
  239. Xdoes not start
  240. X.IR screen ,
  241. Xbut prints a list of
  242. X.I pid.tty.host
  243. Xstrings identifying your 
  244. X.I screen
  245. Xsessions.
  246. XSessions marked `detached' can be resumed with \*Qscreen -r\*U. Those marked 
  247. X`attached' are running and have a controlling terminal. Sessions marked as
  248. X`dead' should be thoroughly checked and removed. Ask your system administrator
  249. Xif you are not sure. Remove sessions with the \fB-wipe\fP option.
  250. X.TP 5
  251. X.B \-L
  252. Xtells 
  253. X.I screen
  254. Xyour auto-margin terminal has a writable last-position on
  255. Xthe screen.
  256. XThis can also be set in your .screenrc by specifying `LP' in a \*Qtermcap\*U
  257. Xcommand.
  258. X.TP 5
  259. X.B \-m
  260. Xcauses 
  261. X.I screen
  262. Xto ignore the $STY environment variable. With \*Qscreen -m\*U creation of
  263. Xa new session is enforced, regardless whether 
  264. X.I screen
  265. Xis called from within another 
  266. X.I screen
  267. Xsession or not.
  268. X.TP 5
  269. X.B \-O
  270. Xselects a more optimal output mode for your terminal rather than true vt100
  271. Xemulation (only affects auto-margin terminals without `LP').
  272. XThis can also be set in your .screenrc by specifying `OP' in a \*Qtermcap\*U
  273. Xcommand.
  274. X.TP 5
  275. X.BR \-r " [" \fIpid.tty.host ]
  276. Xresumes a detached
  277. X.I screen
  278. Xsession.
  279. XNo other options (except \*Q-d -r\*U or \*Q-D -r\*U) may be specified, though
  280. Xan optional prefix of [\fIpid.\fP]\fItty.host\fP
  281. Xmay be needed to distinguish between multiple detached
  282. X.I screen
  283. Xsessions.
  284. X.TP 5
  285. X.B \-R
  286. Xattempts to resume the first detached 
  287. X.I screen
  288. Xsession it finds.
  289. XIf successful, all other command-line options are ignored.
  290. XIf no detached session exists, starts a new session using the specified
  291. Xoptions, just as if
  292. X.B \-R
  293. Xhad not been specified. The option is set by default if screen is run as
  294. Xa login-shell.
  295. X.TP 5
  296. X.B \-s
  297. Xsets the default shell to the program specified, instead of the value
  298. Xin the environment variable $SHELL (or \*Q/bin/sh\*U if not defined).
  299. XThis can also be defined through the \*Qshell\*U .screenrc command.
  300. X.TP 5
  301. X.BI "\-S " sessionname
  302. XWhen creating a new session, this option can be used to specify a
  303. Xmeaningful name for the session. This name identifies the session for
  304. X\*Qscreen -list\*U and \*Qscreen -r\*U actions. It substitutes the 
  305. Xdefault [\fItty.host\fP] suffix.
  306. X.TP 5
  307. X.BI "\-t " name
  308. Xsets the title (a.\|k.\|a.) for the default shell or specified program.
  309. XSee also the \*Qshelltitle\*U .screenrc command.
  310. X.TP 5
  311. X.B \-v
  312. XPrint version number.
  313. X.TP 5
  314. X.B \-wipe
  315. Xdoes the same as \*Qscreen -ls\*U, but removes destroyed sessions instead of 
  316. Xmarking them as `dead'.
  317. X.TP 5
  318. X.B \-x
  319. XAttach to a not detached screen session. (Multi display mode).
  320. X
  321. X
  322. X.SH "DEFAULT KEY BINDINGS"
  323. X.ta 12n 26n
  324. XAs mentioned, each
  325. X.I screen
  326. Xcommand consists of a
  327. X\*QC-a\*U followed by one other character.
  328. XFor your convenience, all commands that are bound to lower-case letters are
  329. Xalso bound to their control character counterparts (with the exception
  330. Xof \*QC-a a\*U; see below), thus, \*QC-a c\*U as well as \*QC-a C-c\*U can
  331. Xbe used to create a window. See section \*QCUSTOMIZATION\*U for a description 
  332. Xof the command.
  333. X.PP
  334. X.TP 26n
  335. XThe following table shows the default key bindings:
  336. X.IP "\fBC-a '\fP"
  337. X.PD 0
  338. X.IP "\fBC-a ""\fP    (select)"
  339. X.PD
  340. XPrompt for a window name or number to switch to.
  341. X.IP "\fBC-a 0\fP    (select 0)"
  342. X.PD 0
  343. X.IP "\fB ... \fP       ..."
  344. X.IP "\fBC-a 9\fP    (select 9)"
  345. X.PD
  346. XSwitch to window number 0 \- 9.
  347. X.IP "\fBC-a C-a\fP    (other)"
  348. XToggle to the window displayed previously.
  349. XNote that this binding defaults to the command character typed twice, 
  350. Xunless overridden; for instance, if you use the option \*Q\fB\-e]x\fP\*U,
  351. Xthis function becomes \*Q]]\*U, not \*Q]C-a\*U.
  352. X.IP "\fBC-a a\fP    (meta)"
  353. XSend the command character (C-a) to window. See \fIescape\fP command.
  354. X.IP "\fBC-a A\fP    (title)"
  355. XAllow the user to enter a name for the current window.
  356. X.IP "\fBC-a b\fP"
  357. X.PD 0
  358. X.IP "\fBC-a C-b\fP    (break)"
  359. X.PD
  360. XSend a break to window.
  361. X.IP "\fBC-a B\fP    (pow_break)"
  362. XReopen the terminal line and send a break.
  363. X.IP "\fBC-a c\fP"
  364. X.PD 0
  365. X.IP "\fBC-a C-c\fP    (screen)"
  366. X.PD
  367. XCreate a new window with a shell and switch to that window.
  368. X.IP "\fBC-a C\fP    (clear)"
  369. XClear the screen.
  370. X.IP "\fBC-a d\fP"
  371. X.PD 0
  372. X.IP "\fBC-a C-d\fP    (detach)"
  373. X.PD
  374. XDetach
  375. X.I screen
  376. Xfrom this terminal.
  377. X.IP "\fBC-a D D\fP    (pow_detach)"
  378. XDetach and logout.
  379. X.IP "\fBC-a f\fP"
  380. X.PD 0
  381. X.IP "\fBC-a C-f\fP    (flow)"
  382. X.PD
  383. XToggle flow \fIon\fP, \fIoff\fP or \fIauto\fP.
  384. X.IP "\fBC-a C-g\fP    (vbell)"
  385. XToggles 
  386. X.I screen's
  387. Xvisual bell mode. 
  388. X.IP "\fBC-a h\fP    (hardcopy)"
  389. X.PD
  390. XWrite a hardcopy of the current window to the file \*Qhardcopy.\fIn\fP\*U.
  391. X.IP "\fBC-a H\fP    (log)"
  392. XBegins/ends logging of the current window to the file \*Qscreenlog.\fIn\fP\*U.
  393. X.IP "\fBC-a i\fP"
  394. X.PD 0
  395. X.IP "\fBC-a C-i\fP    (info)"
  396. X.PD
  397. XShow info about this window.
  398. X.IP "\fBC-a k\fP"
  399. X.PD 0
  400. X.IP "\fBC-a C-k\fP    (kill)"
  401. X.PD
  402. XDestroy current window.
  403. X.IP "\fBC-a l\fP"
  404. X.PD 0
  405. X.IP "\fBC-a C-l\fP    (redisplay)"
  406. X.PD
  407. XFully refresh current window.
  408. X.IP "\fBC-a L\fP    (login)"
  409. XToggle this windows login slot. Available only if 
  410. X.I screen
  411. Xis configured to update the utmp database.
  412. X.IP "\fBC-a m\fP"
  413. X.PD 0
  414. X.IP "\fBC-a C-m\fP    (lastmsg)"
  415. X.PD
  416. XRepeat the last message displayed in the message line.
  417. X.IP "\fBC-a M\fP    (monitor)"
  418. XToggles monitoring of the current window.
  419. X.IP "\fBC-a space\fP"
  420. X.PD 0
  421. X.IP "\fBC-a n\fP"
  422. X.IP "\fBC-a C-n\fP    (next)"
  423. X.PD
  424. XSwitch to the next window.
  425. X.IP "\fBC-a N\fP    (number)"
  426. XShow the number (and title) of the current window.
  427. X.IP "\fBC-a backspace\fP"
  428. X.PD 0
  429. X.IP "\fBC-a h\fP"
  430. X.IP "\fBC-a p\fP"
  431. X.IP "\fBC-a C-p\fP    (prev)"
  432. X.PD
  433. XSwitch to the previous window (opposite of \fBC-a n\fP).
  434. X.IP "\fBC-a q\fP"
  435. X.PD 0
  436. X.IP "\fBC-a C-q\fP    (xon)"
  437. X.PD
  438. XSend a control-q to the current window.
  439. X.IP "\fBC-a r\fP"
  440. X.PD 0
  441. X.IP "\fBC-a C-r\fP    (wrap)"
  442. X.PD
  443. XToggle the current window's line-wrap setting (turn the current window's
  444. Xautomatic margins on and off).
  445. X.IP "\fBC-a s\fP"
  446. X.PD 0
  447. X.IP "\fBC-a C-s\fP    (xoff)"
  448. X.PD
  449. XSend a control-s to the current window.
  450. X.IP "\fBC-a t\fP"
  451. X.PD 0
  452. X.IP "\fBC-a C-t\fP    (time)"
  453. X.PD
  454. XShow system information.
  455. X.IP "\fBC-a v\fP"
  456. X.PD 0
  457. X.IP "\fBC-a C-v\fP    (version)"
  458. X.PD
  459. XDisplay the version and compilation date.
  460. X.IP "\fBC-a w\fP"
  461. X.PD 0
  462. X.IP "\fBC-a C-w\fP    (windows)"
  463. X.PD
  464. XShow a list of window.
  465. X.IP "\fBC-a W\fP    (width)"
  466. XToggle 80/132 columns.
  467. X.IP "\fBC-a x\fP"
  468. X.PD 0
  469. X.IP "\fBC-a C-x\fP    (lockscreen)"
  470. X.PD
  471. XLock this terminal.
  472. X.IP "\fBC-a z\fP"
  473. X.PD 0
  474. X.IP "\fBC-a C-z\fP    (suspend)"
  475. X.PD
  476. XSuspend
  477. X.IR screen . Your system must support BSD-style job-control.
  478. X.IP "\fBC-a Z\fP    (reset)"
  479. XReset the virtual terminal to its \*Qpower-on\*U values.
  480. X.IP "\fBC-a .\fP    (dumptermcap)"
  481. XWrite out a \*Q.termcap\*U file.
  482. X.IP "\fBC-a ?\fP    (help)"
  483. XShow key bindings.
  484. X.IP "\fBC-a C-\e\fP    (quit)"
  485. XKill all windows and terminate
  486. X.IR screen .
  487. X.IP "\fBC-a :\fP    (colon)"
  488. XEnter command line mode.
  489. X.IP "\fBC-a [\fP"
  490. X.PD 0
  491. X.IP "\fBC-a C-[\fP"
  492. X.IP "\fBC-a esc\fP    (copy)"
  493. X.PD
  494. XEnter copy/scrollback mode. 
  495. X.IP "\fBC-a ]\fP    (paste)"
  496. X.PD
  497. XWrite the contents of the paste buffer to the stdin queue of the
  498. Xcurrent window. 
  499. X.IP "\fBC-a {\fP
  500. X.PD 0
  501. X.IP "\fBC-a }\fP    (history)"
  502. X.PD
  503. XCopy and paste a previous (command) line.
  504. X.IP "\fBC-a >\fP    (writebuf)"
  505. XWrite pastebuffer to a file.
  506. X.IP "\fBC-a <\fP    (readbuf)"
  507. XReads the screen-exchange file into the pastebuffer.
  508. X.IP "\fBC-a =\fP    (removebuf)"
  509. XRemoves the file used by \fBC-a <\fP and \fPC-a >\fP.
  510. X.IP "\fBC-a ,\fP    (license)"
  511. XShows where screen comes from, where it went to and why you can use it.
  512. X.IP "\fBC-a _\fP    (silence)"
  513. XStart/stop monitoring the current window for inactivity.
  514. X
  515. X
  516. X.SH CUSTOMIZATION
  517. XThe \*Qsocket directory\*U defaults either to $HOME/.screen or simply to
  518. X/tmp/screens or preferably to /usr/local/screens chosen at compile-time. If
  519. X.I screen
  520. Xis installed setuid-root, then the administrator
  521. Xshould compile screen with an adequate (not NFS mounted) socket directory. If
  522. X.I screen
  523. Xis not running setuid-root, the user can specify any mode 777 directory
  524. Xin the environment variable $SCREENDIR.
  525. X.PP
  526. XWhen
  527. X.I screen
  528. Xis invoked, it executes initialization commands from the files
  529. X\*Q/usr/local/etc/screenrc\*U and
  530. X\*Q.screenrc\*U in the user's home directory. These are the \*Qprogrammer's
  531. Xdefaults\*U that can be overridden in the following ways: For the 
  532. Xglobal screenrc file 
  533. X.I screen
  534. Xsearches for the environment variable $SYSSCREENRC (this override feature
  535. Xmay be disabled at compile-time). The user specific
  536. Xscreenrc file is searched in $ISCREENRC, then $SCREENRC, then $HOME/.iscreenrc
  537. Xand finally defaults to $HOME/.screenrc. The command line option \fB-c\fP takes
  538. Xprecedence over the above user screenrc files.
  539. X.PP
  540. XCommands in these files are used to set options, bind functions to
  541. Xkeys, and to automatically establish one or more windows at the
  542. Xbeginning of your
  543. X.I screen
  544. Xsession.
  545. XCommands are listed one per line, with empty lines being ignored.
  546. XA command's arguments are separated by tabs or spaces, and may be
  547. Xsurrounded by single or double quotes.
  548. XA `#' turns the rest of the line into a comment, except in quotes.
  549. XUnintelligible lines are warned about and ignored.
  550. XCommands may contain references to environment variables. The 
  551. Xsyntax is the shell-like "$VAR " or "${VAR}". Note that this causes 
  552. Xincompatibility with previous 
  553. X.I screen
  554. Xversions, as now the '$'-character has to be protected with '\e' if no
  555. Xvariable substitution shall be performed. A string in single-quotes is also
  556. Xprotected from variable substitution.
  557. X.PP
  558. XCustomization can also be done 'on-line'. To enter the command mode type
  559. X`C-a :'. Note that commands starting with \*Qdef\*U change default values,
  560. Xwhile others change current settings.
  561. X.PP
  562. XThe following commands are available:
  563. X.sp 
  564. X.ne 3
  565. X.BI acladd " username"
  566. X.PP
  567. XEnable a user to (fully) access this screen session. Necessary to allow other
  568. Xusers to attach to this 
  569. X.I screen
  570. Xsession. Same as `aclchg \fIusername\fP +rwx \&"#?\&"'. Multi user mode only.
  571. X.sp 
  572. X.ne 3
  573. X.BI aclchg " username permbits list"
  574. X.PP
  575. XChange a users permissions. Permission bits are represented as `r', `w' and `x'.
  576. XPrefixing `+' grants the permission, `-' removes it. The third parameter is a 
  577. Xkomma seperated list of commands or windows (specified either by number or 
  578. Xtitle). The special list `#' refers to all windows, `?' to all commands.
  579. XA Command can be executed when the user has the `x' bit for it. 
  580. XThe user can type input to a window, when he has its `w' bit set and no other
  581. Xuser obtains a writelock for this window. Other bits are currently ignored.
  582. XMulti user mode only.
  583. X.sp
  584. X.ne 3
  585. X.BI acldel " username"
  586. X.PP
  587. XRemove a user from screens access control list. If currently attached, all the 
  588. Xusers displays are detached from the session. He cannot attach again. 
  589. XMulti user mode only.
  590. X.sp
  591. X.ne 3
  592. X.BI activity " message"
  593. X.PP
  594. XWhen any activity occurs in a background window that is being monitored,
  595. X.I screen
  596. Xdisplays a notification in the message line.
  597. XThe notification message can be re-defined by means of the \*Qactivity\*U
  598. Xcommand.
  599. XEach occurrence of `%' in \fImessage\fP is replaced by
  600. Xthe number of the window in which activity has occurred,
  601. Xand each occurrence of `~' is replaced by the definition for bell
  602. Xin your termcap (usually an audible bell).
  603. XThe default message is
  604. X.sp
  605. X    'Activity in window %'
  606. X.sp
  607. XNote that monitoring is off for all windows by default, but can be altered
  608. Xby use of the \*Qmonitor\*U command (C-a M).
  609. X.sp
  610. X.ne 3
  611. X.BR "allpartial on" | off
  612. X.PP
  613. XIf set to on, only the current cursor line is refreshed on window change.
  614. XThis affects all windows and is useful for slow terminal lines. The 
  615. Xprevious setting of full/partial refresh for each window is restored
  616. Xwith \*Qallpartial off\*U.
  617. X.sp
  618. X.ne 3
  619. X.BR "at " "[\fIidentifier\fP][" "#\fP|\fP*\fP|\fP%\fP] "
  620. X.IR "command " [ args " ... ]"
  621. X.PP
  622. XExecute a command at other displays or windows as if it had been entered there.
  623. X\*QAt\*U changes the context (the `current window' or `current display'
  624. Xsetting) of the command. If the first parameter describes a 
  625. Xnon-unique context, the command will be executed multiple times. If the first 
  626. Xparameter is of the form `\fIidentifier\fP*' then identifier is matched against
  627. Xuser names.  The command is executed once for each display of the selected 
  628. Xuser(s). If the first parameter is of the form `\fIidentifier\fP%' identifier 
  629. Xis matched against displays. Displays are named after the ttys they 
  630. Xattach. The prefix `/dev/' or `/dev/tty' may be ommited from the identifier.
  631. XIf \fIidentifier\fP has a `#' or nothing appended it is matched against 
  632. Xwindow numbers and titles. Omitting an identifier in front of the `#', `*' or 
  633. X`%'-character selects all users, displays or windows because a prefix-match is
  634. Xperformed. Note that on the affected display(s) a short message will describe
  635. Xwhat happened. 
  636. X.sp
  637. X.ne 3
  638. X.BR "autodetach on" | off
  639. X.PP
  640. XSets whether 
  641. X.I screen
  642. Xwill automatically detach upon hangup, which
  643. Xsaves all your running programs until they are resumed with a
  644. X.B "screen -r"
  645. Xcommand.
  646. XWhen turned off, a hangup signal will terminate 
  647. X.I screen
  648. Xand all the processes it contains. Autodetach is on by default.
  649. X.sp
  650. X.ne 3
  651. X.BR "autonuke on" | off
  652. X.PP
  653. XSets whether a clear screen sequence should nuke all the output
  654. Xthat has not been written to the terminal. See also
  655. X\*Qobuflimit\*U.
  656. X.sp
  657. X.ne 3
  658. X.BI "bell " message
  659. X.PP
  660. XWhen a bell character is sent to a background window,
  661. X.I screen
  662. Xdisplays a notification in the message line.
  663. XThe notification message can be re-defined by means of the \*Qbell\*U
  664. Xcommand.
  665. XEach occurrence of `%' in \fImessage\fP is replaced by
  666. Xthe number of the window to which a bell has been sent,
  667. Xand each occurrence of `~' is replaced by the definition for bell
  668. Xin your termcap (usually an audible bell).
  669. XThe default message is
  670. X.sp
  671. X    'Bell in window %'
  672. X.sp
  673. XAn empty message can be supplied to the \*Qbell\*U command to suppress
  674. Xoutput of a message line (bell "").
  675. X.sp
  676. X.ne 3
  677. X.BI "bind " key 
  678. X.RI [ command " [" args ]]
  679. X.PP
  680. XBind a command to a key.
  681. XBy default, most of the commands provided by
  682. X.I screen
  683. Xare bound to one or more keys as indicated in the \*QDEFAULT KEY BINDINGS\*U
  684. Xsection, e.\|g. the
  685. Xcommand to create a new window is bound to \*QC-c\*U and \*Qc\*U.
  686. XThe \*Qbind\*U command can be used to redefine the key bindings and to
  687. Xdefine new bindings.
  688. XThe \fIkey\fP argument is either a single character, a two-character sequence
  689. Xof the form \*Q^x\*U (meaning \*QC-x\*U), a backslash followed by an octal
  690. Xnumber (specifying the ASCII code of the character), or a backslash followed
  691. Xby a second character, such as \*Q\e^\*U or \*Q\e\e\*U.
  692. XThe argument can also be quoted, if you like.
  693. XIf no further argument is given, any previously established binding
  694. Xfor this key is removed.
  695. XThe \fIcommand\fP argument can be any command listed in this section.
  696. X.PP
  697. XSome examples:
  698. X.PP
  699. X.nf
  700. X    bind ' ' windows
  701. X    bind ^f screen telnet foobar
  702. X    bind \e033 screen -ln -t root -h 1000 9 su
  703. X.fi
  704. X.PP
  705. Xwould bind the space key to the command that displays a list
  706. Xof windows (so that the command usually invoked by \*QC-a C-w\*U
  707. Xwould also be available as \*QC-a space\*U),
  708. Xbind \*QC-f\*U to the command \*Qcreate a window with a TELNET
  709. Xconnection to foobar\*U, and bind \*Qescape\*U to the command
  710. Xthat creates an non-login window with a.\|k.\|a. \*Qroot\*U in slot #9, with
  711. Xa super-user shell and a scrollback buffer of 1000 lines.
  712. X.sp
  713. X.ne 3
  714. X.B break
  715. X.RI [ duration ]
  716. X.PP
  717. XSend a break signal for \fIduration\fP*0.25 seconds to this window.
  718. XMost useful if a character device is
  719. Xattached to the window rather than a shell process.
  720. X.sp
  721. X.ne 3
  722. X.B bufferfile
  723. X.RI [ exchange-file ]
  724. X.PP
  725. XChange the filename used for reading and writing with the copybuffer.
  726. XIf the optional argument to the \*Qbufferfile\*U command is omitted, 
  727. Xthe default setting (\*Q/tmp/screen-exchange\*U) is reactivated.
  728. XThe following example will paste the system's password file into 
  729. Xthe screen window:
  730. X.PP
  731. X.nf
  732. X    C-a : bufferfile /etc/passwd
  733. X    C-a < C-a ]
  734. X    C-a : bufferfile
  735. X.fi
  736. X.sp
  737. X.ne 3
  738. X.B chdir
  739. X.RI [ directory ]
  740. X.PP
  741. XChange the \fIcurrent directory\fP of
  742. X.I screen
  743. Xto the specified directory or, if called without an argument,
  744. Xto your home directory (the value of the environment variable $HOME).
  745. XAll windows that are created by means of the \*Qscreen\*U command
  746. Xfrom within \*Q.screenrc\*U or by means of \*QC-a : screen ...\*U
  747. Xor \*QC-a c\*U use this as their default directory.
  748. XWithout a chdir command, this would be the directory from which
  749. X.I screen
  750. Xwas invoked.
  751. XHardcopy and log files are always written to the \fIwindow's\fP default
  752. Xdirectory, \fInot\fP the current directory of the process running in the
  753. Xwindow.
  754. XYou can use this command multiple times in your .screenrc to start various
  755. Xwindows in different default directories, but the last chdir value will
  756. Xaffect all the windows you create interactively.
  757. X.sp
  758. X.ne 3
  759. X.B clear
  760. X.PP
  761. XClears the current window and saves its image to the scrollback buffer.
  762. X.sp
  763. X.ne 3
  764. X.B colon
  765. X.PP
  766. XAllows you to enter \*Q.screenrc\*U command lines. Useful 
  767. Xfor on-the-fly modification of key bindings, 
  768. Xspecific window creation and changing settings. Note that the \*Qset\*U
  769. Xkeyword no longer exists! Usually commands affect the current window rather 
  770. Xthan default settings for future windows. Change defaults with commands
  771. Xstarting with 'def...'. 
  772. X
  773. XIf you consider this as the `Ex command mode' of 
  774. X.IR screen ,
  775. Xyou may regard \*QC-a esc\*U (copy mode) as its `Vi command mode'.
  776. X.sp 
  777. X.ne 3
  778. X.BR "console " [ on | off ]
  779. X.PP
  780. XGrabs or ungrabs the machines console output to a window.
  781. X.sp
  782. X.ne 3
  783. X.B copy
  784. X.PP
  785. XEnter copy/scrollback mode. This allows you to copy text from the current
  786. Xwindow and its history into the paste buffer. In this mode a vi-like
  787. X`full screen editor' is active:
  788. X.br
  789. X.IR "Movement keys" :
  790. X.br
  791. X.in +4n
  792. X.ti -2n
  793. X\fBh\fP, \fBj\fP, \fBk\fP, \fBl\fP move the cursor line by line or 
  794. Xcolumn by column.
  795. X.br
  796. X.ti -2n
  797. X\fB0\fP, \fB^\fP and \fB$\fP move to the leftmost column, to the first or last
  798. Xnon-whitespace character on the line.
  799. X.br
  800. X.ti -2n
  801. X\fBH\fP, \fBM\fP and \fBL\fP move the cursor to the leftmost column
  802. Xof the top, center or bottom line of the window. 
  803. X.br
  804. X.ti -2n
  805. X\fB+\fP and \fB\-\fP positions one line up and down.
  806. X.br
  807. X.ti -2n
  808. X\fBG\fP moves to the specified absolute line (default: end of buffer).
  809. X.br 
  810. X.ti -2n
  811. X\fB|\fP moves to the specified absolute column.
  812. X.br
  813. X.ti -2n
  814. X\fBw\fP, \fBb\fP, \fBe\fP move the cursor word by word.
  815. X.br 
  816. X.ti -2n
  817. X\fBC-u\fP and \fBC-d\fP scroll the display up/down by the specified amount of 
  818. Xlines while preserving the cursor position. (Default: half screen-full). 
  819. X.br
  820. X.ti -2n
  821. X\fBC-b\fP and \fBC-f\fP scroll the display up/down a full screen.
  822. X.br
  823. X.ti -2n
  824. X\fBg\fP moves to the beginning of the buffer.
  825. X.br
  826. X.ti -2n
  827. X\fB%\fP jumps to the specified percentage of the buffer.
  828. X.br
  829. X.ti -4n
  830. X
  831. X.IR Note :
  832. X.br
  833. XEmacs style movement keys can be customized by a .screenrc command. 
  834. X(E.\|g. markkeys "h=^B:l=^F:$=^E") There is no simple method for a full 
  835. Xemacs-style keymap, as this involves multi-character codes.
  836. X
  837. X.br
  838. X.ti -4n
  839. X.IR Marking :
  840. X.br
  841. XThe copy range is specified by setting two marks. The text between these marks 
  842. Xwill be highlighted. Press 
  843. X.br
  844. X.ti -2n
  845. X\fBspace\fP to set the first or second mark
  846. Xrespectively.
  847. X.br
  848. X.ti -2n
  849. X\fBY\fP and \fBy\fP used to mark one whole line or to mark from 
  850. Xstart of line.
  851. X.br
  852. X.ti -2n
  853. X\fBW\fP marks exactly one word. 
  854. X.br 
  855. X.ti -4n
  856. X.IR "Repeat count" :
  857. X.br
  858. XAny of these commands can be prefixed with a repeat count number by pressing 
  859. Xdigits 
  860. X.br
  861. X.ti -2n
  862. X\fB0\fP..\fB9\fP which
  863. Xis taken as a repeat count. 
  864. X.br
  865. XExample: \*QC-a C-[ H 10 j 5 Y\*U will copy lines
  866. X11 to 15 into the pastebuffer.
  867. X.br
  868. X.ti -4n
  869. X.IR Searching :
  870. X.ti -2n
  871. X\fB/\fP \fIVi\fP-like search forward.
  872. X.ti -2n
  873. X\fB?\fP \fIVi\fP-like search backward.
  874. X.ti -2n 
  875. X\fBC-a s\fP \fIEmacs\fP style incremental search forward.
  876. X.ti -2n
  877. X\fBC-r\fP \fIEmacs\fP style reverse i-search.
  878. X.ti -4n
  879. X.IR Specials :
  880. X.br
  881. XThere are however some keys that act differently than in
  882. X.IR vi .
  883. X.I Vi
  884. Xdoes not allow one to yank rectangular blocks of text, but
  885. X.I screen
  886. Xdoes. Press 
  887. X.br
  888. X.ti -2n
  889. X\fBc\fP or \fBC\fP to set the left or right margin respectively. If no repeat count is
  890. Xgiven, both default to the current cursor position. 
  891. X.br
  892. XExample: Try this on a rather full text screen: 
  893. X\*QC-a [ M 20 l SPACE c 10 l 5 j C SPACE\*U.
  894. X
  895. XThis moves one to the middle line of the screen, moves in 20 columns left,
  896. Xmarks the beginning of the copybuffer, sets the left column, moves 5 columns
  897. Xdown, sets the right column, and then marks the end of
  898. Xthe copybuffer. Now try:
  899. X.br
  900. X\*QC-a [ M 20 l SPACE 10 l 5 j SPACE\*U
  901. X
  902. Xand notice the difference in the amount of text copied.
  903. X.br
  904. X.ti -2n
  905. X\fBJ\fP joins lines. It toggles between 
  906. X3 modes: lines separated by a newline character (012), lines glued seamless,
  907. Xlines separated by a single whitespace. Note that you can prepend the newline
  908. Xcharacter with a carriage return character, by issuing a \*Qcrlf on\*U.
  909. X.br
  910. X.ti -2n
  911. X\fBv\fP is for all the
  912. X.I vi 
  913. Xusers with \*Q:set numbers\*U \- it toggles the left margin between column 9
  914. Xand 1. Press 
  915. X.br
  916. X.ti -2n
  917. X\fBa\fP before the final space key to toggle in append mode. Thus
  918. Xthe contents of the pastebuffer will not be overwritten, but is appended to.
  919. X.br
  920. X.ti -2n
  921. X\fBA\fP toggles in append mode and sets a (second) mark.
  922. X.br
  923. X.ti -2n
  924. X\fB>\fP sets the (second) mark and writes the contents of the copybuffer to
  925. Xthe screen-exchange file (/tmp/screen-exchange per default) once copy-mode is 
  926. Xfinished. 
  927. X.br
  928. XThis example demonstrates how to dump the whole scrollback buffer 
  929. Xto that file: \*QC-A [ g SPACE G $ >\*U.
  930. X.br
  931. X.ti -2n
  932. X\fBC-g\fP gives information about the current line and column.
  933. X.br
  934. X.ti -2n
  935. X\fB@\fP does nothing. Does not even exit copy mode.
  936. X.in -4n
  937. X.sp
  938. X.ne 3
  939. X.B copy_reg
  940. X.RI [ key ]
  941. X.PP
  942. XStore the current copybuffer contents in a register referenced by \fIkey\fP.
  943. XIf the name is omitted you will be prompted to press the key.
  944. X.sp
  945. X.ne 3
  946. X.BR "crlf on" | off
  947. X.PP
  948. XThis affects the copying of text regions with the `C-a [' command. If it is set
  949. Xto `on', lines will be separated by the two character sequence `CR' - `LF'. 
  950. XOtherwise (default) only `LF' is used.
  951. X.sp
  952. X.ne 3
  953. X.BR "debug on" | off
  954. X.PP
  955. XTurns runtime debugging on or off. If 
  956. X.I screen
  957. Xhas been compiled with option -DDEBUG debugging available and is turned on per 
  958. Xdefault. Note that this command only affects debugging output from the main 
  959. X\*QSCREEN\*U process. 
  960. X.sp
  961. X.ne 3
  962. X.BR "defautonuke on" | off
  963. X.PP
  964. XSame as the \fBautonuke\fP command except that the default setting for new displays is changed. Initial setting is `off'.
  965. XNote that you can use the special 'AN' terminal capability if you
  966. Xwant to have a dependency on the terminal type.
  967. X.sp
  968. X.ne 3
  969. X.BR "defflow on" | off | auto 
  970. X.RB [ interrupt ]
  971. X.PP
  972. XSame as the \fBflow\fP command except that the default setting for new windows 
  973. Xis changed. Initial setting is `auto'.
  974. XSpecifying \*Qdefflow auto interrupt\*U is the same as the command-line options
  975. X.B \-fa
  976. Xand
  977. X.BR \-i . 
  978. X.sp
  979. X.ne 3
  980. X.BR "deflogin on" | off
  981. X.PP
  982. XSame as the \fBlogin\fP command except that the default setting for new windows 
  983. Xis changed. This is initialised with `on' as distributed (see config.h.in).
  984. X.sp
  985. X.ne 3
  986. X.BI "defmode " mode
  987. X.PP
  988. XThe mode of each newly allocated pseudo-tty is set to \fImode\fP.
  989. X\fIMode\fP is an octal number.
  990. XWhen no \*Qdefmode\*U command is given, mode 0622 is used.
  991. X.sp
  992. X.ne 3
  993. X.BR "defmonitor on" | off
  994. X.PP
  995. XSame as the \fBmonitor\fP command except that the default setting for new 
  996. Xwindows is changed. Initial setting is `off'.
  997. X.sp
  998. X.ne 3
  999. X.BI "defobuflimit " limit
  1000. X.PP
  1001. XSame as the \fBobuflimit\fP command except that the default setting for new displays is changed. Initial setting is 256 bytes.
  1002. XNote that you can use the special 'OL' terminal capability if you
  1003. Xwant to have a dependency on the terminal type.
  1004. X.sp
  1005. X.ne 3
  1006. X.BI "defscrollback " num
  1007. X.PP
  1008. XSame as the \fBscrollback\fP command except that the default setting for new 
  1009. Xwindows is changed. Initial setting is 100.
  1010. X.sp
  1011. X.ne 3
  1012. X.BR "defwrap on" | off
  1013. X.PP
  1014. XSame as the \fBwrap\fP command except that the default setting for new 
  1015. Xwindows is changed. Initially line-wrap is on and can be toggled with the 
  1016. X\*Qwrap\*U command (\*QC-a r\*U) or by means of "C-a : wrap on|off".
  1017. X.sp
  1018. X.ne 3
  1019. X.B detach
  1020. X.PP
  1021. XDetach the 
  1022. X.I screen
  1023. Xsession (disconnect it from the terminal and put it into the background).
  1024. XThis returns you to the shell where you invoked
  1025. X.IR screen .
  1026. XA detached
  1027. X.I screen
  1028. Xcan be resumed by invoking
  1029. X.I screen
  1030. Xwith the
  1031. X.B \-r
  1032. Xoption. (See also section \*QCOMMAND-LINE OPTIONS\*U.)
  1033. X.sp
  1034. X.ne 3
  1035. X.B dumptermcap
  1036. X.PP
  1037. XWrite the termcap entry for the virtual terminal optimized for the currently
  1038. Xactive window to the file \*Q.termcap\*U in the user's 
  1039. X\*Q$HOME/.screen\*U directory (or wherever 
  1040. X.I screen
  1041. Xstores its sockets. See the \*QFILES\*U section below).
  1042. XThis termcap entry is identical to the value of the environment variable
  1043. X$TERMCAP that is set up by
  1044. X.I screen
  1045. Xfor each window. For terminfo based systems you will need to run a converter
  1046. Xlike 
  1047. X.IR captoinfo
  1048. Xand then compile the entry with 
  1049. X.IR tic .
  1050. X.sp
  1051. X.ne 3
  1052. X.BR "echo " [ -n ]
  1053. X.I message
  1054. X.PP
  1055. XThe echo command may be used to annoy 
  1056. X.I screen
  1057. Xusers with a 'message of the
  1058. Xday'. Typically installed in a global /local/etc/screenrc. See also
  1059. X\*Qsleep\*U.
  1060. XEcho is also useful for online checking of environment variables.
  1061. X.sp
  1062. X.ne 3
  1063. X.BI "escape " xy
  1064. X.PP
  1065. XSet the command character to \fIx\fP and the character generating a literal
  1066. Xcommand character to \fIy\fP (just like in the \-e option).
  1067. XEach argument is either a single character, a two-character sequence
  1068. Xof the form \*Q^x\*U (meaning \*QC-x\*U), a backslash followed by an octal
  1069. Xnumber (specifying the ASCII code of the character), or a backslash followed
  1070. Xby a second character, such as \*Q\e^\*U or \*Q\e\e\*U.
  1071. XThe default is \*Q^Aa\*U.
  1072. X.sp
  1073. X.ne 3
  1074. X.B exec
  1075. X.RI [[ fdpat ]
  1076. X.IR "newcommand " [ "args ..." ]]
  1077. X.PP
  1078. XRun a subprocess (newcommand) in the current window. The flow of data between 
  1079. Xnewcommands stdin/stdout/stderr, the process already running (shell) and 
  1080. Xscreen itself (window) is controlled by the filedescriptor pattern fdpat.
  1081. XThis pattern is basically a three character sequence representing stdin, stdout
  1082. Xand stderr of newcommand. A dot (.) connects the file descriptor
  1083. Xto screen. An exclamation mark (!) causes the file
  1084. Xdescriptor to be connected to the already running process. A colon (:) combines
  1085. Xboth.
  1086. XUser input will go to newcommand unless newcommand requests the old process' 
  1087. Xoutput (fdpats first character is `!' or `:') or a pipe (|) is added to 
  1088. Xthe end of fdpat.
  1089. X.br
  1090. XInvoking `exec' without arguments shows name and arguments of the currently
  1091. Xrunning subprocess in this window.
  1092. X.br
  1093. XWhen a subprocess is running the `kill' command will affect it instead of the
  1094. Xwindows process.
  1095. X.br
  1096. XRefer to the postscript file `fdpat.ips' for illustration of all 21 possible
  1097. Xcombinations. Each drawing shows the numbers 210 representing the three
  1098. Xfile descriptors of newcommand. The box marked `W' is usual pty that has 
  1099. Xthe old process (shell) on its slave side. The box marked `P' is the 
  1100. Xsecondary pty that now has screen at its master side.
  1101. X.sp
  1102. XAbbreviations: 
  1103. X.br
  1104. XWhitespace between the word `exec' and fdpat and the command 
  1105. Xcan be omitted. Trailing dots and a fdpat consisting only of dots can be 
  1106. Xomitted. A simple `|' is synonymous for the pattern `!..|'; the word exec can
  1107. Xbe ommitted here and can always be replaced by `!'.
  1108. X.sp
  1109. XExamples:
  1110. X.IP
  1111. Xexec ... /bin/sh
  1112. X.br
  1113. Xexec /bin/sh
  1114. X.br
  1115. X!/bin/sh
  1116. X.PP
  1117. XCreates another shell in the same window, while the orignal shell is still 
  1118. Xrunning. Output of both shells is displayed and user input is sent to the new
  1119. X/bin/sh.
  1120. X.IP
  1121. Xexec !.. stty 19200
  1122. X.br
  1123. Xexec ! stty 19200
  1124. X.br
  1125. X!!stty 19200
  1126. X.PP
  1127. XSet the speed of the windows tty. If your stty command operates on stdout, then
  1128. Xadd another `!'.
  1129. X.IP
  1130. Xexec !..| less
  1131. X.br
  1132. X|less
  1133. X.PP
  1134. XThis adds a pager to the window output. The special character `|' is needed to
  1135. Xgive the user control over the pager although it gets its input from the 
  1136. Xoriginal process.
  1137. X.IP
  1138. X!:sed -n s/.*Error.*/\e007/p
  1139. X.PP
  1140. XSends window output to both, the user and the sed command. The sed inserts an
  1141. Xadditional bell character (oct. 007) to the window output seen by screen.
  1142. XThis will cause "Bell in window x" messages, whenever the string "Error"
  1143. Xappears in the window.
  1144. X.sp
  1145. X.ne 3
  1146. X.B flow
  1147. X.RB [ on | off | "auto\fR]\fP"
  1148. X.PP
  1149. XSets the flow-control mode for this window.
  1150. XWithout parameters it cycles the current window's flow-control setting from 
  1151. X"automatic" to "on" to "off".
  1152. XSee the discussion on \*QFLOW-CONTROL\*U later on in this document for full 
  1153. Xdetails and note, that this is subject to change in future releases.
  1154. XDefault is set by `defflow'.
  1155. X.sp
  1156. X.ne 3
  1157. X.B hardcopy
  1158. X.PP
  1159. XWrites out the currently displayed image to a file \fIhardcopy.n\fP
  1160. Xin the window's default directory, where \fIn\fP is the number
  1161. Xof the current window. 
  1162. XThis either appends or overwrites the file if it exists. See below.
  1163. X.sp
  1164. X.ne 3
  1165. X.BR "hardcopy_append on" | off
  1166. X.PP
  1167. XIf set to "on", 
  1168. X.I screen
  1169. Xwill append to the "hardcopy.n" files created by the command \*QC-a h\*U, 
  1170. Xotherwise these files are overwritten each time.
  1171. XDefault is `off'.
  1172. X.sp
  1173. X.ne 3
  1174. X.BI "hardcopydir "directory
  1175. X.PP
  1176. XDefines a directory where hardcopy files will be placed. If unset hardcopys
  1177. Xare dumped in screens current working directory.
  1178. X.sp
  1179. X.ne 3
  1180. X.BR "hardstatus " [ on | off ]
  1181. X.PP
  1182. XToggles the use of the terminal's hardware status line. If "on", 
  1183. X.I screen
  1184. Xwill use this facility to display one line messages. Otherwise these messages
  1185. Xare overlayed in reverse video mode at the display line. Note that the 
  1186. Xhardstatus feature can only be used if the termcap/terminfo capabilities
  1187. X"hs", "ts", "fs" and "ds" are set properly. Default is `on' whenever the "hs"
  1188. Xcapability is present.
  1189. X.sp
  1190. X.ne 3
  1191. X.BR "height " [ \fIlines\fP ]
  1192. X.PP
  1193. XSet the display height to a specified number of lines. When no argument
  1194. Xis given it toggles between 24 and 42 lines display.
  1195. X.sp
  1196. X.ne 3
  1197. X.B help
  1198. X.PP
  1199. XNot really a online help, but 
  1200. Xdisplays a help screen showing you all the key bindings.
  1201. XThe first pages list all the internal commands followed by their current
  1202. Xbindings.
  1203. XSubsequent pages will display the custom commands, one command per key.
  1204. XPress space when you're done reading each page, or return to exit early.
  1205. XAll other characters are ignored, except for the command character, which will
  1206. Xallow you to execute commands even when the help screen is still visible.
  1207. XSee also \*QDEFAULT KEY BINDINGS\*U section.
  1208. X.sp
  1209. X.ne 3
  1210. X.B history
  1211. X.PP
  1212. XUsually users work with a shell that allows easy access to previous commands.
  1213. XFor example csh has the command \*Q!!\*U to repeat the last command executed. 
  1214. X.I Screen
  1215. Xallows you to have a primitive way of re-calling \*Qthe command that
  1216. Xstarted ...\*U: You just type the first letter of that command, then hit
  1217. X`C-a {' and
  1218. X.I screen
  1219. Xtries to find a previous line that matches with the `prompt character' 
  1220. Xto the left of the cursor. This line is pasted into this window's input queue.
  1221. XThus you have a crude command history (made up by the visible window and its
  1222. Xscrollback buffer). 
  1223. X.sp
  1224. X.ne 3
  1225. X.B info
  1226. X.PP
  1227. XUses the message line to display some information about the current window:
  1228. Xthe cursor position in the form \*Q(column,row)\*U starting with \*Q(1,1)\*U,
  1229. Xthe terminal width and height plus the size of the scrollback buffer in lines, 
  1230. Xlike in \*U(80,24)+50\*U, various flag settings (flow-control, insert mode,
  1231. Xorigin mode, wrap mode, application-keypad mode, output logging, activity
  1232. Xmonitoring and redraw (`+' indicates enabled, `\-' not)),
  1233. Xthe currently active character set (\fIG0\fP, \fIG1\fP, \fIG2\fP,
  1234. Xor \fIG3\fP), and in square brackets the terminal character sets that are
  1235. Xcurrently designated as \fIG0\fP through \fIG3\fP.
  1236. XFor system information use the \*Qtime\*U command.
  1237. X.sp
  1238. X.ne 3
  1239. X.BR ins_reg " [" \fIkey ]
  1240. X.PP
  1241. XPaste contents of register \fIkey\fP in current windows input stream. See also
  1242. Xthe \*Qcopy_reg\*U and \*Qregister\*U commands. 
  1243. X.sp
  1244. X.ne 3
  1245. X.B kill
  1246. X.PP
  1247. XKill current window.
  1248. X.br 
  1249. XIf there is an `exec' command running then it is killed. Otherwise the process
  1250. X(shell) running in the window receives a HANGUP condition, the window structure
  1251. Xis removed and screen switches to the previously displayed window.
  1252. XWhen the last window is destroyed, 
  1253. X.I screen
  1254. Xexits.
  1255. XNote:
  1256. X.I Emacs
  1257. Xusers should keep this command in mind, when killing a line.
  1258. XIt is recommended not to use \*QC-a\*U as the
  1259. X.I screen
  1260. Xescape key or to rebind kill to \*QC-a K\*U.
  1261. X.sp
  1262. X.ne 3
  1263. X.B lastmsg
  1264. X.PP
  1265. XRedisplay the last contents of the message/status line.
  1266. XUseful if you're typing when a message appears, because  the message goes 
  1267. Xaway when you press a key (unless your terminal has a hardware status line).
  1268. XRefer to the commands \*Qmsgwait\*U and \*Qmsgminwait\*U for fine tuning.
  1269. X.sp
  1270. X.ne 3
  1271. X.B license
  1272. X.PP
  1273. XDisplay the disclaimer page. This is done whenever
  1274. X.I screen
  1275. Xis started without options, which should be often enough. See also 
  1276. Xthe \*Qstartup_message\*U command.
  1277. X.sp
  1278. X.ne 3
  1279. X.B lockscreen
  1280. X.PP
  1281. XLock this display.
  1282. XCall a screenlock program (/local/bin/lck or /usr/bin/lock or a builtin if no
  1283. Xother is available). Screen does not accept any command keys until this program
  1284. Xterminates. Meanwhile processes in the windows may continue, as the windows 
  1285. Xare in the `detached' state. The screenlock program may be changed through the
  1286. Xenvironment variable $LOCKPRG (which must be set in the shell from which 
  1287. X.I screen
  1288. Xis started) and is executed with the user's uid and gid.
  1289. X.sp
  1290. X.ne 3
  1291. X.BR "log " [ on | off ]
  1292. X.PP
  1293. XStart/stop writing output of the current window to a file 
  1294. X\*Qscreenlog.\fIn\fP\*U in the window's default directory, where \fIn\fP 
  1295. Xis the number of the current window. If no parameter is given, the state
  1296. Xof logging is toggled. The session log is appended to the previous contents 
  1297. Xof the file if it already exists. The current contents and the contents 
  1298. Xof the scrollback history are not included in the session log.
  1299. XDefault is `off'.
  1300. X.sp
  1301. X.ne 3
  1302. X.BI "logdir "directory
  1303. X.PP
  1304. XDefines a directory where logfiles will be placed. If unset logfiles are written
  1305. Xin screens current working directory.
  1306. X.sp
  1307. X.ne 3
  1308. X.BR "login " [ on | off ]
  1309. X.PP
  1310. XAdds or removes the entry in the utmp database file for the current window.
  1311. XThis controls if the window is `logged in'.
  1312. XWhen no parameter is given, the login state of the window is toggled.
  1313. XAdditionally to that toggle, it is convenient having a `log in' and a `log out'
  1314. Xkey. E.\|g. `bind I login on' and `bind O login off' will map these
  1315. Xkeys to be C-a I and C-a O.
  1316. XThe default setting (in config.h.in) should be \*Qon\*U for a 
  1317. X.I screen
  1318. Xthat runs under suid-root.
  1319. XUse the \*Qdeflogin\*U command to change the default login state for new 
  1320. Xwindows. Both commands are only present when 
  1321. X.I screen
  1322. Xhas been compiled with utmp support.
  1323. X.sp
  1324. X.ne 3
  1325. X.BI "markkeys " string
  1326. X.PP
  1327. XThis is a method of changing the keymap used for copy/history mode.
  1328. XThe string is made up of \fIoldchar\fP=\fInewchar\fP pairs which are
  1329. Xseparated by `:'. Example: The string \*QB=^B:F=^F\*U will change the 
  1330. Xkeys `C-b' and `C-f' to the vi style binding (scroll up/down fill page).
  1331. XThis happens to be the default binding for `B' and `F'.
  1332. XThe command \*Qmarkkeys h=^B:l=^F:$=^E\*U would set the mode for an emacs-style
  1333. Xbinding.
  1334. X.sp
  1335. X.ne 3
  1336. X.B meta
  1337. X.PP
  1338. XInsert the command character (C-a) in the current window's input stream.
  1339. X.sp
  1340. X.ne 3
  1341. X.BR "monitor " [ on | off ]
  1342. X.PP
  1343. XToggles activity monitoring of windows.
  1344. XWhen monitoring is turned on and an affected window is switched into the
  1345. Xbackground, you will receive the activity notification message in the
  1346. Xstatus line at the first sign of output and the window will also be marked
  1347. Xwith an `@' in the window-status display.
  1348. XMonitoring is initially off for all windows.
  1349. X.sp
  1350. X.ne 3
  1351. X.BI "msgminwait " sec
  1352. X.PP
  1353. XDefines the time 
  1354. X.I screen 
  1355. Xdelays a new message when one message is currently displayed. 
  1356. XThe default is 1 second.
  1357. X.sp
  1358. X.ne 3
  1359. X.BI "msgwait " sec
  1360. X.PP
  1361. XDefines the time a message is displayed if 
  1362. X.I screen
  1363. Xis not disturbed by other activity. The default is 5 seconds.
  1364. X.sp
  1365. X.ne 3
  1366. X.BR "multiuser on" | off
  1367. X.PP
  1368. XSwitch between singleuser and multiuser mode. Standard screen operation
  1369. Xis singleuser. In multiuser mode the commands `acladd' and `acldel' can be
  1370. Xused to enable (and disable) other users to access this screen. 
  1371. X.sp
  1372. X.ne 3
  1373. X.BR "nethack on" | off
  1374. X.PP
  1375. XChanges the kind of error messages used by
  1376. X.IR screen .
  1377. XWhen you are familiar with the game \*Qnethack\*U, you may enjoy the
  1378. Xnethack-style messages which will often blur the facts a little, but are
  1379. Xmuch funnier to read. Anyway, standard messages often tend to be unclear as
  1380. Xwell.
  1381. X.br
  1382. XThis option is only 
  1383. Xavailable if screen was compiled with the NETHACK flag defined. The
  1384. Xdefault setting is then determined by the presence of the environment 
  1385. Xvariable $NETHACKOPTIONS.
  1386. X.sp
  1387. X.ne 3
  1388. X.B next
  1389. X.PP
  1390. XSwitch to the next window.
  1391. XThis command can be used repeatedly to cycle through the list of windows.
  1392. X.sp
  1393. X.ne 3
  1394. X.BR "number " [ \fIn ]
  1395. X.PP
  1396. XChange the current windows number. If the given number \fIn\fP is already 
  1397. Xused by another window, both windows exchange their numbers. If no argument is
  1398. Xspecified, the current window number (and title) is shown.
  1399. X.sp
  1400. X.ne 3
  1401. X.BR "obuflimit " [ \fIlimit ]
  1402. X.PP
  1403. XIf the output buffer contains more bytes than the specified limit, no
  1404. Xmore data will be
  1405. Xread from the windows. The default value is 256. If you have a fast
  1406. Xdisplay (like xterm), you can set it to some higher value. If no
  1407. Xargument is specified, the current setting is displayed.
  1408. X.sp
  1409. X.ne 3
  1410. X.B other
  1411. X.PP
  1412. XSwitch to the window displayed previously.
  1413. X.sp
  1414. X.ne 3
  1415. X.BR "partial on" | off
  1416. X.PP
  1417. XDefines whether the display should be refreshed (as done with "C-a l") after
  1418. Xswitching to the current window. This command only affects the current window.
  1419. XTo affect all windows use the \fIallpartial\fP command.
  1420. XDefault is `off', of course.
  1421. X.sp
  1422. X.ne 3
  1423. X.BR "password " [ \fIcrypted_pw ]
  1424. X.PP
  1425. XPresent a crypted password in your \*Q.screenrc\*U file and screen will ask
  1426. Xfor it, whenever someone attempts to resume a detached. This is useful
  1427. Xif you have privileged programs running under
  1428. X.I screen
  1429. Xand you want to protect your session from reattach attempts by another user
  1430. Xmasquerading as your uid (i.e. any superuser.)
  1431. XIf no crypted password is specified, screen prompts twice for typing a 
  1432. Xpassword and places its encryption in the copybuffer.
  1433. XDefault is `none', this disables password checking.
  1434. X.sp
  1435. X.ne 3
  1436. X.BR "paste " [ \fIregisters ]
  1437. X.PP
  1438. XWrite the contents of the specified registers to the stdin queue
  1439. Xof the current window. The register '.' is treated as the
  1440. Xpaste buffer. If no parameter is given only the paste buffer is used.
  1441. XIt can be filled with the \fIcopy\fP, \fIhistory\fP and 
  1442. X\fIreadbuf\fP commands. 
  1443. X.sp
  1444. X.ne 3
  1445. X.B pow_break
  1446. X.PP
  1447. XReopen the window's terminal line and send a break condition. See `break'.
  1448. X.sp
  1449. X.ne 3
  1450. X.B pow_detach
  1451. X.PP
  1452. XPower detach. 
  1453. XMainly the same as \fIdetach\fP, but also sends a HANGUP signal to
  1454. Xthe parent process of
  1455. X.IR screen .
  1456. XCAUTION: This will result in a logout, when 
  1457. X.I screen
  1458. Xwas started from your login shell.
  1459. X.sp
  1460. X.ne 3
  1461. X.BI "pow_detach_msg " message
  1462. X.PP
  1463. XThe \fImessage\fP specified here is output whenever a `Power detach' was
  1464. Xperformed. It may be used as a replacement for a logout message or to reset 
  1465. Xbaud rate, etc. 
  1466. X.sp
  1467. X.ne 3
  1468. X.B prev
  1469. X.PP
  1470. XSwitch to the window with the next lower number.
  1471. XThis command can be used repeatedly to cycle through the list of windows.
  1472. X.sp
  1473. X.ne 3
  1474. X.BR process " [" \fIkey ]
  1475. X.PP
  1476. XStuff the contents of the specified register into \fIscreen\fP's
  1477. Xinput queue. If no argument is given you are prompted for a
  1478. Xregister name. The text is parsed as if it had been typed in from the users
  1479. Xkeyboard. This command can be used to bind multiple actions to a single key.
  1480. X.sp
  1481. X.ne 3
  1482. X.B quit
  1483. X.PP
  1484. XKill all windows and terminate
  1485. X.IR screen .
  1486. XNote that on vt100-style terminals the keys C-4 and C-\e are identical.
  1487. XThis makes the default bindings dangerous:
  1488. XBe careful not to type C-a C-4 when selecting window no. 4.
  1489. XUse the empty bind command (as in \*Qbind '^\e'\*U) to remove a key binding.
  1490. X.sp
  1491. X.ne 3
  1492. X.B readbuf
  1493. X.PP
  1494. XReads the contents of the current screen-exchange file into the copy buffer. 
  1495. XSee also \*Qbufferfile\*U command.
  1496. X.sp
  1497. X.ne 3
  1498. X.B redisplay
  1499. X.PP
  1500. XRedisplay the current window. Needed to get a full redisplay when in
  1501. Xpartial redraw mode.
  1502. X.sp
  1503. X.ne 3
  1504. X.BI "register " "key string"
  1505. X.PP
  1506. XSave the specified \fIstring\fP to the register \fIkey\fP. See also the
  1507. X\*Qins_reg\*U command.
  1508. X.sp
  1509. X.ne 3
  1510. X.B "removebuf"
  1511. X.PP
  1512. XUnlinks the screen-exchange file used by the commands \*Qwritebuf\*U and 
  1513. X\*Qreadbuf\*U. 
  1514. X.sp
  1515. X.ne 3
  1516. X.B "reset"
  1517. X.PP 
  1518. XReset the virtual terminal to its \*Qpower-on\*U values. Useful when strange
  1519. Xsettings (like scroll regions or graphics character set) are left over from
  1520. Xan application.
  1521. X.sp
  1522. X.ne 3
  1523. X.B "screen \fP[\fI-opts\fP] [\fIn\fP] [\fIcmd\fP [\fIargs\fP]]"
  1524. X.PP
  1525. XEstablish a new window.
  1526. XThe flow-control options (\fB\-f\fP, \fB\-fn\fP and \fB\-fa\fP),
  1527. Xtitle (a.\|k.\|a.) option (\fB\-t\fP), login options (\fB-l\fP and \fB-ln\fP)
  1528. X, terminal type option (\fB-T <term>\fP) and scrollback option (\fB-h\fP <num>)
  1529. Xmay be specified for each command.
  1530. XIf an optional number \fIn\fP in the range 0..9 is given, the window
  1531. Xnumber \fIn\fP is assigned to the newly created window (or, if this
  1532. Xnumber is already in-use, the next available number).
  1533. XIf a command is specified after \*Qscreen\*U, this command (with the given
  1534. Xarguments) is started in the window; otherwise, a shell is created.
  1535. XThus, if your \*Q.screenrc\*U contains the lines
  1536. X.sp
  1537. X.nf
  1538. X    # example for .screenrc:
  1539. X    screen 1
  1540. X    screen -fn -t foobar 2 telnet foobar
  1541. X.fi
  1542. X.sp
  1543. X.I screen
  1544. Xcreates a shell window (in window #1) and a window with a TELNET connection
  1545. Xto the machine foobar (with no flow-control using the title \*Qfoobar\*U
  1546. Xin window #2). Note, that unlike previous versions of
  1547. X.I screen
  1548. Xno additional default window is created when \*Qscreen\*U commands are 
  1549. Xincluded in your \*Q.screenrc\*U file. When the initialization is completed,
  1550. X.I screen
  1551. Xswitches to the last window specified in your .screenrc file or, if none,
  1552. Xopens a default window #0.
  1553. X.sp
  1554. X.ne 3
  1555. X.B "scrollback \fP\fInum\fP"
  1556. X.PP
  1557. XSet the size of the scrollback buffer for the current windows to \fInum\fP 
  1558. Xlines. The default scrollback is 100 lines.
  1559. XSee also the \*Qdefscrollback\*U command and use \*QC-a i\*U to view the 
  1560. Xcurrent setting.
  1561. X.sp
  1562. X.ne 3
  1563. X.BR "select " [ \fIn ]
  1564. X.PP
  1565. XSwitch to the window with the number \fIn\fP.
  1566. XIf no window number is specified, you get prompted for an
  1567. Xidentifier. This can be title (alphanumeric window name) or a number.
  1568. XWhen a new window is established, the first available number
  1569. Xis assigned to this window.
  1570. XThus, the first window can be activated by \*Qselect 0\*U (there can be no more
  1571. Xthan 10 windows present simultaneously unless screen is compiled with a higher
  1572. XMAXWIN setting).
  1573. X.sp
  1574. X.ne
  1575. X.BR "sessionname " [ \fIname ]
  1576. X.PP
  1577. XRename the current session. Note, that for \*Qscreen -list\*U the
  1578. Xname shows up with the process-id prepended. If the argument \*Qname\*U
  1579. Xis omitted, the name of this session is displayed. Caution: The $STY 
  1580. Xenvironment variables still reflects the old name. This may result in 
  1581. Xconfusion. 
  1582. XThe default is constructed from the tty and host names.
  1583. X.sp
  1584. X.ne 3
  1585. X.B "setenv " 
  1586. X.RI [ var " [" string ]]
  1587. X.PP
  1588. XSet the environment variable \fIvar\fP to value \fIstring\fP.
  1589. XIf only \fIvar\fP is specified, the user will be prompted to enter a value.
  1590. XIf no parameters are specified, the user will be prompted for both variable
  1591. Xand value. The environment is inherited by all subsequently forked shells.
  1592. X.sp
  1593. X.ne 3
  1594. X.B "shell \fIcommand\fP"
  1595. X.PP
  1596. XSet the command to be used to create a new shell.
  1597. XThis overrides the value of the environment variable $SHELL.
  1598. XThis is useful if you'd like to run a tty-enhancer which is expecting to
  1599. Xexecute the program specified in $SHELL. If the command begins with
  1600. Xa '-' character, the shell will be started as a login-shell.
  1601. X.sp
  1602. X.ne 3
  1603. X.B "shelltitle \fItitle\fP"
  1604. X.PP
  1605. XSet the title for all shells created during startup or by
  1606. Xthe C-A C-c command.
  1607. XFor details about what a title is, see the discussion
  1608. Xentitled \*QTITLES (naming windows)\*U.
  1609. X.sp
  1610. X.ne 3
  1611. X.BR "silence " [ on | off "|\fIsec\fP]"
  1612. X.PP
  1613. XToggles silence monitoring of windows.
  1614. XWhen silence is turned on and an affected window is switched into the
  1615. Xbackground, you will receive the silence notification message in the
  1616. Xstatus line after a specified period of inactivity (silence). The default
  1617. Xtimeout can be changed with the `silencewait' command or by specifying a 
  1618. Xnumber of seconds instead of `on' or `off'.
  1619. XSilence is initially off for all windows.
  1620. X.sp
  1621. X.ne 3
  1622. X.BI "silencewait " sec
  1623. X.PP
  1624. XDefine the time that all windows monitored for silence should wait before
  1625. Xdisplaying a message. Default 30 seconds.
  1626. X.sp
  1627. X.ne
  1628. X.B "sleep \fP\fInum\fP"
  1629. X.PP
  1630. XThis command will pause the execution of a .screenrc file for \fInum\fP seconds.
  1631. XKeyboard activity will end the sleep.
  1632. XIt may be used to give users a chance to read the messages output by \*Qecho\*U.
  1633. X.sp
  1634. X.ne 3
  1635. X.B "slowpaste \fIusec\fP"
  1636. X.PP
  1637. XDefine the speed at which text is inserted by the paste ("C-a ]") command. 
  1638. XIf the slowpaste value is nonzero text is written character by character.
  1639. X.I screen
  1640. Xwill make a pause of \fIusec\fP milliseconds after each write to allow the 
  1641. Xapplication to process its input. Only use slowpaste if your underlying system
  1642. Xexposes flow control problems while pasting large amounts of text.
  1643. X.sp
  1644. X.ne 3
  1645. X.B "startup_message on\fP|\fBoff"
  1646. X.PP
  1647. XSelect whether you want to see the copyright notice during startup.
  1648. XDefault is `on', as you propably noticed.
  1649. X.sp
  1650. X.ne 3
  1651. X.B "suspend"
  1652. X.PP
  1653. XSuspend
  1654. X.IR screen .
  1655. XThe windows are in the `detached' state, while 
  1656. X.IR screen
  1657. Xis suspended. This feature relies on the shell being able to do job control.
  1658. X.sp
  1659. X.ne 3
  1660. X.B "term \fIterm\fP"
  1661. X.PP
  1662. XIn each window's environment
  1663. X.I screen
  1664. Xopens, the $TERM variable is set to \*Qscreen\*U by default. 
  1665. XBut when no description for \*Qscreen\*U is installed in the local termcap
  1666. Xor terminfo data base, you set $TERM to \- say \-
  1667. X\*Qvt100\*U. This won't do much harm, as 
  1668. X.I screen
  1669. Xis VT100/ANSI compatible.
  1670. XThe use of the \*Qterm\*U command is discouraged for non-default purpose.
  1671. XThat is, one may want to specify special $TERM settings (e.g. vt100) for the
  1672. Xnext \*Qscreen rlogin othermachine\*U command. Use the command \*Qscreen -T vt100
  1673. Xrlogin othermachine\*U rather than setting (\*Qterm vt100\*U) and resetting
  1674. X(\*Qterm screen\*U) the default before and after the \*Qscreen\*U command.
  1675. X.sp
  1676. X.ne 3
  1677. X.BI termcap " term terminal-tweaks"
  1678. X.RI [ window-tweaks ]
  1679. X.br
  1680. X.BI terminfo " term terminal-tweaks"
  1681. X.RI [ window-tweaks ]
  1682. X.PP
  1683. XUse this command to modify your terminal's termcap entry without going through
  1684. Xall the hassles involved in creating a custom termcap entry.
  1685. XPlus, you can optionally customize the termcap generated for the windows.
  1686. XIf your system works with terminfo-database rather than with
  1687. Xtermcap,
  1688. X.I screen
  1689. Xwill understand the `terminfo' command, which has the same effects as
  1690. Xthe `termcap' command. Thus users can write one .screenrc file that handles
  1691. Xboth cases, although terminfo syntax is slightly different
  1692. Xfrom termcap syntax.
  1693. X.PP
  1694. XThe first argument specifies which terminal(s) should be affected by this
  1695. Xdefinition.
  1696. XYou can specify multiple terminal names by separating them with `|'s.
  1697. XUse `*' to match all terminals and `vt*' to match all terminals that begin
  1698. Xwith \*Qvt\*U.
  1699. X.PP
  1700. XEach \fItweak\fP argument contains one or more termcap defines (separated
  1701. Xby `:'s) to be inserted at the start of the appropriate termcap entry,
  1702. Xenhancing it or overriding existing values.
  1703. XThe first tweak modifies your terminal's termcap, and contains definitions
  1704. Xthat your terminal uses to perform certain functions.
  1705. XSpecify a null string to leave this unchanged (e.\|g. '').
  1706. XThe second (optional) tweak modifies all the window termcaps, and should
  1707. Xcontain definitions that screen understands (see the \*QVIRTUAL TERMINAL\*U
  1708. Xsection).
  1709. X.PP
  1710. XSome examples:
  1711. X.IP
  1712. Xtermcap xterm*  LP:hs@
  1713. X.PP
  1714. XInforms
  1715. X.I screen
  1716. Xthat all terminals that begin with `xterm' have firm auto-margins that
  1717. Xallow the last position on the screen to be updated (LP), but they don't
  1718. Xreally have a status line (no 'hs' \- append `@' to turn entries off).
  1719. XNote that we assume `LP' for all terminal names that start with \*Qvt\*U,
  1720. Xbut only if you don't specify a termcap command for that terminal.
  1721. X.IP
  1722. Xtermcap vt*  LP
  1723. Xtermcap vt102|vt220  Z0=\eE[?3h:Z1=\eE[?3l
  1724. X.PP
  1725. XSpecifies the firm-margined `LP' capability for all terminals that begin with
  1726. X`vt', and the second line will also add the escape-sequences to switch
  1727. Xinto (Z0) and back out of (Z1) 132-character-per-line mode if this is
  1728. Xa vt102 or vt220.
  1729. X(You must specify Z0 and Z1 in your termcap to use the width-changing
  1730. Xcommands.)
  1731. X.IP
  1732. Xtermcap vt100  ""  l0=PF1:l1=PF2:l2=PF3:l3=PF4
  1733. X.PP
  1734. XThis leaves your vt100 termcap alone and adds the function key labels to
  1735. Xeach window's termcap entry.
  1736. X.IP
  1737. Xtermcap h19|z19  am@:im=\eE@:ei=\eEO  dc=\eE[P
  1738. X.PP
  1739. XTakes a h19 or z19 termcap and turns off auto-margins (am@) and enables the
  1740. Xinsert mode (im) and end-insert (ei) capabilities (the `@' in the `im'
  1741. Xstring is after the `=', so it is part of the string).
  1742. XHaving the `im' and `ei' definitions put into your terminal's termcap will
  1743. Xcause screen to automatically advertise the character-insert capability in
  1744. Xeach window's termcap.
  1745. XEach window will also get the delete-character capability (dc) added to its
  1746. Xtermcap, which screen will translate into a line-update for the terminal
  1747. X(we're pretending it doesn't support character deletion).
  1748. X.PP
  1749. XIf you would like to fully specify each window's termcap entry, you should
  1750. Xinstead set the $SCREENCAP variable prior to running
  1751. X.IR screen .
  1752. XSee the discussion on the \*QVIRTUAL TERMINAL\*U in this manual, and the termcap(5)
  1753. Xman page for more information on termcap definitions.
  1754. X.sp
  1755. X.ne 3
  1756. X.B time
  1757. X.PP
  1758. XUses the message line to display the time of day, the host name, and the load
  1759. Xaverages over 1, 5, and 15 minutes (if this is available on your system).
  1760. XFor window specific information use \*Qinfo\*U.
  1761. X.sp
  1762. X.ne 3
  1763. X.BR "title " [ \fIwindowalias ]
  1764. X.PP
  1765. XSet the name of the current window to \fIwindowalias\fP. If no name is 
  1766. Xspecified, screen prompts for one. This command was known as `aka' in previous
  1767. Xreleases.
  1768. X.sp
  1769. X.ne 3
  1770. X.BI "unsetenv " var
  1771. X.PP
  1772. XUnset an environment variable.
  1773. X.sp
  1774. X.ne 3
  1775. X.BR "vbell on" | off
  1776. X.PP
  1777. XIf your terminal does not support
  1778. Xa visual bell, a `vbell-message' is displayed in the status line. 
  1779. XSets the visual bell setting for this window. If your terminal does not support
  1780. Xa visual bell, a `vbell-message' is displayed in the status line.
  1781. XRefer to the termcap variable `vb' (terminfo: 'flash'). 
  1782. X.sp
  1783. X.ne 3
  1784. X.BI "vbell_msg " message
  1785. X.PP
  1786. XSets the visual bell message. \fImessage\fP is printed to the status line if
  1787. Xthe window receives a bell character (^G) and vbell is set to \*Qon\*U.
  1788. XThe default message is \*QWuff, Wuff!!\*U.
  1789. X.sp
  1790. X.ne 3
  1791. X.BI "vbellwait " sec
  1792. X.PP
  1793. XDefine a delay in seconds after each display of 
  1794. X.IR screen 's
  1795. Xvisual bell message. The default is 1 second.
  1796. X.sp
  1797. X.ne 3
  1798. X.B version
  1799. X.PP
  1800. XPrint the current version and the compile date in the status line.
  1801. X.sp
  1802. X.ne 3
  1803. X.BI "wall " "message ..."
  1804. X.PP
  1805. XWrite a message to all displays. The message will appear in the terminals 
  1806. Xstatus line.
  1807. X.sp
  1808. X.ne 3
  1809. X.BR "width " [ \fInum ]
  1810. X.PP
  1811. XToggle the window width between 80 and 132 columns or set it to \fInum\fP 
  1812. Xcolumns if an argument is specified. 
  1813. XThis requires a capable terminal and the termcap entries \*QZ0\*U and \*QZ1\*U.
  1814. XSee the \*Qtermcap\*U command for more information.
  1815. X.sp
  1816. X.ne 3
  1817. X.B windows
  1818. X.PP
  1819. XUses the message line to display a list of all the windows.
  1820. XEach window is listed by number with the name of process that has been
  1821. Xstarted in the window (or its title);
  1822. Xthe current window is marked with a `*';
  1823. Xthe previous window is marked with a `-';
  1824. Xall the windows that are \*Qlogged in\*U are marked with a `$';
  1825. Xa background window that has received a bell is marked with a `!';
  1826. Xa background window that is being monitored and has had activity occur
  1827. Xis marked with an `@';
  1828. Xa window which has output logging turned on is marked with `(L)'; 
  1829. Xwindows occupied by other users are marked with `&';
  1830. Xwindows in the zombie state are marked with `Z'.
  1831. XIf this list is too long to fit on the terminals status line only the 
  1832. Xportion around the current window is displayed.
  1833. X.sp
  1834. X.ne 3
  1835. X.BR "wrap " [ on | off ]
  1836. X.PP
  1837. XSets the line-wrap setting for the current window.
  1838. XWhen line-wrap is on, the second consecutive printable character output at
  1839. Xthe last column of a line will wrap to the start of the following line.
  1840. XAs an added feature, backspace (^H) will also wrap through the left margin
  1841. Xto the previous line.
  1842. XDefault is `on'.
  1843. X.sp
  1844. X.ne 3
  1845. X.B writebuf
  1846. X.PP
  1847. XWrites the contents of the paste buffer to a public accessible screen-exchange
  1848. Xfile. This is thought of as a primitive means of communication between
  1849. X.I screen
  1850. Xusers on the same host. The filename can be set with the \fIbufferfile\fP 
  1851. Xcommand and defaults to \*Q/tmp/screen-exchange\*U.
  1852. X.sp
  1853. X.ne 3
  1854. X.B writelock
  1855. X.IB [ on | off | auto\fP]
  1856. X.PP
  1857. XIn addition to access control lists, not all users may be able to write to
  1858. Xthe same window at once. Per default, writelock is in `auto' mode and
  1859. Xgrants exclusive input permission to the user who is the first to switch
  1860. Xto the particular window. When he leaves the window, other users may obtain
  1861. Xthe writelock (automatically). The writelock of the current window is disabled
  1862. Xby the command \*Qwritelock off\*U. If the user issues the command 
  1863. X\*Qwritelock on\*U he keeps the exclusive write permission while switching
  1864. Xto other windows.
  1865. X.sp
  1866. X.ne 3
  1867. X.B xoff
  1868. X.br
  1869. X.B xon
  1870. X.PP
  1871. XInsert a CTRL-s / CTRL-q character to the stdin queue of the
  1872. Xcurrent window.
  1873. X.sp
  1874. X.ne 3
  1875. X.BR "zombie " [\fIkey\fP]
  1876. X.PP
  1877. XPer default screen windows are removed from the window list as soon as
  1878. Xthe windows process (e.g. shell) exits. When a key is specified to the
  1879. Xzombie command a `dead' windows will remain in the list until it is selected 
  1880. Xand this key is pressed or the \*Qkill\*U command is issued.
  1881. X
  1882. X.SH "THE MESSAGE LINE"
  1883. X.I Screen
  1884. Xdisplays informational messages and other diagnostics in a \fImessage line\fP.
  1885. XWhile this line is distributed to appear at the bottom of the screen,
  1886. Xit can be defined to appear at the top of the screen during compilation.
  1887. XIf your terminal has a status line defined in its termcap, screen will use
  1888. Xthis for displaying its messages, otherwise a line of the current screen will
  1889. Xbe temporarily overwritten and output will be momentarily interrupted. The
  1890. Xmessage line is automatically removed after a few seconds delay, but it
  1891. Xcan also be removed early (on terminals without a status line) by beginning
  1892. Xto type.
  1893. X.PP
  1894. XThe message line facility can be used by an application running in
  1895. Xthe current window by means of the ANSI \fIPrivacy message\fP
  1896. Xcontrol sequence.
  1897. XFor instance, from within the shell, try something like:
  1898. X.IP
  1899. Xecho '<esc>^Hello world from window '$WINDOW'<esc>\e\e'
  1900. X.PP
  1901. Xwhere '<esc>' is an \fIescape\fP, '^' is a literal up-arrow,
  1902. Xand '\e\e' turns into a single backslash.
  1903. X
  1904. X
  1905. X.SH "FLOW-CONTROL"
  1906. XEach window has a flow-control setting that determines how screen deals with
  1907. Xthe XON and XOFF characters (and perhaps the interrupt character).
  1908. XWhen flow-control is turned off, screen ignores the XON and XOFF characters,
  1909. Xwhich allows the user to send them to the current program by simply typing
  1910. Xthem (useful for the \fIemacs\fP editor, for instance).
  1911. XThe trade-off is that it will take longer for output from a \*Qnormal\*U
  1912. Xprogram to pause in response to an XOFF.
  1913. XWith flow-control turned on, XON and XOFF characters are used to immediately
  1914. Xpause the output of the current window.
  1915. XYou can still send these characters to the current program, but you must use
  1916. Xthe appropriate two-character screen commands (typically \*QC-a q\*U (xon)
  1917. Xand \*QC-a s\*U (xoff)).
  1918. XThe xon/xoff commands are also useful for typing C-s and C-q past a terminal
  1919. Xthat intercepts these characters.
  1920. X.PP
  1921. XEach window has an initial flow-control value set with either the
  1922. X.B \-f
  1923. Xoption or the \*Qdefflow\*U .screenrc command. Per default the windows
  1924. Xare set to automatic flow-switching.
  1925. XIt can then be toggled between the three states 'fixed on', 'fixed off' and
  1926. X'automatic' interactively with the \*Qflow\*U command bound to "C-a f".
  1927. X.PP
  1928. XThe automatic flow-switching mode deals with
  1929. Xflow control using the TIOCPKT mode (like \*Qrlogin\*U does). If
  1930. Xthe tty driver does not support TIOCPKT, screen tries to find out
  1931. Xthe right mode based on the current setting of the application
  1932. Xkeypad \- when it is enabled, flow-control is turned off and visa versa.
  1933. XOf course, you can still manipulate flow-control manually when needed.
  1934. X.PP
  1935. XIf you're running with flow-control enabled and find that pressing the
  1936. Xinterrupt key (usually C-c) does not interrupt the display until another
  1937. X6-8 lines have scrolled by, try running screen with the \*Qinterrupt\*U
  1938. Xoption (add the \*Qinterrupt\*U flag to the \*Qflow\*U command in
  1939. Xyour .screenrc, or use the
  1940. X.B \-i
  1941. Xcommand-line option).
  1942. XThis causes the output that
  1943. X.I screen
  1944. Xhas accumulated from the interrupted program to be flushed.
  1945. XOne disadvantage is that the virtual terminal's memory contains the
  1946. Xnon-flushed version of the output, which in rare cases can cause
  1947. Xminor inaccuracies in the output.
  1948. XFor example, if you switch screens and return, or update the screen
  1949. Xwith \*QC-a l\*U you would see the version of the output you would
  1950. Xhave gotten without \*Qinterrupt\*U being on.
  1951. XAlso, you might need to turn off flow-control (or use auto-flow mode to turn
  1952. Xit off automatically) when running a program that expects you to type the
  1953. Xinterrupt character as input, as it is possible to interrupt
  1954. Xthe output of the virtual terminal to your physical terminal when flow-control
  1955. Xis enabled.
  1956. XIf this happens, a simple refresh of the screen with \*QC-a l\*U will
  1957. Xrestore it.
  1958. XGive each mode a try, and use whichever mode you find more comfortable.
  1959. X
  1960. X
  1961. X.SH "TITLES (naming windows)"
  1962. XYou can customize each window's name in the window display (viewed with the
  1963. X\*Qwindows\*U command (C-a w)) by setting it with one of
  1964. Xthe title commands.
  1965. XNormally the name displayed is the actual command name of the program
  1966. Xcreated in the window.
  1967. XHowever, it is sometimes useful to distinguish various programs of the same
  1968. Xname or to change the name on-the-fly to reflect the current state of
  1969. Xthe window.
  1970. X.PP
  1971. XThe default name for all shell windows can be set with the \*Qshelltitle\*U
  1972. Xcommand in the .screenrc file, while all other windows are created with
  1973. Xa \*Qscreen\*U command and thus can have their name set with the
  1974. X.B \-t
  1975. Xoption.
  1976. XInteractively, there is the title-string escape-sequence
  1977. X(<esc>k\fIname\fP<esc>\e) and the \*Qtitle\*U command (C-a A).
  1978. XThe former can be output from an application to control the window's name
  1979. Xunder software control, and the latter will prompt for a name when typed.
  1980. XYou can also bind pre-defined names to keys with the \*Qtitle\*U command
  1981. Xto set things quickly without prompting.
  1982. X.PP
  1983. XFinally,
  1984. X.I screen
  1985. Xhas a shell-specific heuristic that is enabled by setting the window's name
  1986. Xto \*Q\fIsearch|name\fP\*U and arranging to have a null title escape-sequence
  1987. Xoutput as a part of your prompt.
  1988. XThe \fIsearch\fP portion specifies an end-of-prompt search string, while
  1989. Xthe \fIname\fP portion specifies the default shell name for the window.
  1990. XIf the \fIname\fP ends in a `:'
  1991. X.I screen
  1992. Xwill add what it believes to be the current command running in the window
  1993. Xto the end of the window's shell name (e.\|g. \*Q\fIname:cmd\fP\*U).
  1994. XOtherwise the current command name supersedes the shell name while it is
  1995. Xrunning.
  1996. X.PP
  1997. XHere's how it works:  you must modify your shell prompt to output a null
  1998. Xtitle-escape-sequence (<esc>k<esc>\e) as a part of your prompt.
  1999. XThe last part of your prompt must be the same as the string you specified
  2000. Xfor the \fIsearch\fP portion of the title.
  2001. XOnce this is set up,
  2002. X.I screen
  2003. Xwill use the title-escape-sequence to clear the previous command name and
  2004. Xget ready for the next command.
  2005. XThen, when a newline is received from the shell, a search is made for the
  2006. Xend of the prompt.
  2007. XIf found, it will grab the first word after the matched string and use it
  2008. Xas the command name.
  2009. XIf the command name begins with either '!', '%', or '^'
  2010. X.I screen
  2011. Xwill use the first word on the following line (if found) in preference to
  2012. Xthe just-found name.
  2013. XThis helps csh users get better command names when using job control or
  2014. Xhistory recall commands.
  2015. X.PP
  2016. XHere's some .screenrc examples:
  2017. X.IP
  2018. Xscreen -t top 2 nice top
  2019. X.PP
  2020. XAdding this line to your .screenrc would start a nice-d version of the
  2021. X\*Qtop\*U command in window 2 name \*Qtop\*U rather than \*Qnice\*U.
  2022. X.sp
  2023. X.nf
  2024. X    shelltitle '> |csh'
  2025. X    screen 1
  2026. X.fi
  2027. X.sp
  2028. XThese commands would start a shell with the given shelltitle.
  2029. XThe title specified is an auto-title that would expect the prompt and
  2030. Xthe typed command to look something like the following:
  2031. X.IP
  2032. X/usr/joe/src/dir> trn
  2033. X.PP
  2034. X(it looks after the '> ' for the command name).
  2035. XThe window status would show the name \*Qtrn\*U while the command was
  2036. Xrunning, and revert to \*Qcsh\*U upon completion.
  2037. X.IP
  2038. Xbind R screen -t '% |root:' su
  2039. X.PP
  2040. XHaving this command in your .screenrc would bind the key
  2041. Xsequence \*QC-a R\*U to the \*Qsu\*U command and give it an
  2042. Xauto-title name of \*Qroot:\*U.
  2043. XFor this auto-title to work, the screen could look something
  2044. Xlike this:
  2045. X.sp
  2046. X.nf
  2047. X    % !em
  2048. X    emacs file.c
  2049. X.fi
  2050. X.sp
  2051. XHere the user typed the csh history command \*Q!em\*U which ran the
  2052. Xpreviously entered \*Qemacs\*U command.
  2053. XThe window status would show \*Qroot:emacs\*U during the execution
  2054. Xof the command, and revert to simply \*Qroot:\*U at its completion.
  2055. X.PP
  2056. X.nf
  2057. X    bind o title
  2058. X    bind E title ""
  2059. X    bind u title (unknown)
  2060. X.fi
  2061. X.sp
  2062. XThe first binding doesn't have any arguments, so it would prompt you
  2063. Xfor a title. when you type \*QC-a o\*U.
  2064. XThe second binding would clear an auto-title's current setting (C-a E).
  2065. XThe third binding would set the current window's title to \*Q(unknown)\*U
  2066. X(C-a u).
  2067. X.PP
  2068. XOne thing to keep in mind when adding a null title-escape-sequence to
  2069. Xyour prompt is that some shells (like the csh) count all the non-control
  2070. Xcharacters as part of the prompt's length.
  2071. XIf these invisible characters aren't a multiple of 8 then backspacing over
  2072. Xa tab will result in an incorrect display.
  2073. XOne way to get around this is to use a prompt like this:
  2074. X.IP
  2075. Xset prompt='^[[0000m^[k^[\e% '
  2076. X.PP
  2077. XThe escape-sequence \*Q<esc>[0000m\*U not only normalizes the character
  2078. Xattributes, but all the zeros round the length of the invisible characters
  2079. Xup to 8.
  2080. XBash users will probably want to echo the escape sequence in the
  2081. XPROMPT_COMMAND:
  2082. X.IP
  2083. XPROMPT_COMMAND='echo -n -e "\e033k\e033\e134"'
  2084. X.PP
  2085. X(I used \*Q\134\*U to output a `\e' because of a bug in bash v1.04).
  2086. X
  2087. X
  2088. X.SH "THE VIRTUAL TERMINAL"
  2089. XUsually
  2090. X.I screen
  2091. Xtries to emulate as much of the VT100/ANSI standard
  2092. Xas possible. But if your terminal lacks certain capabilities,
  2093. Xthe emulation may not be complete. In these cases
  2094. X.I screen
  2095. Xhas to tell the applications that some of the features
  2096. Xare missing. This is no problem on machines using termcap,
  2097. Xbecause
  2098. X.I screen
  2099. Xcan use the $TERMCAP variable to
  2100. Xcustomize the standard screen termcap.
  2101. X.PP
  2102. XBut if you do a
  2103. Xrlogin on another machine or your machine supports only
  2104. Xterminfo this method fails. Because of this,
  2105. X.I screen
  2106. Xoffers a way to deal with these cases. 
  2107. XHere is how it works:
  2108. X.PP
  2109. XWhen 
  2110. X.I screen
  2111. Xtries to figure out a terminal name for itself,
  2112. Xit first looks
  2113. Xfor an entry named \*Qscreen.<term>\*U, where <term> is
  2114. Xthe contents of your $TERM variable.
  2115. XIf no such entry exists,
  2116. X.I screen
  2117. Xtries \*Qscreen\*U (or \*Qscreen-w\*U if the terminal is wide
  2118. X(132 cols or more)).
  2119. XIf even this entry cannot be found, \*Qvt100\*U is used as a
  2120. Xsubstitute.
  2121. X.PP
  2122. XThe idea is that if you have a terminal which doesn't
  2123. Xsupport an important feature (e.g. delete char or clear to EOS)
  2124. Xyou can build a new termcap/terminfo entry for
  2125. X.I screen
  2126. X(named \*Qscreen.<dumbterm>\*U) in which this capability
  2127. Xhas been disabled. If this entry is installed on your
  2128. Xmachines you are able to do
  2129. Xa rlogin and still keep the correct termcap/terminfo entry.
  2130. XThe terminal name is put in the $TERM variable
  2131. Xof all new windows.
  2132. X.I Screen
  2133. Xalso sets the $TERMCAP variable reflecting the capabilities
  2134. Xof the virtual terminal emulated. Notice that, however, on machines
  2135. Xusing the terminfo database this variable has no effect.
  2136. XFurthermore, the variable $WINDOW is set to the window number
  2137. Xof each window.
  2138. X.PP
  2139. XThe actual set of capabilities supported by the virtual terminal
  2140. Xdepends on the capabilities supported by the physical terminal.
  2141. XIf, for instance, the physical terminal does not support underscore mode,
  2142. X.I screen
  2143. Xdoes not put the `us' and `ue' capabilities into the window's $TERMCAP
  2144. Xvariable, accordingly.
  2145. XHowever, a minimum number of capabilities must be supported by a
  2146. Xterminal in order to run
  2147. X.IR screen ;
  2148. Xnamely scrolling, clear screen, and direct cursor addressing
  2149. X(in addition,
  2150. X.I screen
  2151. Xdoes not run on hardcopy terminals or on terminals that over-strike).
  2152. X.PP
  2153. XAlso, you can customize the $TERMCAP value used by
  2154. X.I screen
  2155. Xby using the \*Qtermcap\*U .screenrc command, or
  2156. Xby defining the variable $SCREENCAP prior to startup.
  2157. XWhen the is latter defined, its value will be copied verbatim into each
  2158. Xwindow's $TERMCAP variable.
  2159. XThis can either be the full terminal definition, or a filename where the
  2160. Xterminal \*Qscreen\*U (and/or \*Qscreen-w\*U) is defined.
  2161. X.PP
  2162. XNote that 
  2163. X.I screen
  2164. Xhonors the \*Qterminfo\*U .screenrc command if the system uses the
  2165. Xterminfo database rather than termcap.
  2166. X.PP
  2167. XWhen the boolean `G0' capability is present in the termcap entry
  2168. Xfor the terminal on which
  2169. X.I screen
  2170. Xhas been called, the terminal emulation of
  2171. X.I screen
  2172. Xsupports multiple character sets.
  2173. XThis allows an application to make use of, for instance,
  2174. Xthe VT100 graphics character set or national character sets.
  2175. XThe following control functions from ISO 2022 are supported:
  2176. X\fIlock shift G0\fP (\fISI\fP), \fIlock shift G1\fP (\fISO\fP),
  2177. X\fIlock shift G2\fP, \fIlock shift G3\fP, \fIsingle shift G2\fP,
  2178. Xand \fIsingle shift G3\fP.
  2179. XWhen a virtual terminal is created or reset, the ASCII character
  2180. Xset is designated as \fIG0\fP through \fIG3\fP.
  2181. XWhen the `G0' capability is present, screen evaluates the capabilities
  2182. X`S0', `E0', and `C0' if present. `S0' is the sequence the terminal uses
  2183. Xto enable and start the graphics character set rather than \fISI\fP. 
  2184. X`E0' is the corresponding replacement for \fISO\fP. `C0' gives a character
  2185. Xby character translation string that is used during semi-graphics mode. This 
  2186. Xstring is built like the `acsc' terminfo capability.
  2187. X.PP
  2188. XWhen the `po' and `pf' capabilities are present in the terminal's
  2189. Xtermcap entry, applications running in a
  2190. X.I screen
  2191. Xwindow can send output to the printer port of the terminal.
  2192. XThis allows a user to have an application in one window
  2193. Xsending output to a printer connected to the terminal, while all
  2194. Xother windows are still active (the printer port is enabled
  2195. Xand disabled again for each chunk of output).
  2196. XAs a side-effect, programs running in different windows can
  2197. Xsend output to the printer simultaneously.
  2198. XData sent to the printer is not displayed in the window.
  2199. X.PP
  2200. XSome capabilities are only put into the $TERMCAP
  2201. Xvariable of the virtual terminal if they can be efficiently
  2202. Ximplemented by the physical terminal.
  2203. XFor instance, `dl' (delete line) is only put into the $TERMCAP
  2204. Xvariable if the terminal supports either delete line itself or
  2205. Xscrolling regions. Note that this may provoke confusion, when 
  2206. Xthe session is reattached on a different terminal, as the value
  2207. Xof $TERMCAP cannot be modified by parent processes.
  2208. X.PP
  2209. XThe following is a list of control sequences recognized by
  2210. X.IR screen .
  2211. X\*Q(V)\*U and \*Q(A)\*U indicate VT100-specific and ANSI- or
  2212. XISO-specific functions, respectively.
  2213. X.PP
  2214. X.ta 22n
  2215. X.TP 27
  2216. X.B "ESC E"
  2217. XNext Line
  2218. X.TP 27
  2219. X.B "ESC D"
  2220. XIndex
  2221. X.TP 27
  2222. X.B "ESC M"
  2223. XReverse Index
  2224. X.TP 27
  2225. X.B "ESC H"
  2226. XHorizontal Tab Set
  2227. X.TP 27
  2228. X.B "ESC Z"
  2229. XSend VT100 Identification String
  2230. X.TP 27
  2231. X.BR "ESC 7" "    (V)"
  2232. XSave Cursor and Attributes
  2233. X.TP 27
  2234. X.BR "ESC 8" "    (V)"
  2235. XRestore Cursor and Attributes
  2236. X.TP 27
  2237. X.BR "ESC [s" "    (A)"
  2238. XSave Cursor and Attributes
  2239. X.TP 27
  2240. X.BR "ESC [u" "    (A)"
  2241. XRestore Cursor and Attributes
  2242. X.TP 27
  2243. X.B "ESC c"
  2244. XReset to Initial State
  2245. X.TP 27
  2246. X.BR "ESC =" "    (V)"
  2247. XApplication Keypad Mode
  2248. X.TP 27
  2249. X.BR "ESC >" "    (V)"
  2250. XNumeric Keypad Mode
  2251. X.TP 27
  2252. X.BR "ESC # 8" "    (V)"
  2253. XFill Screen with E's
  2254. X.TP 27
  2255. X.BR "ESC \e" "    (A)"
  2256. XString Terminator
  2257. X.TP 27
  2258. X.BR "ESC ^" "    (A)"
  2259. XPrivacy Message String (Message Line)
  2260. X.TP 27
  2261. X.B "ESC !"
  2262. XGlobal Message String (Message Line)
  2263. X.TP 27
  2264. X.B "ESC k"
  2265. XA.\|k.\|a. Definition String
  2266. X.TP 27
  2267. X.BR "ESC P" "    (A)"
  2268. XDevice Control String.
  2269. XOutputs a string directly to the host
  2270. Xterminal without interpretation.
  2271. X.TP 27
  2272. X.BR "ESC _" "    (A)"
  2273. XApplication Program Command (not used)
  2274. X.TP 27
  2275. X.BR "ESC ]" "    (A)"
  2276. XOperating System Command (not used)
  2277. X.TP 27
  2278. X.BR "Control-N" "    (A)"
  2279. XLock Shift G1 (SO)
  2280. X.TP 27
  2281. X.BR "Control-O" "    (A)"
  2282. XLock Shift G0 (SI)
  2283. X.TP 27
  2284. X.BR "ESC n" "    (A)"
  2285. XLock Shift G2
  2286. X.TP 27
  2287. X.BR "ESC o" "    (A)"
  2288. XLock Shift G3
  2289. X.TP 27
  2290. X.BR "ESC N" "    (A)"
  2291. XSingle Shift G2
  2292. X.TP 27
  2293. X.BR "ESC O" "    (A)"
  2294. XSingle Shift G3
  2295. X.TP 27
  2296. X.BR "ESC ( \fPPcs" "    (A)"
  2297. XDesignate character set as G0
  2298. X.TP 27
  2299. X.BR "ESC ) \fPPcs" "    (A)"
  2300. XDesignate character set as G1
  2301. X.TP 27
  2302. X.BR "ESC * \fPPcs" "    (A)"
  2303. XDesignate character set as G2
  2304. X.TP 27
  2305. X.BR "ESC + \fPPcs" "    (A)"
  2306. XDesignate character set as G3
  2307. X.TP 27
  2308. X.B "ESC [ \fPPn\fB ; \fPPn\fB H"
  2309. XDirect Cursor Addressing
  2310. X.TP 27
  2311. X.B "ESC [ \fPPn\fB ; \fPPn\fB f"
  2312. XDirect Cursor Addressing
  2313. X.TP 27
  2314. X.B "ESC [ \fPPn\fB J"
  2315. XErase in Display
  2316. X.TP 27
  2317. X\h'\w'ESC [ 'u'Pn = None or \fB0\fP
  2318. XFrom Cursor to End of Screen
  2319. X.TP 27
  2320. X\h'\w'ESC [ Pn = 'u'\fB1\fP
  2321. XFrom Beginning of Screen to Cursor
  2322. X.TP 27
  2323. X\h'\w'ESC [ Pn = 'u'\fB2\fP
  2324. XEntire Screen
  2325. X.TP 27
  2326. X.B "ESC [ \fPPn\fB K"
  2327. XErase in Line
  2328. X.TP 27
  2329. X\h'\w'ESC [ 'u'Pn = None or \fB0\fP
  2330. XFrom Cursor to End of Line
  2331. X.TP 27
  2332. X\h'\w'ESC [ Pn = 'u'\fB1\fP
  2333. XFrom Beginning of Line to Cursor
  2334. X.TP 27
  2335. X\h'\w'ESC [ Pn = 'u'\fB2\fP
  2336. XEntire Line
  2337. X.TP 27
  2338. X.B "ESC [ \fPPn\fB A"
  2339. XCursor Up
  2340. X.TP 27
  2341. X.B "ESC [ \fPPn\fB B"
  2342. XCursor Down
  2343. X.TP 27
  2344. X.B "ESC [ \fPPn\fB C"
  2345. XCursor Right
  2346. X.TP 27
  2347. X.B "ESC [ \fPPn\fB D"
  2348. XCursor Left
  2349. X.TP 27
  2350. X.B "ESC [ \fPPs\fB ;\fP...\fB; \fPPs\fB m"
  2351. XSelect Graphic Rendition
  2352. X.TP 27
  2353. X\h'\w'ESC [ 'u'Ps = None or \fB0\fP
  2354. XDefault Rendition
  2355. X.TP 27
  2356. X\h'\w'ESC [ Ps = 'u'\fB1\fP
  2357. XBold
  2358. X.TP 27
  2359. X\h'\w'ESC [ Ps = 'u'\fB2\fP    (A)
  2360. XFaint
  2361. X.TP 27
  2362. X\h'\w'ESC [ Ps = 'u'\fB3\fP    (A)
  2363. X\fIStandout\fP Mode (ANSI: Italicized)
  2364. X.TP 27
  2365. X\h'\w'ESC [ Ps = 'u'\fB4\fP
  2366. XUnderlined
  2367. X.TP 27
  2368. X\h'\w'ESC [ Ps = 'u'\fB5\fP
  2369. XBlinking
  2370. X.TP 27
  2371. X\h'\w'ESC [ Ps = 'u'\fB7\fP
  2372. XNegative Image
  2373. X.TP 27
  2374. X\h'\w'ESC [ Ps = 'u'\fB22\fP    (A)
  2375. XNormal Intensity
  2376. X.TP 27
  2377. X\h'\w'ESC [ Ps = 'u'\fB23\fP    (A)
  2378. X\fIStandout\fP Mode off (ANSI: Italicized off)
  2379. X.TP 27
  2380. X\h'\w'ESC [ Ps = 'u'\fB24\fP    (A)
  2381. XNot Underlined
  2382. X.TP 27
  2383. X\h'\w'ESC [ Ps = 'u'\fB25\fP    (A)
  2384. XNot Blinking
  2385. X.TP 27
  2386. X\h'\w'ESC [ Ps = 'u'\fB27\fP    (A)
  2387. XPositive Image
  2388. X.TP 27
  2389. X.B "ESC [ \fPPn\fB g"
  2390. XTab Clear
  2391. X.TP 27
  2392. X\h'\w'ESC [ 'u'Pn = None or \fB0\fP
  2393. XClear Tab at Current Position
  2394. X.TP 27
  2395. X\h'\w'ESC [ Ps = 'u'\fB3\fP
  2396. XClear All Tabs
  2397. X.TP 27
  2398. X.BR "ESC [ \fPPn\fB ; \fPPn\fB r" "    (V)"
  2399. XSet Scrolling Region
  2400. X.TP 27
  2401. X.BR "ESC [ \fPPn\fB I" "    (A)"
  2402. XHorizontal Tab
  2403. X.TP 27
  2404. X.BR "ESC [ \fPPn\fB Z" "    (A)"
  2405. XBackward Tab
  2406. X.TP 27
  2407. X.BR "ESC [ \fPPn\fB L" "    (A)"
  2408. XInsert Line
  2409. X.TP 27
  2410. X.BR "ESC [ \fPPn\fB M" "    (A)"
  2411. XDelete Line
  2412. X.TP 27
  2413. X.BR "ESC [ \fPPn\fB @" "    (A)"
  2414. XInsert Character
  2415. X.TP 27
  2416. X.BR "ESC [ \fPPn\fB P" "    (A)"
  2417. XDelete Character
  2418. X.TP 27
  2419. X.B "ESC [ \fPPs\fB ;\fP...\fB; \fPPs\fB h"
  2420. XSet Mode
  2421. X.TP 27
  2422. X.B "ESC [ \fPPs\fB ;\fP...\fB; \fPPs\fB l"
  2423. XReset Mode
  2424. X.TP 27
  2425. X\h'\w'ESC [ 'u'Ps = \fB4\fP    (A)
  2426. XInsert Mode
  2427. X.TP 27
  2428. X\h'\w'ESC [ Ps = 'u'\fB?1\fP    (V)
  2429. XApplication Cursor Keys
  2430. X.TP 27
  2431. X\h'\w'ESC [ Ps = 'u'\fB?3\fP    (V)
  2432. XChange Terminal Width to 132 columns
  2433. X.TP 27
  2434. X\h'\w'ESC [ Ps = 'u'\fB?5\fP    (V)
  2435. XVisible Bell (\fIOn\fP followed by \fIOff\fP)
  2436. X.TP 27
  2437. X\h'\w'ESC [ Ps = 'u'\fB?6\fP    (V)
  2438. X\fIOrigin\fP Mode
  2439. X.TP 27
  2440. X\h'\w'ESC [ Ps = 'u'\fB?7\fP    (V)
  2441. X\fIWrap\fP Mode
  2442. X.TP 27
  2443. X.BR "ESC [ 5 i" "    (A)"
  2444. XStart relay to printer (ANSI Media Copy)
  2445. X.TP 27
  2446. X.BR "ESC [ 4 i" "    (A)"
  2447. XStop relay to printer (ANSI Media Copy)
  2448. X.TP 27
  2449. X.B "ESC [ 8 ; \fPPh\fB ; \fPPw\fB t"
  2450. XResize the window to `Ph' lines and `Pw' columns (SunView special)
  2451. X.TP 27
  2452. X.B "ESC [ c"
  2453. XSend VT100 Identification String
  2454. X.TP 27
  2455. X.B "ESC [ 6 n"
  2456. XSend Cursor Position Report
  2457. X
  2458. X
  2459. X.SH SPECIAL TERMINAL CAPABILITIES
  2460. XThe following table describes all terminal capabilities
  2461. Xthat are recognized by \fIscreen\fP and are not in the
  2462. Xtermcap(5) manual.
  2463. X.PP
  2464. X.ta 5n
  2465. X.TP 13
  2466. X.BI LP "    (bool)"
  2467. XTerminal has vt100 style margins (`magic margins'). Note that
  2468. Xthis capability is obsolete because \fIscreen\fP uses 'xn'
  2469. Xinstead.
  2470. X.TP 13
  2471. X.BI Z0 "    (str)"
  2472. XChange width to 132 columns.
  2473. X.TP 13
  2474. X.BI Z1 "    (str)"
  2475. XChange width to 80 columns.
  2476. X.TP 13
  2477. X.BI WS "    (str)"
  2478. XResize display. This capability has the desired width and height as
  2479. Xarguments. \fISunView(tm)\fP example: '\eE[8;%d;%dt'.
  2480. X.TP 13
  2481. X.BI B8 "    (str)"
  2482. XTell \fIscreen\fP to look out for characters with 8th bit set. If such
  2483. Xa character is found \fIscreen\fP processes the specified string
  2484. Xand than outputs the character with the 8th bit stripped off.
  2485. XNote that the string can contain any esc-sequences known to
  2486. X\fIscreen\fP, too. (Example: Single Shift G2 = \eEN.)
  2487. X.TP 13
  2488. X.BI OP "    (bool)"
  2489. XDon't do a full vt100 style margin emulation. Same as the -O option.
  2490. X.TP 13
  2491. X.BI NF "    (bool)"
  2492. XTerminal doesn't need flow control. Send ^S and ^Q direct to
  2493. Xthe application. Same as 'flow off'. The opposite of this
  2494. Xcapability is 'xo'.
  2495. X.TP 13
  2496. X.BI G0 "    (bool)"
  2497. XTerminal can deal with ISO2022 font selection sequences.
  2498. X.TP 13
  2499. X.BI S0 "    (str)"
  2500. XSwitch charset 'G0' to the specified charset. Default
  2501. Xis '\eE(%d'.
  2502. X.TP 13
  2503. X.BI E0 "    (str)"
  2504. XSwitch charset 'G0' back to standard charset. Default
  2505. Xis '\eE(B'.
  2506. X.TP 13
  2507. X.BI C0 "    (str)"
  2508. XUse the string as a conversion table for font '0'. See
  2509. Xthe 'ac' capability for more details.
  2510. X.TP 13
  2511. X.BI CS "    (str)"
  2512. XSwitch cursorkeys to application mode.
  2513. X.TP 13
  2514. X.BI CE "    (str)"
  2515. XSwitch cursorkeys back to normal mode.
  2516. X.TP 13
  2517. X.BI AN "    (bool)"
  2518. XTurn on autonuke. See the 'autonuke' command for more details.
  2519. X.TP 13
  2520. X.BI OL "    (num)"
  2521. XSet the output buffer limit. See the 'obuflimit' command for more details.
  2522. X
  2523. X
  2524. X.SH ENVIRONMENT
  2525. X.PD 0
  2526. X.IP COLUMNS 15
  2527. XNumber of columns on the terminal (overrides termcap entry).
  2528. X.IP HOME
  2529. XDirectory in which to look for .screenrc.
  2530. X.IP ISCREENRC
  2531. XAlternate user screenrc file.
  2532. X.IP LINES 
  2533. XNumber of lines on the terminal (overrides termcap entry).
  2534. X.IP LOCKPRG
  2535. XScreen lock program.
  2536. X.IP NETHACKOPTIONS
  2537. XTurns on nethack option.
  2538. X.IP PATH
  2539. XUsed for locating programs to run.
  2540. X.IP SCREENCAP
  2541. XFor customizing a terminal's TERMCAP value.
  2542. X.IP SCREENDIR
  2543. XAlternate socket directory.
  2544. X.IP SCREENRC
  2545. XAlternate user screenrc file.
  2546. X.IP SHELL
  2547. XDefault shell program for opening windows (default \*Q/bin/sh\*U).
  2548. X.IP STY
  2549. XAlternate socket name.
  2550. X.IP SYSSCREENRC
  2551. XAlternate system screenrc file.
  2552. X.IP TERM
  2553. XTerminal name.
  2554. X.IP TERMCAP
  2555. XTerminal description.
  2556. X
  2557. X
  2558. X.SH FILES
  2559. X.PD 0
  2560. X.IP $SYSSCREENRC 28
  2561. X.IP /local/etc/screenrc
  2562. X\fIscreen\fP initialization commands
  2563. X.IP $ISCREENRC
  2564. X.IP $SCREENRC
  2565. X.IP $HOME/.iscreenrc
  2566. X.IP $HOME/.screenrc
  2567. XRead in after /local/etc/screenrc
  2568. X.IP $ISCREENDIR/S-<login>
  2569. X.IP $SCREENDIR/S-<login>
  2570. X.IP /local/screens/S-<login>
  2571. XSocket directories (default)
  2572. X.IP /usr/tmp/screens/S-<login>
  2573. XAlternate socket directories.
  2574. X.IP "<socket directory>/.termcap"
  2575. XWritten by the "termcap" output function
  2576. X.IP /usr/tmp/screens/screen-exchange
  2577. Xor
  2578. X.IP /tmp/screen-exchange
  2579. X\fIscreen\fP `interprocess communication buffer'
  2580. X.IP hardcopy.[0-9]
  2581. XScreen images created by the hardcopy function
  2582. X.IP screenlog.[0-9]
  2583. XOutput log files created by the log function
  2584. X.IP /usr/lib/terminfo/?/*
  2585. Xor
  2586. X.IP /etc/termcap
  2587. XTerminal capability databases
  2588. X.IP /etc/utmp
  2589. XLogin records
  2590. X.IP $LOCKPRG
  2591. XProgram that locks a terminal.
  2592. X
  2593. X
  2594. X.SH "SEE ALSO"
  2595. Xtermcap(5), utmp(5), vi(1), captoinfo(1), tic(1)
  2596. X
  2597. X
  2598. X.SH AUTHORS
  2599. XOriginally created by Oliver Laumann, this latest version was
  2600. Xproduced by Wayne Davison, Juergen Weigert and Michael Schroeder.
  2601. X
  2602. X.SH COPYLEFT
  2603. XCopyright (C) 1993
  2604. X    Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de)
  2605. X    Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de)
  2606. XCopyright (C) 1987 Oliver Laumann
  2607. X.PP
  2608. XThis program is free software; you can redistribute it and/or modify
  2609. Xit under the terms of the GNU General Public License as published by
  2610. Xthe Free Software Foundation; either version 2, or (at your option)
  2611. Xany later version.
  2612. X.PP
  2613. XThis program is distributed in the hope that it will be useful,
  2614. Xbut WITHOUT ANY WARRANTY; without even the implied warranty of
  2615. XMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  2616. XGNU General Public License for more details.
  2617. X.PP
  2618. XYou should have received a copy of the GNU General Public License
  2619. Xalong with this program (see the file COPYING); if not, write to the
  2620. XFree Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  2621. X
  2622. X.SH CONTRIBUTORS
  2623. X.nf
  2624. XKen Beal (kbeal@amber.ssd.csd.harris.com),
  2625. XRudolf Koenig (rfkoenig@immd4.informatik.uni-erlangen.de),
  2626. XToerless Eckert (eckert@immd4.informatik.uni-erlangen.de), 
  2627. XWayne Davison (davison@borland.com),
  2628. XPatrick Wolfe (pat@kai.com, kailand!pat),
  2629. XBart Schaefer (schaefer@cse.ogi.edu),
  2630. XNathan Glasser (nathan@brokaw.lcs.mit.edu),
  2631. XLarry W. Virden (lvirden@cas.org),
  2632. XHoward Chu (hyc@hanauma.jpl.nasa.gov),
  2633. XTim MacKenzie (tym@dibbler.cs.monash.edu.au),
  2634. XMarkku Jarvinen (mta@{cc,cs,ee}.tut.fi),
  2635. XMarc Boucher (marc@CAM.ORG),
  2636. XDoug Siebert (dsiebert@isca.uiowa.edu),
  2637. XKen Stillson (stillson@tsfsrv.mitre.org),
  2638. XIan Frechett (frechett@spot.Colorado.EDU),
  2639. XBrian Koehmstedt (bpk@gnu.ai.mit.edu),
  2640. XDon Smith (djs6015@ultb.isc.rit.edu),
  2641. XFrank van der Linden (vdlinden@fwi.uva.nl),
  2642. XMartin Schweikert (schweik@cpp.ob.open.de),
  2643. XDavid Vrona (dave@sashimi.lcu.com),
  2644. XE. Tye McQueen (tye%spillman.UUCP@uunet.uu.net),
  2645. XMatthew Green (phone@coombs.anu.edu.au),
  2646. XChristopher Williams (cgw@unt.edu),
  2647. XMatt Mosley (mattm@access.digex.net),
  2648. XGregory Neil Shapiro (gshapiro@wpi.WPI.EDU).
  2649. X.fi
  2650. X
  2651. X
  2652. X.SH VERSION
  2653. XThis is version 3.5.1. Its roots are a merge of a custom version
  2654. X2.3PR7 by Wayne Davison
  2655. Xand several enhancements to Oliver Laumann's version 2.0. Note that all versions
  2656. Xnumbered 2.x are copyright by Oliver Laumann. 
  2657. X
  2658. X
  2659. X.SH BUGS
  2660. X.PD
  2661. X.IP \(bu 3
  2662. X`dm' (delete mode) and `xs' are not handled
  2663. Xcorrectly (they are ignored). `xn' is treated as a magic-margin
  2664. Xindicator.
  2665. X.IP \(bu
  2666. XThe \fIGR\fP set of ISO 2022 is not supported.
  2667. X.IP \(bu
  2668. XThere is no keyboard input translation to VT100 sequences.
  2669. X.IP \(bu
  2670. XIt is not possible to change the environment variable $TERMCAP when 
  2671. Xreattaching under a different terminal type.
  2672. X.IP \(bu
  2673. XThe support of terminfo based systems is very limited. Adding extra
  2674. Xcapabilities to $TERMCAP may not have any effects.
  2675. X.IP \(bu
  2676. X.I Screen
  2677. Xdoes not make use of hardware tabs.
  2678. X.IP \(bu
  2679. X.I Screen
  2680. Xmust be installed as set-uid with owner root in order to be able
  2681. Xto correctly change the owner of the tty device file for each
  2682. Xwindow.
  2683. XSpecial permission may also be required to write the file \*Q/etc/utmp\*U.
  2684. X.IP \(bu
  2685. XEntries in \*Q/etc/utmp\*U are not removed when
  2686. X.I screen
  2687. Xis killed with SIGKILL.
  2688. XThis will cause some programs (like "w" or "rwho")
  2689. Xto advertise that a user is logged on who really isn't.
  2690. X.IP \(bu
  2691. X.I Screen
  2692. Xmay give a strange warning when your tty has no utmp entry.
  2693. X.IP \(bu
  2694. XSend bugreports, fixes, enhancements, t-shirts, money, beer & pizza to
  2695. X.BR screen@uni-erlangen.de .
  2696. X
  2697. END_OF_FILE
  2698. if test 86513 -ne `wc -c <'doc/screen.1'`; then
  2699.     echo shar: \"'doc/screen.1'\" unpacked with wrong size!
  2700. fi
  2701. # end of 'doc/screen.1'
  2702. fi
  2703. echo shar: End of archive 9 \(of 10\).
  2704. cp /dev/null ark9isdone
  2705. MISSING=""
  2706. for I in 1 2 3 4 5 6 7 8 9 10 ; do
  2707.     if test ! -f ark${I}isdone ; then
  2708.     MISSING="${MISSING} ${I}"
  2709.     fi
  2710. done
  2711. if test "${MISSING}" = "" ; then
  2712.     echo You have unpacked all 10 archives.
  2713.     rm -f ark[1-9]isdone ark[1-9][0-9]isdone
  2714. else
  2715.     echo You still need to unpack the following archives:
  2716.     echo "        " ${MISSING}
  2717. fi
  2718. ##  End of shell archive.
  2719. exit 0
  2720.