home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume10 / screen / part02 < prev    next >
SHell self-extracting ARchive  |  1987-08-06  |  50.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: SHell self-extracting ARchive (archive/shar).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert SHell self-extracting ARchive (archive/shar) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/329 Shell Archive Format default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 75 75 | 6e 65 74 21 72 73 0a 46 |Path: uu|net!rs.F|
|00000010| 72 6f 6d 3a 20 72 73 40 | 75 75 6e 65 74 2e 55 55 |rom: rs@|uunet.UU|
|00000020| 2e 4e 45 54 20 28 52 69 | 63 68 20 53 61 6c 7a 29 |.NET (Ri|ch Salz)|
|00000030| 0a 4e 65 77 73 67 72 6f | 75 70 73 3a 20 63 6f 6d |.Newsgro|ups: com|
|00000040| 70 2e 73 6f 75 72 63 65 | 73 2e 75 6e 69 78 0a 53 |p.source|s.unix.S|
|00000050| 75 62 6a 65 63 74 3a 20 | 76 31 30 69 30 39 36 3a |ubject: |v10i096:|
|00000060| 20 20 42 53 44 20 6d 75 | 6c 74 69 2d 73 63 72 65 | BSD mu|lti-scre|
|00000070| 65 6e 20 6d 61 6e 61 67 | 65 72 2c 20 50 61 72 74 |en manag|er, Part|
|00000080| 30 32 2f 30 32 0a 4d 65 | 73 73 61 67 65 2d 49 44 |02/02.Me|ssage-ID|
|00000090| 3a 20 3c 37 38 38 40 75 | 75 6e 65 74 2e 55 55 2e |: <788@u|unet.UU.|
|000000a0| 4e 45 54 3e 0a 44 61 74 | 65 3a 20 37 20 41 75 67 |NET>.Dat|e: 7 Aug|
|000000b0| 20 38 37 20 31 31 3a 31 | 35 3a 34 34 20 47 4d 54 | 87 11:1|5:44 GMT|
|000000c0| 0a 4f 72 67 61 6e 69 7a | 61 74 69 6f 6e 3a 20 55 |.Organiz|ation: U|
|000000d0| 55 4e 45 54 20 43 6f 6d | 6d 75 6e 69 63 61 74 69 |UNET Com|municati|
|000000e0| 6f 6e 73 20 53 65 72 76 | 69 63 65 73 2c 20 41 72 |ons Serv|ices, Ar|
|000000f0| 6c 69 6e 67 74 6f 6e 2c | 20 56 41 0a 4c 69 6e 65 |lington,| VA.Line|
|00000100| 73 3a 20 32 30 34 38 0a | 41 70 70 72 6f 76 65 64 |s: 2048.|Approved|
|00000110| 3a 20 72 73 40 75 75 6e | 65 74 2e 55 55 2e 4e 45 |: rs@uun|et.UU.NE|
|00000120| 54 0a 0a 53 75 62 6d 69 | 74 74 65 64 2d 62 79 3a |T..Submi|tted-by:|
|00000130| 20 4f 6c 69 76 65 72 20 | 4c 61 75 6d 61 6e 6e 20 | Oliver |Laumann |
|00000140| 3c 73 65 69 73 6d 6f 21 | 74 75 62 21 6e 65 74 3e |<seismo!|tub!net>|
|00000150| 0a 50 6f 73 74 69 6e 67 | 2d 6e 75 6d 62 65 72 3a |.Posting|-number:|
|00000160| 20 56 6f 6c 75 6d 65 20 | 31 30 2c 20 49 73 73 75 | Volume |10, Issu|
|00000170| 65 20 39 36 0a 41 72 63 | 68 69 76 65 2d 6e 61 6d |e 96.Arc|hive-nam|
|00000180| 65 3a 20 73 63 72 65 65 | 6e 2f 50 61 72 74 30 32 |e: scree|n/Part02|
|00000190| 0a 0a 23 21 20 2f 62 69 | 6e 2f 73 68 0a 23 20 54 |..#! /bi|n/sh.# T|
|000001a0| 68 69 73 20 69 73 20 61 | 20 73 68 65 6c 6c 20 61 |his is a| shell a|
|000001b0| 72 63 68 69 76 65 2c 20 | 6d 65 61 6e 69 6e 67 3a |rchive, |meaning:|
|000001c0| 0a 23 20 31 2e 20 52 65 | 6d 6f 76 65 20 65 76 65 |.# 1. Re|move eve|
|000001d0| 72 79 74 68 69 6e 67 20 | 61 62 6f 76 65 20 74 68 |rything |above th|
|000001e0| 65 20 23 21 20 2f 62 69 | 6e 2f 73 68 20 6c 69 6e |e #! /bi|n/sh lin|
|000001f0| 65 2e 0a 23 20 32 2e 20 | 53 61 76 65 20 74 68 65 |e..# 2. |Save the|
|00000200| 20 72 65 73 75 6c 74 69 | 6e 67 20 74 65 78 74 20 | resulti|ng text |
|00000210| 69 6e 20 61 20 66 69 6c | 65 2e 0a 23 20 33 2e 20 |in a fil|e..# 3. |
|00000220| 45 78 65 63 75 74 65 20 | 74 68 65 20 66 69 6c 65 |Execute |the file|
|00000230| 20 77 69 74 68 20 2f 62 | 69 6e 2f 73 68 20 28 6e | with /b|in/sh (n|
|00000240| 6f 74 20 63 73 68 29 20 | 74 6f 20 63 72 65 61 74 |ot csh) |to creat|
|00000250| 65 20 74 68 65 20 66 69 | 6c 65 73 3a 0a 23 09 73 |e the fi|les:.#.s|
|00000260| 63 72 65 65 6e 2e 31 0a | 23 09 73 63 72 65 65 6e |creen.1.|#.screen|
|00000270| 2e 63 0a 65 78 70 6f 72 | 74 20 50 41 54 48 3b 20 |.c.expor|t PATH; |
|00000280| 50 41 54 48 3d 2f 62 69 | 6e 3a 24 50 41 54 48 0a |PATH=/bi|n:$PATH.|
|00000290| 65 63 68 6f 20 73 68 61 | 72 3a 20 65 78 74 72 61 |echo sha|r: extra|
|000002a0| 63 74 69 6e 67 20 22 27 | 73 63 72 65 65 6e 2e 31 |cting "'|screen.1|
|000002b0| 27 22 20 27 28 31 37 38 | 39 35 20 63 68 61 72 61 |'" '(178|95 chara|
|000002c0| 63 74 65 72 73 29 27 0a | 69 66 20 74 65 73 74 20 |cters)'.|if test |
|000002d0| 2d 66 20 27 73 63 72 65 | 65 6e 2e 31 27 0a 74 68 |-f 'scre|en.1'.th|
|000002e0| 65 6e 0a 09 65 63 68 6f | 20 73 68 61 72 3a 20 77 |en..echo| shar: w|
|000002f0| 69 6c 6c 20 6e 6f 74 20 | 6f 76 65 72 2d 77 72 69 |ill not |over-wri|
|00000300| 74 65 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |te exist|ing file|
|00000310| 20 22 27 73 63 72 65 65 | 6e 2e 31 27 22 0a 65 6c | "'scree|n.1'".el|
|00000320| 73 65 0a 63 61 74 20 3c | 3c 20 5c 53 48 41 52 5f |se.cat <|< \SHAR_|
|00000330| 45 4f 46 20 3e 20 27 73 | 63 72 65 65 6e 2e 31 27 |EOF > 's|creen.1'|
|00000340| 0a 2e 69 66 20 6e 20 2e | 64 73 20 51 20 5c 26 22 |..if n .|ds Q \&"|
|00000350| 0a 2e 69 66 20 6e 20 2e | 64 73 20 55 20 5c 26 22 |..if n .|ds U \&"|
|00000360| 0a 2e 69 66 20 74 20 2e | 64 73 20 51 20 60 60 0a |..if t .|ds Q ``.|
|00000370| 2e 69 66 20 74 20 2e 64 | 73 20 55 20 27 27 0a 2e |.if t .d|s U ''..|
|00000380| 54 48 20 53 43 52 45 45 | 4e 20 31 20 22 32 20 4d |TH SCREE|N 1 "2 M|
|00000390| 61 72 63 68 20 31 39 38 | 37 22 0a 2e 55 43 20 34 |arch 198|7"..UC 4|
|000003a0| 0a 2e 53 48 20 4e 41 4d | 45 0a 73 63 72 65 65 6e |..SH NAM|E.screen|
|000003b0| 20 5c 2d 20 73 63 72 65 | 65 6e 20 6d 61 6e 61 67 | \- scre|en manag|
|000003c0| 65 72 20 77 69 74 68 20 | 56 54 31 30 30 2f 41 4e |er with |VT100/AN|
|000003d0| 53 49 20 74 65 72 6d 69 | 6e 61 6c 20 65 6d 75 6c |SI termi|nal emul|
|000003e0| 61 74 69 6f 6e 0a 2e 53 | 48 20 53 59 4e 4f 50 53 |ation..S|H SYNOPS|
|000003f0| 49 53 0a 2e 42 20 73 63 | 72 65 65 6e 0a 5b 0a 2e |IS..B sc|reen.[..|
|00000400| 42 20 5c 2d 61 0a 5d 20 | 5b 0a 2e 42 20 5c 2d 66 |B \-a.] |[..B \-f|
|00000410| 0a 5d 20 5b 0a 2e 42 20 | 5c 2d 6e 0a 5d 20 5b 0a |.] [..B |\-n.] [.|
|00000420| 2e 42 20 5c 2d 65 5c 66 | 49 78 79 5c 66 50 0a 5d |.B \-e\f|Ixy\fP.]|
|00000430| 20 5b 0a 2e 42 20 5c 66 | 49 63 6d 64 20 61 72 67 | [..B \f|Icmd arg|
|00000440| 73 5c 66 50 20 5d 0a 2e | 74 61 20 2e 35 69 20 31 |s\fP ]..|ta .5i 1|
|00000450| 2e 38 69 0a 2e 53 48 20 | 44 45 53 43 52 49 50 54 |.8i..SH |DESCRIPT|
|00000460| 49 4f 4e 0a 2e 49 20 73 | 63 72 65 65 6e 0a 69 73 |ION..I s|creen.is|
|00000470| 20 61 20 66 75 6c 6c 2d | 73 63 72 65 65 6e 20 77 | a full-|screen w|
|00000480| 69 6e 64 6f 77 20 6d 61 | 6e 61 67 65 72 20 74 68 |indow ma|nager th|
|00000490| 61 74 0a 6d 75 6c 74 69 | 70 6c 65 78 65 73 20 61 |at.multi|plexes a|
|000004a0| 20 70 68 79 73 69 63 61 | 6c 20 74 65 72 6d 69 6e | physica|l termin|
|000004b0| 61 6c 20 62 65 74 77 65 | 65 6e 20 73 65 76 65 72 |al betwe|en sever|
|000004c0| 61 6c 20 70 72 6f 63 65 | 73 73 65 73 20 28 74 79 |al proce|sses (ty|
|000004d0| 70 69 63 61 6c 6c 79 0a | 69 6e 74 65 72 61 63 74 |pically.|interact|
|000004e0| 69 76 65 20 73 68 65 6c | 6c 73 29 2e 20 20 45 61 |ive shel|ls). Ea|
|000004f0| 63 68 20 76 69 72 74 75 | 61 6c 20 74 65 72 6d 69 |ch virtu|al termi|
|00000500| 6e 61 6c 20 70 72 6f 76 | 69 64 65 73 20 74 68 65 |nal prov|ides the|
|00000510| 20 66 75 6e 63 74 69 6f | 6e 73 0a 6f 66 20 74 68 | functio|ns.of th|
|00000520| 65 20 44 45 43 20 56 54 | 31 30 30 20 74 65 72 6d |e DEC VT|100 term|
|00000530| 69 6e 61 6c 20 61 6e 64 | 2c 20 69 6e 20 61 64 64 |inal and|, in add|
|00000540| 69 74 69 6f 6e 2c 20 73 | 65 76 65 72 61 6c 20 63 |ition, s|everal c|
|00000550| 6f 6e 74 72 6f 6c 20 66 | 75 6e 63 74 69 6f 6e 73 |ontrol f|unctions|
|00000560| 0a 66 72 6f 6d 20 74 68 | 65 20 41 4e 53 49 20 58 |.from th|e ANSI X|
|00000570| 33 2e 36 34 20 28 49 53 | 4f 20 36 34 32 39 29 20 |3.64 (IS|O 6429) |
|00000580| 73 74 61 6e 64 61 72 64 | 20 28 65 2e 67 2e 20 69 |standard| (e.g. i|
|00000590| 6e 73 65 72 74 2f 64 65 | 6c 65 74 65 20 6c 69 6e |nsert/de|lete lin|
|000005a0| 65 29 2e 0a 2e 50 50 0a | 57 68 65 6e 0a 2e 49 20 |e)...PP.|When..I |
|000005b0| 73 63 72 65 65 6e 0a 69 | 73 20 63 61 6c 6c 65 64 |screen.i|s called|
|000005c0| 2c 20 69 74 20 63 72 65 | 61 74 65 73 20 61 20 73 |, it cre|ates a s|
|000005d0| 69 6e 67 6c 65 20 77 69 | 6e 64 6f 77 20 77 69 74 |ingle wi|ndow wit|
|000005e0| 68 20 61 20 73 68 65 6c | 6c 3b 20 74 68 65 20 70 |h a shel|l; the p|
|000005f0| 61 74 68 6e 61 6d 65 20 | 6f 66 20 74 68 65 0a 73 |athname |of the.s|
|00000600| 68 65 6c 6c 20 69 73 20 | 74 61 6b 65 6e 20 66 72 |hell is |taken fr|
|00000610| 6f 6d 20 74 68 65 20 65 | 6e 76 69 72 6f 6e 6d 65 |om the e|nvironme|
|00000620| 6e 74 20 73 79 6d 62 6f | 6c 20 24 53 48 45 4c 4c |nt symbo|l $SHELL|
|00000630| 3b 20 69 66 20 74 68 69 | 73 20 69 73 20 6e 6f 74 |; if thi|s is not|
|00000640| 0a 64 65 66 69 6e 65 64 | 2c 20 5c 2a 51 2f 62 69 |.defined|, \*Q/bi|
|00000650| 6e 2f 73 68 5c 2a 55 20 | 69 73 20 75 73 65 64 2e |n/sh\*U |is used.|
|00000660| 0a 4e 65 77 20 77 69 6e | 64 6f 77 73 20 63 61 6e |.New win|dows can|
|00000670| 20 62 65 20 63 72 65 61 | 74 65 64 20 61 74 20 61 | be crea|ted at a|
|00000680| 6e 79 20 74 69 6d 65 20 | 62 79 20 63 61 6c 6c 69 |ny time |by calli|
|00000690| 6e 67 0a 2e 49 20 73 63 | 72 65 65 6e 0a 66 72 6f |ng..I sc|reen.fro|
|000006a0| 6d 20 77 69 74 68 69 6e | 20 61 20 70 72 65 76 69 |m within| a previ|
|000006b0| 6f 75 73 6c 79 20 63 72 | 65 61 74 65 64 20 77 69 |ously cr|eated wi|
|000006c0| 6e 64 6f 77 2e 0a 54 68 | 65 20 70 72 6f 67 72 61 |ndow..Th|e progra|
|000006d0| 6d 20 74 6f 20 62 65 20 | 73 74 61 72 74 65 64 20 |m to be |started |
|000006e0| 69 6e 20 61 20 6e 65 77 | 6c 79 20 63 72 65 61 74 |in a new|ly creat|
|000006f0| 65 64 0a 77 69 6e 64 6f | 77 20 61 6e 64 20 6f 70 |ed.windo|w and op|
|00000700| 74 69 6f 6e 61 6c 20 61 | 72 67 75 6d 65 6e 74 73 |tional a|rguments|
|00000710| 20 74 6f 20 74 68 65 20 | 70 72 6f 67 72 61 6d 20 | to the |program |
|00000720| 63 61 6e 20 62 65 20 73 | 75 70 70 6c 69 65 64 20 |can be s|upplied |
|00000730| 77 68 65 6e 0a 2e 49 20 | 73 63 72 65 65 6e 0a 69 |when..I |screen.i|
|00000740| 73 20 69 6e 76 6f 6b 65 | 64 2e 0a 46 6f 72 20 69 |s invoke|d..For i|
|00000750| 6e 73 74 61 6e 63 65 2c | 0a 2e 49 50 0a 73 63 72 |nstance,|..IP.scr|
|00000760| 65 65 6e 20 63 73 68 0a | 2e 50 50 0a 77 69 6c 6c |een csh.|.PP.will|
|00000770| 20 63 72 65 61 74 65 20 | 61 20 77 69 6e 64 6f 77 | create |a window|
|00000780| 20 77 69 74 68 20 61 20 | 43 2d 53 68 65 6c 6c 20 | with a |C-Shell |
|00000790| 61 6e 64 20 73 77 69 74 | 63 68 20 74 6f 20 74 68 |and swit|ch to th|
|000007a0| 61 74 20 77 69 6e 64 6f | 77 2e 0a 57 68 65 6e 20 |at windo|w..When |
|000007b0| 74 68 65 20 70 72 6f 63 | 65 73 73 20 61 73 73 6f |the proc|ess asso|
|000007c0| 63 69 61 74 65 64 20 77 | 69 74 68 20 74 68 65 20 |ciated w|ith the |
|000007d0| 63 75 72 72 65 6e 74 6c | 79 20 64 69 73 70 6c 61 |currentl|y displa|
|000007e0| 79 65 64 20 77 69 6e 64 | 6f 77 0a 74 65 72 6d 69 |yed wind|ow.termi|
|000007f0| 6e 61 74 65 73 20 28 65 | 2e 67 2e 20 5e 44 20 68 |nates (e|.g. ^D h|
|00000800| 61 73 20 62 65 65 6e 20 | 74 79 70 65 64 20 74 6f |as been |typed to|
|00000810| 20 61 20 73 68 65 6c 6c | 29 2c 0a 2e 49 20 73 63 | a shell|),..I sc|
|00000820| 72 65 65 6e 0a 73 77 69 | 74 63 68 65 73 20 74 6f |reen.swi|tches to|
|00000830| 20 74 68 65 20 70 72 65 | 76 69 6f 75 73 6c 79 20 | the pre|viously |
|00000840| 64 69 73 70 6c 61 79 65 | 64 20 77 69 6e 64 6f 77 |displaye|d window|
|00000850| 3b 0a 77 68 65 6e 20 6e | 6f 20 6d 6f 72 65 20 77 |;.when n|o more w|
|00000860| 69 6e 64 6f 77 73 20 61 | 72 65 20 6c 65 66 74 2c |indows a|re left,|
|00000870| 0a 2e 49 20 73 63 72 65 | 65 6e 0a 65 78 69 74 73 |..I scre|en.exits|
|00000880| 2e 0a 2e 50 50 0a 57 68 | 65 6e 20 5c 2a 51 2f 65 |...PP.Wh|en \*Q/e|
|00000890| 74 63 2f 75 74 6d 70 5c | 2a 55 20 69 73 20 77 72 |tc/utmp\|*U is wr|
|000008a0| 69 74 61 62 6c 65 20 62 | 79 0a 2e 49 52 20 73 63 |itable b|y..IR sc|
|000008b0| 72 65 65 6e 20 2c 0a 61 | 6e 20 61 70 70 72 6f 70 |reen ,.a|n approp|
|000008c0| 72 69 61 74 65 20 72 65 | 63 6f 72 64 20 69 73 20 |riate re|cord is |
|000008d0| 77 72 69 74 74 65 6e 20 | 74 6f 20 74 68 69 73 20 |written |to this |
|000008e0| 66 69 6c 65 20 66 6f 72 | 20 65 61 63 68 20 77 69 |file for| each wi|
|000008f0| 6e 64 6f 77 20 61 6e 64 | 0a 72 65 6d 6f 76 65 64 |ndow and|.removed|
|00000900| 20 77 68 65 6e 20 74 68 | 65 20 77 69 6e 64 6f 77 | when th|e window|
|00000910| 20 69 73 20 74 65 72 6d | 69 6e 61 74 65 64 2e 0a | is term|inated..|
|00000920| 2e 53 48 20 22 43 4f 4d | 4d 41 4e 44 20 4b 45 59 |.SH "COM|MAND KEY|
|00000930| 53 22 0a 54 68 65 20 73 | 74 61 6e 64 61 72 64 20 |S".The s|tandard |
|00000940| 77 61 79 20 74 6f 20 63 | 72 65 61 74 65 20 61 20 |way to c|reate a |
|00000950| 6e 65 77 20 77 69 6e 64 | 6f 77 20 69 73 20 74 6f |new wind|ow is to|
|00000960| 20 74 79 70 65 20 5c 2a | 51 43 2d 61 20 63 5c 2a | type \*|QC-a c\*|
|00000970| 55 20 28 74 68 65 20 6e | 6f 74 61 74 69 6f 6e 0a |U (the n|otation.|
|00000980| 5c 2a 51 43 2d 78 5c 2a | 55 20 77 69 6c 6c 20 62 |\*QC-x\*|U will b|
|00000990| 65 20 75 73 65 64 20 61 | 73 20 61 20 73 68 6f 72 |e used a|s a shor|
|000009a0| 74 68 61 6e 64 20 66 6f | 72 20 43 6f 6e 74 72 6f |thand fo|r Contro|
|000009b0| 6c 2d 78 20 69 6e 20 74 | 68 69 73 20 6d 61 6e 75 |l-x in t|his manu|
|000009c0| 61 6c 3b 20 78 20 69 73 | 0a 61 6e 20 61 72 62 69 |al; x is|.an arbi|
|000009d0| 74 72 61 72 79 20 6c 65 | 74 74 65 72 29 2e 0a 5c |trary le|tter)..\|
|000009e0| 2a 51 43 2d 61 20 63 5c | 2a 55 20 63 72 65 61 74 |*QC-a c\|*U creat|
|000009f0| 65 73 20 61 20 6e 65 77 | 20 77 69 6e 64 6f 77 20 |es a new| window |
|00000a00| 72 75 6e 6e 69 6e 67 20 | 61 20 73 68 65 6c 6c 20 |running |a shell |
|00000a10| 61 6e 64 20 73 77 69 74 | 63 68 65 73 20 74 6f 20 |and swit|ches to |
|00000a20| 74 68 61 74 0a 77 69 6e | 64 6f 77 20 69 6d 6d 65 |that.win|dow imme|
|00000a30| 64 69 61 74 65 6c 79 2c | 20 72 65 67 61 72 64 6c |diately,| regardl|
|00000a40| 65 73 73 20 6f 66 20 74 | 68 65 20 73 74 61 74 65 |ess of t|he state|
|00000a50| 20 6f 66 20 74 68 65 20 | 70 72 6f 63 65 73 73 20 | of the |process |
|00000a60| 72 75 6e 6e 69 6e 67 0a | 69 6e 20 74 68 65 20 63 |running.|in the c|
|00000a70| 75 72 72 65 6e 74 20 77 | 69 6e 64 6f 77 2e 0a 2e |urrent w|indow...|
|00000a80| 49 20 53 63 72 65 65 6e | 0a 72 65 63 6f 67 6e 69 |I Screen|.recogni|
|00000a90| 7a 65 73 20 73 65 76 65 | 72 61 6c 20 73 75 63 68 |zes seve|ral such|
|00000aa0| 20 63 6f 6d 6d 61 6e 64 | 73 3b 20 65 61 63 68 20 | command|s; each |
|00000ab0| 63 6f 6d 6d 61 6e 64 20 | 63 6f 6e 73 69 73 74 73 |command |consists|
|00000ac0| 20 6f 66 0a 5c 2a 51 43 | 2d 61 5c 2a 55 20 66 6f | of.\*QC|-a\*U fo|
|00000ad0| 6c 6c 6f 77 65 64 20 62 | 79 20 61 20 6f 6e 65 2d |llowed b|y a one-|
|00000ae0| 6c 65 74 74 65 72 20 66 | 75 6e 63 74 69 6f 6e 2e |letter f|unction.|
|00000af0| 0a 46 6f 72 20 63 6f 6e | 76 65 6e 69 65 6e 63 65 |.For con|venience|
|00000b00| 2c 20 74 68 65 20 6c 65 | 74 74 65 72 20 61 66 74 |, the le|tter aft|
|00000b10| 65 72 20 61 20 5c 2a 51 | 43 2d 61 5c 2a 55 20 63 |er a \*Q|C-a\*U c|
|00000b20| 61 6e 20 62 65 20 65 6e | 74 65 72 65 64 20 62 6f |an be en|tered bo|
|00000b30| 74 68 20 77 69 74 68 20 | 6f 72 0a 77 69 74 68 6f |th with |or.witho|
|00000b40| 75 74 20 74 68 65 20 63 | 6f 6e 74 72 6f 6c 20 6b |ut the c|ontrol k|
|00000b50| 65 79 20 70 72 65 73 73 | 65 64 20 28 77 69 74 68 |ey press|ed (with|
|00000b60| 20 74 68 65 20 65 78 63 | 65 70 74 69 6f 6e 20 6f | the exc|eption o|
|00000b70| 66 0a 5c 2a 51 43 2d 61 | 20 43 2d 61 5c 2a 55 20 |f.\*QC-a| C-a\*U |
|00000b80| 61 6e 64 20 5c 2a 51 43 | 2d 61 20 61 5c 2a 55 3b |and \*QC|-a a\*U;|
|00000b90| 20 73 65 65 20 62 65 6c | 6f 77 29 2c 20 74 68 75 | see bel|ow), thu|
|00000ba0| 73 2c 20 5c 2a 51 43 2d | 61 20 63 5c 2a 55 20 61 |s, \*QC-|a c\*U a|
|00000bb0| 73 20 77 65 6c 6c 20 61 | 73 0a 5c 2a 51 43 2d 61 |s well a|s.\*QC-a|
|00000bc0| 20 43 2d 63 5c 2a 55 20 | 63 61 6e 20 62 65 20 75 | C-c\*U |can be u|
|00000bd0| 73 65 64 20 74 6f 20 63 | 72 65 61 74 65 20 61 20 |sed to c|reate a |
|00000be0| 77 69 6e 64 6f 77 2e 0a | 2e 50 50 0a 54 68 65 20 |window..|.PP.The |
|00000bf0| 66 6f 6c 6c 6f 77 69 6e | 67 20 63 6f 6d 6d 61 6e |followin|g comman|
|00000c00| 64 73 20 61 72 65 20 72 | 65 63 6f 67 6e 69 7a 65 |ds are r|ecognize|
|00000c10| 64 20 62 79 0a 2e 49 52 | 20 73 63 72 65 65 6e 20 |d by..IR| screen |
|00000c20| 3a 0a 2e 49 50 20 22 5c | 66 42 43 2d 61 20 63 5c |:..IP "\|fBC-a c\|
|00000c30| 66 50 20 6f 72 20 5c 66 | 42 43 2d 61 20 43 2d 63 |fP or \f|BC-a C-c|
|00000c40| 5c 66 50 22 0a 43 72 65 | 61 74 65 20 61 20 6e 65 |\fP".Cre|ate a ne|
|00000c50| 77 20 77 69 6e 64 6f 77 | 20 77 69 74 68 20 61 20 |w window| with a |
|00000c60| 73 68 65 6c 6c 20 61 6e | 64 20 73 77 69 74 63 68 |shell an|d switch|
|00000c70| 20 74 6f 20 74 68 61 74 | 20 77 69 6e 64 6f 77 2e | to that| window.|
|00000c80| 0a 2e 49 50 20 22 5c 66 | 42 43 2d 61 20 6b 5c 66 |..IP "\f|BC-a k\f|
|00000c90| 50 20 6f 72 20 5c 66 42 | 43 2d 61 20 43 2d 6b 5c |P or \fB|C-a C-k\|
|00000ca0| 66 50 22 0a 4b 69 6c 6c | 20 74 68 65 20 63 75 72 |fP".Kill| the cur|
|00000cb0| 72 65 6e 74 20 77 69 6e | 64 6f 77 20 61 6e 64 20 |rent win|dow and |
|00000cc0| 73 77 69 74 63 68 20 74 | 6f 20 74 68 65 20 70 72 |switch t|o the pr|
|00000cd0| 65 76 69 6f 75 73 6c 79 | 20 64 69 73 70 6c 61 79 |eviously| display|
|00000ce0| 65 64 20 77 69 6e 64 6f | 77 2e 0a 2e 49 50 20 22 |ed windo|w...IP "|
|00000cf0| 5c 66 42 43 2d 61 20 43 | 2d 5c 65 5c 66 50 22 0a |\fBC-a C|-\e\fP".|
|00000d00| 4b 69 6c 6c 20 61 6c 6c | 20 77 69 6e 64 6f 77 73 |Kill all| windows|
|00000d10| 20 61 6e 64 20 74 65 72 | 6d 69 6e 61 74 65 0a 2e | and ter|minate..|
|00000d20| 49 52 20 73 63 72 65 65 | 6e 20 2e 0a 2e 49 50 20 |IR scree|n ...IP |
|00000d30| 22 5c 66 42 43 2d 61 20 | 43 2d 61 5c 66 50 5c 30 |"\fBC-a |C-a\fP\0|
|00000d40| 5c 30 5c 30 5c 30 5c 30 | 22 0a 53 77 69 74 63 68 |\0\0\0\0|".Switch|
|00000d50| 20 74 6f 20 74 68 65 20 | 70 72 65 76 69 6f 75 73 | to the |previous|
|00000d60| 6c 79 20 64 69 73 70 6c | 61 79 65 64 20 77 69 6e |ly displ|ayed win|
|00000d70| 64 6f 77 2e 0a 2e 49 50 | 20 22 5c 66 42 43 2d 61 |dow...IP| "\fBC-a|
|00000d80| 20 30 5c 66 50 20 74 6f | 20 5c 66 42 43 2d 61 20 | 0\fP to| \fBC-a |
|00000d90| 39 5c 66 50 22 0a 53 77 | 69 74 63 68 20 74 6f 20 |9\fP".Sw|itch to |
|00000da0| 74 68 65 20 77 69 6e 64 | 6f 77 20 77 69 74 68 20 |the wind|ow with |
|00000db0| 74 68 65 20 6e 75 6d 62 | 65 72 20 30 20 28 31 2c |the numb|er 0 (1,|
|00000dc0| 20 32 2c 20 2e 2e 2c 20 | 39 2c 20 72 65 73 70 65 | 2, .., |9, respe|
|00000dd0| 63 74 69 76 65 6c 79 29 | 2e 0a 57 68 65 6e 20 61 |ctively)|..When a|
|00000de0| 20 6e 65 77 20 77 69 6e | 64 6f 77 20 69 73 20 65 | new win|dow is e|
|00000df0| 73 74 61 62 6c 69 73 68 | 65 64 2c 20 74 68 65 20 |stablish|ed, the |
|00000e00| 66 69 72 73 74 20 61 76 | 61 69 6c 61 62 6c 65 20 |first av|ailable |
|00000e10| 6e 75 6d 62 65 72 20 66 | 72 6f 6d 20 74 68 65 0a |number f|rom the.|
|00000e20| 72 61 6e 67 65 20 30 2e | 2e 39 20 69 73 20 61 73 |range 0.|.9 is as|
|00000e30| 73 69 67 6e 65 64 20 74 | 6f 20 74 68 69 73 20 77 |signed t|o this w|
|00000e40| 69 6e 64 6f 77 2e 0a 54 | 68 75 73 2c 20 74 68 65 |indow..T|hus, the|
|00000e50| 20 66 69 72 73 74 20 77 | 69 6e 64 6f 77 20 63 61 | first w|indow ca|
|00000e60| 6e 20 62 65 20 61 63 74 | 69 76 61 74 65 64 20 62 |n be act|ivated b|
|00000e70| 79 20 5c 2a 51 43 2d 61 | 20 30 5c 2a 55 3b 20 61 |y \*QC-a| 0\*U; a|
|00000e80| 74 20 6d 6f 73 74 0a 31 | 30 20 77 69 6e 64 6f 77 |t most.1|0 window|
|00000e90| 73 20 63 61 6e 20 62 65 | 20 70 72 65 73 65 6e 74 |s can be| present|
|00000ea0| 20 61 74 20 61 6e 79 20 | 74 69 6d 65 2e 0a 2e 49 | at any |time...I|
|00000eb0| 50 20 22 5c 66 42 43 2d | 61 20 73 70 61 63 65 5c |P "\fBC-|a space\|
|00000ec0| 66 50 20 6f 72 20 5c 66 | 42 43 2d 61 20 43 2d 73 |fP or \f|BC-a C-s|
|00000ed0| 70 61 63 65 5c 66 50 20 | 6f 72 20 5c 66 42 43 2d |pace\fP |or \fBC-|
|00000ee0| 61 20 6e 5c 66 50 20 6f | 72 20 5c 66 42 43 2d 61 |a n\fP o|r \fBC-a|
|00000ef0| 20 43 2d 6e 5c 66 50 22 | 0a 53 77 69 74 63 68 20 | C-n\fP"|.Switch |
|00000f00| 74 6f 20 74 68 65 20 6e | 65 78 74 20 77 69 6e 64 |to the n|ext wind|
|00000f10| 6f 77 2e 20 20 54 68 69 | 73 20 66 75 6e 63 74 69 |ow. Thi|s functi|
|00000f20| 6f 6e 20 63 61 6e 20 62 | 65 20 75 73 65 64 20 72 |on can b|e used r|
|00000f30| 65 70 65 61 74 65 64 6c | 79 20 74 6f 0a 63 79 63 |epeatedl|y to.cyc|
|00000f40| 6c 65 20 74 68 72 6f 75 | 67 68 20 74 68 65 20 6c |le throu|gh the l|
|00000f50| 69 73 74 20 6f 66 20 77 | 69 6e 64 6f 77 73 2e 0a |ist of w|indows..|
|00000f60| 28 43 6f 6e 74 72 6f 6c | 2d 73 70 61 63 65 20 69 |(Control|-space i|
|00000f70| 73 20 6e 6f 74 20 73 75 | 70 70 6f 72 74 65 64 20 |s not su|pported |
|00000f80| 62 79 20 61 6c 6c 20 74 | 65 72 6d 69 6e 61 6c 73 |by all t|erminals|
|00000f90| 2e 29 0a 2e 49 50 20 22 | 5c 66 42 43 2d 61 20 70 |.)..IP "|\fBC-a p|
|00000fa0| 5c 66 50 20 6f 72 20 5c | 66 42 43 2d 61 20 43 2d |\fP or \|fBC-a C-|
|00000fb0| 70 5c 66 50 20 6f 72 20 | 5c 66 42 43 2d 61 20 2d |p\fP or |\fBC-a -|
|00000fc0| 5c 66 50 22 0a 53 77 69 | 74 63 68 20 74 6f 20 74 |\fP".Swi|tch to t|
|00000fd0| 68 65 20 70 72 65 76 69 | 6f 75 73 20 77 69 6e 64 |he previ|ous wind|
|00000fe0| 6f 77 20 28 74 68 65 20 | 6f 70 70 6f 73 69 74 65 |ow (the |opposite|
|00000ff0| 20 6f 66 20 5c 66 42 43 | 2d 61 20 73 70 61 63 65 | of \fBC|-a space|
|00001000| 5c 66 50 29 2e 0a 2e 49 | 50 20 22 5c 66 42 43 2d |\fP)...I|P "\fBC-|
|00001010| 61 20 6c 5c 66 50 20 6f | 72 20 5c 66 42 43 2d 61 |a l\fP o|r \fBC-a|
|00001020| 20 43 2d 6c 5c 66 50 22 | 0a 52 65 64 69 73 70 6c | C-l\fP"|.Redispl|
|00001030| 61 79 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 77 |ay the c|urrent w|
|00001040| 69 6e 64 6f 77 2e 0a 2e | 49 50 20 22 5c 66 42 43 |indow...|IP "\fBC|
|00001050| 2d 61 20 7a 5c 66 50 20 | 6f 72 20 5c 66 42 43 2d |-a z\fP |or \fBC-|
|00001060| 61 20 43 2d 7a 5c 66 50 | 22 0a 53 75 73 70 65 6e |a C-z\fP|".Suspen|
|00001070| 64 0a 2e 49 52 20 73 63 | 72 65 65 6e 20 2e 0a 2e |d..IR sc|reen ...|
|00001080| 49 50 20 22 5c 66 42 43 | 2d 61 20 68 5c 66 50 20 |IP "\fBC|-a h\fP |
|00001090| 6f 72 20 5c 66 42 43 2d | 61 20 43 2d 68 5c 66 50 |or \fBC-|a C-h\fP|
|000010a0| 22 0a 57 72 69 74 65 20 | 61 20 68 61 72 64 63 6f |".Write |a hardco|
|000010b0| 70 79 20 6f 66 20 74 68 | 65 20 63 75 72 72 65 6e |py of th|e curren|
|000010c0| 74 20 77 69 6e 64 6f 77 | 20 74 6f 20 74 68 65 20 |t window| to the |
|000010d0| 66 69 6c 65 20 5c 2a 51 | 68 61 72 64 63 6f 70 79 |file \*Q|hardcopy|
|000010e0| 2e 5c 66 49 6e 5c 66 50 | 5c 2a 55 0a 69 6e 20 74 |.\fIn\fP|\*U.in t|
|000010f0| 68 65 20 77 69 6e 64 6f | 77 27 73 20 63 75 72 72 |he windo|w's curr|
|00001100| 65 6e 74 20 64 69 72 65 | 63 74 6f 72 79 2c 0a 77 |ent dire|ctory,.w|
|00001110| 68 65 72 65 20 5c 66 49 | 6e 5c 66 50 20 69 73 20 |here \fI|n\fP is |
|00001120| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 74 68 |the numb|er of th|
|00001130| 65 20 63 75 72 72 65 6e | 74 20 77 69 6e 64 6f 77 |e curren|t window|
|00001140| 2e 0a 2e 49 50 20 22 5c | 66 42 43 2d 61 20 2e 5c |...IP "\|fBC-a .\|
|00001150| 66 50 20 28 43 6f 6e 74 | 72 6f 6c 2d 61 20 64 6f |fP (Cont|rol-a do|
|00001160| 74 29 22 0a 57 72 69 74 | 65 20 74 68 65 20 74 65 |t)".Writ|e the te|
|00001170| 72 6d 63 61 70 20 65 6e | 74 72 79 20 66 6f 72 20 |rmcap en|try for |
|00001180| 74 68 65 20 76 69 72 74 | 75 61 6c 20 74 65 72 6d |the virt|ual term|
|00001190| 69 6e 61 6c 20 6f 66 20 | 74 68 65 20 63 75 72 72 |inal of |the curr|
|000011a0| 65 6e 74 6c 79 20 61 63 | 74 69 76 65 0a 77 69 6e |ently ac|tive.win|
|000011b0| 64 6f 77 20 74 6f 20 74 | 68 65 20 66 69 6c 65 20 |dow to t|he file |
|000011c0| 5c 2a 51 2e 74 65 72 6d | 63 61 70 5c 2a 55 20 69 |\*Q.term|cap\*U i|
|000011d0| 6e 20 74 68 65 20 64 69 | 72 65 63 74 6f 72 79 20 |n the di|rectory |
|000011e0| 5c 2a 51 24 48 4f 4d 45 | 2f 2e 73 63 72 65 65 6e |\*Q$HOME|/.screen|
|000011f0| 5c 2a 55 2e 0a 54 68 69 | 73 20 74 65 72 6d 63 61 |\*U..Thi|s termca|
|00001200| 70 20 65 6e 74 72 79 20 | 69 73 20 69 64 65 6e 74 |p entry |is ident|
|00001210| 69 63 61 6c 20 74 6f 20 | 74 68 65 20 76 61 6c 75 |ical to |the valu|
|00001220| 65 20 6f 66 20 74 68 65 | 20 65 6e 76 69 72 6f 6e |e of the| environ|
|00001230| 6d 65 6e 74 20 73 79 6d | 62 6f 6c 0a 54 45 52 4d |ment sym|bol.TERM|
|00001240| 43 41 50 20 74 68 61 74 | 20 69 73 20 73 65 74 20 |CAP that| is set |
|00001250| 75 70 20 62 79 0a 2e 49 | 20 73 63 72 65 65 6e 0a |up by..I| screen.|
|00001260| 66 6f 72 20 65 61 63 68 | 20 77 69 6e 64 6f 77 2e |for each| window.|
|00001270| 0a 2e 49 50 20 22 5c 66 | 42 43 2d 61 20 77 5c 66 |..IP "\f|BC-a w\f|
|00001280| 50 20 6f 72 20 5c 66 42 | 43 2d 61 20 43 2d 77 5c |P or \fB|C-a C-w\|
|00001290| 66 50 22 0a 44 69 73 70 | 6c 61 79 20 61 20 6c 69 |fP".Disp|lay a li|
|000012a0| 73 74 20 6f 66 20 61 6c | 6c 20 77 69 6e 64 6f 77 |st of al|l window|
|000012b0| 73 2e 0a 46 6f 72 20 65 | 61 63 68 20 77 69 6e 64 |s..For e|ach wind|
|000012c0| 6f 77 2c 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f |ow, the |number o|
|000012d0| 66 20 74 68 65 20 77 69 | 6e 64 6f 77 20 61 6e 64 |f the wi|ndow and|
|000012e0| 20 74 68 65 20 70 72 6f | 63 65 73 73 20 74 68 61 | the pro|cess tha|
|000012f0| 74 20 68 61 73 20 62 65 | 65 6e 0a 73 74 61 72 74 |t has be|en.start|
|00001300| 65 64 20 69 6e 20 74 68 | 65 20 77 69 6e 64 6f 77 |ed in th|e window|
|00001310| 20 69 73 20 64 69 73 70 | 6c 61 79 65 64 3b 20 74 | is disp|layed; t|
|00001320| 68 65 20 63 75 72 72 65 | 6e 74 20 77 69 6e 64 6f |he curre|nt windo|
|00001330| 77 20 69 73 20 6d 61 72 | 6b 65 64 20 77 69 74 68 |w is mar|ked with|
|00001340| 20 61 0a 60 2a 27 2e 0a | 2e 49 50 20 22 5c 66 42 | a.`*'..|.IP "\fB|
|00001350| 43 2d 61 20 74 5c 66 50 | 20 6f 72 20 5c 66 42 43 |C-a t\fP| or \fBC|
|00001360| 2d 61 20 43 2d 74 5c 66 | 50 22 0a 50 72 69 6e 74 |-a C-t\f|P".Print|
|00001370| 20 69 6e 20 74 68 65 20 | 6d 65 73 73 61 67 65 20 | in the |message |
|00001380| 6c 69 6e 65 20 74 68 65 | 20 74 69 6d 65 20 6f 66 |line the| time of|
|00001390| 20 64 61 79 2c 20 74 68 | 65 20 68 6f 73 74 20 6e | day, th|e host n|
|000013a0| 61 6d 65 2c 20 74 68 65 | 20 6c 6f 61 64 20 61 76 |ame, the| load av|
|000013b0| 65 72 61 67 65 73 0a 6f | 76 65 72 20 31 2c 20 35 |erages.o|ver 1, 5|
|000013c0| 2c 20 61 6e 64 20 31 35 | 20 6d 69 6e 75 74 65 73 |, and 15| minutes|
|000013d0| 20 28 69 66 20 74 68 69 | 73 20 69 73 20 61 76 61 | (if thi|s is ava|
|000013e0| 69 6c 61 62 6c 65 20 6f | 6e 20 79 6f 75 72 20 73 |ilable o|n your s|
|000013f0| 79 73 74 65 6d 29 2c 0a | 74 68 65 20 63 75 72 73 |ystem),.|the curs|
|00001400| 6f 72 20 70 6f 73 69 74 | 69 6f 6e 20 6f 66 20 74 |or posit|ion of t|
|00001410| 68 65 20 63 75 72 72 65 | 6e 74 20 77 69 6e 64 6f |he curre|nt windo|
|00001420| 77 20 69 6e 20 74 68 65 | 20 66 6f 72 6d 20 5c 2a |w in the| form \*|
|00001430| 51 28 63 6f 6c 75 6d 2c | 72 6f 77 29 5c 2a 55 0a |Q(colum,|row)\*U.|
|00001440| 73 74 61 72 74 69 6e 67 | 20 77 69 74 68 20 5c 2a |starting| with \*|
|00001450| 55 28 30 2c 30 29 5c 2a | 55 2c 20 61 6e 64 20 61 |U(0,0)\*|U, and a|
|00001460| 6e 20 69 6e 64 69 63 61 | 74 69 6f 6e 20 69 66 20 |n indica|tion if |
|00001470| 66 6c 6f 77 20 63 6f 6e | 74 72 6f 6c 0a 61 6e 64 |flow con|trol.and|
|00001480| 20 28 66 6f 72 20 74 68 | 65 20 63 75 72 72 65 6e | (for th|e curren|
|00001490| 74 20 77 69 6e 64 6f 77 | 29 0a 69 6e 73 65 72 74 |t window|).insert|
|000014a0| 20 6d 6f 64 65 2c 20 6f | 72 69 67 69 6e 20 6d 6f | mode, o|rigin mo|
|000014b0| 64 65 2c 20 77 72 61 70 | 20 6d 6f 64 65 2c 20 61 |de, wrap| mode, a|
|000014c0| 6e 64 20 6b 65 79 70 61 | 64 20 61 70 70 6c 69 63 |nd keypa|d applic|
|000014d0| 61 74 69 6f 6e 0a 6d 6f | 64 65 20 61 72 65 20 65 |ation.mo|de are e|
|000014e0| 6e 61 62 6c 65 64 20 6f | 72 20 6e 6f 74 20 28 69 |nabled o|r not (i|
|000014f0| 6e 64 69 63 61 74 65 64 | 20 62 79 20 61 20 27 2b |ndicated| by a '+|
|00001500| 27 20 6f 72 20 27 2d 27 | 29 2e 0a 2e 49 50 20 22 |' or '-'|)...IP "|
|00001510| 5c 66 42 43 2d 61 20 76 | 5c 66 50 20 6f 72 20 5c |\fBC-a v|\fP or \|
|00001520| 66 42 43 2d 61 20 43 2d | 76 5c 66 50 22 0a 44 69 |fBC-a C-|v\fP".Di|
|00001530| 73 70 6c 61 79 20 74 68 | 65 20 76 65 72 73 69 6f |splay th|e versio|
|00001540| 6e 2e 0a 2e 49 50 20 22 | 5c 66 42 43 2d 61 20 61 |n...IP "|\fBC-a a|
|00001550| 5c 66 50 5c 30 5c 30 5c | 30 5c 30 5c 30 22 0a 53 |\fP\0\0\|0\0\0".S|
|00001560| 65 6e 64 20 74 68 65 20 | 63 68 61 72 61 63 74 65 |end the |characte|
|00001570| 72 20 5c 2a 51 43 2d 61 | 5c 2a 55 20 74 6f 20 74 |r \*QC-a|\*U to t|
|00001580| 68 65 20 70 72 6f 63 65 | 73 73 65 73 20 72 75 6e |he proce|sses run|
|00001590| 6e 69 6e 67 20 69 6e 20 | 74 68 65 20 77 69 6e 64 |ning in |the wind|
|000015a0| 6f 77 2e 0a 2e 49 50 20 | 22 5c 66 42 43 2d 61 20 |ow...IP |"\fBC-a |
|000015b0| 73 5c 66 50 20 6f 72 20 | 5c 66 42 43 2d 61 20 43 |s\fP or |\fBC-a C|
|000015c0| 2d 73 5c 66 50 22 0a 53 | 65 6e 64 20 61 20 43 6f |-s\fP".S|end a Co|
|000015d0| 6e 74 72 6f 6c 2d 73 20 | 74 6f 20 74 68 65 20 70 |ntrol-s |to the p|
|000015e0| 72 6f 67 72 61 6d 20 72 | 75 6e 6e 69 6e 67 20 69 |rogram r|unning i|
|000015f0| 6e 20 74 68 65 20 77 69 | 6e 64 6f 77 2e 0a 2e 49 |n the wi|ndow...I|
|00001600| 50 20 22 5c 66 42 43 2d | 61 20 71 5c 66 50 20 6f |P "\fBC-|a q\fP o|
|00001610| 72 20 5c 66 42 43 2d 61 | 20 43 2d 71 5c 66 50 22 |r \fBC-a| C-q\fP"|
|00001620| 0a 53 65 6e 64 20 61 20 | 43 6f 6e 74 72 6f 6c 2d |.Send a |Control-|
|00001630| 71 20 74 6f 20 74 68 65 | 20 70 72 6f 67 72 61 6d |q to the| program|
|00001640| 20 72 75 6e 6e 69 6e 67 | 20 69 6e 20 74 68 65 20 | running| in the |
|00001650| 77 69 6e 64 6f 77 2e 0a | 2e 49 50 0a 2e 50 50 0a |window..|.IP..PP.|
|00001660| 54 68 65 0a 2e 42 20 2d | 65 0a 6f 70 74 69 6f 6e |The..B -|e.option|
|00001670| 20 63 61 6e 20 62 65 20 | 75 73 65 64 20 74 6f 20 | can be |used to |
|00001680| 73 70 65 63 69 66 79 20 | 61 20 64 69 66 66 65 72 |specify |a differ|
|00001690| 65 6e 74 20 63 6f 6d 6d | 61 6e 64 20 63 68 61 72 |ent comm|and char|
|000016a0| 61 63 74 65 72 20 61 6e | 64 0a 61 20 63 68 61 72 |acter an|d.a char|
|000016b0| 61 63 74 65 72 20 77 68 | 69 63 68 2c 20 77 68 65 |acter wh|ich, whe|
|000016c0| 6e 20 74 79 70 65 64 20 | 69 6d 6d 65 64 69 61 74 |n typed |immediat|
|000016d0| 65 6c 79 20 61 66 74 65 | 72 20 74 68 65 20 63 6f |ely afte|r the co|
|000016e0| 6d 6d 61 6e 64 20 63 68 | 61 72 61 63 74 65 72 2c |mmand ch|aracter,|
|000016f0| 0a 67 65 6e 65 72 61 74 | 65 73 20 61 20 6c 69 74 |.generat|es a lit|
|00001700| 65 72 61 6c 20 63 6f 6d | 6d 61 6e 64 20 63 68 61 |eral com|mand cha|
|00001710| 72 61 63 74 65 72 2e 0a | 54 68 65 20 64 65 66 61 |racter..|The defa|
|00001720| 75 6c 74 73 20 66 6f 72 | 20 74 68 65 73 65 20 74 |ults for| these t|
|00001730| 77 6f 20 63 68 61 72 61 | 63 74 65 72 73 20 61 72 |wo chara|cters ar|
|00001740| 65 20 5c 2a 51 43 2d 61 | 5c 2a 55 20 61 6e 64 20 |e \*QC-a|\*U and |
|00001750| 60 61 27 2e 0a 28 4e 6f | 74 65 20 74 68 61 74 20 |`a'..(No|te that |
|00001760| 74 68 65 20 66 75 6e 63 | 74 69 6f 6e 20 74 6f 20 |the func|tion to |
|00001770| 73 77 69 74 63 68 20 74 | 6f 20 74 68 65 20 70 72 |switch t|o the pr|
|00001780| 65 76 69 6f 75 73 20 77 | 69 6e 64 6f 77 20 69 73 |evious w|indow is|
|00001790| 20 61 63 74 75 61 6c 6c | 79 20 74 68 65 0a 63 6f | actuall|y the.co|
|000017a0| 6d 6d 61 6e 64 20 63 68 | 61 72 61 63 74 65 72 20 |mmand ch|aracter |
|000017b0| 74 79 70 65 64 20 74 77 | 69 63 65 3b 20 66 6f 72 |typed tw|ice; for|
|000017c0| 20 69 6e 73 74 61 6e 63 | 65 2c 20 77 68 65 6e 0a | instanc|e, when.|
|000017d0| 2e 49 20 73 63 72 65 65 | 6e 0a 69 73 20 63 61 6c |.I scree|n.is cal|
|000017e0| 6c 65 64 20 77 69 74 68 | 20 74 68 65 20 6f 70 74 |led with| the opt|
|000017f0| 69 6f 6e 20 5c 2a 51 5c | 66 42 2d 65 5d 78 5c 66 |ion \*Q\|fB-e]x\f|
|00001800| 50 5c 2a 55 20 28 6f 72 | 20 5c 2a 51 5c 66 42 2d |P\*U (or| \*Q\fB-|
|00001810| 65 20 5d 78 5c 66 50 5c | 2a 55 29 2c 0a 74 68 69 |e ]x\fP\|*U),.thi|
|00001820| 73 20 66 75 6e 63 74 69 | 6f 6e 20 62 65 63 6f 6d |s functi|on becom|
|00001830| 65 73 20 5c 2a 51 5d 5d | 5c 2a 55 29 2e 0a 2e 53 |es \*Q]]|\*U)...S|
|00001840| 48 20 43 55 53 54 4f 4d | 49 5a 41 54 49 4f 4e 0a |H CUSTOM|IZATION.|
|00001850| 57 68 65 6e 0a 2e 49 20 | 73 63 72 65 65 6e 0a 69 |When..I |screen.i|
|00001860| 73 20 69 6e 76 6f 6b 65 | 64 2c 20 69 74 20 65 78 |s invoke|d, it ex|
|00001870| 65 63 75 74 65 73 20 69 | 6e 69 74 69 61 6c 69 7a |ecutes i|nitializ|
|00001880| 61 74 69 6f 6e 20 63 6f | 6d 6d 61 6e 64 73 20 66 |ation co|mmands f|
|00001890| 72 6f 6d 20 74 68 65 20 | 66 69 6c 65 0a 5c 2a 51 |rom the |file.\*Q|
|000018a0| 2e 73 63 72 65 65 6e 72 | 63 5c 2a 55 20 69 6e 20 |.screenr|c\*U in |
|000018b0| 74 68 65 20 75 73 65 72 | 27 73 20 68 6f 6d 65 20 |the user|'s home |
|000018c0| 64 69 72 65 63 74 6f 72 | 79 2e 0a 43 6f 6d 6d 61 |director|y..Comma|
|000018d0| 6e 64 73 20 69 6e 20 5c | 2a 51 2e 73 63 72 65 65 |nds in \|*Q.scree|
|000018e0| 6e 72 63 5c 2a 55 20 61 | 72 65 20 6d 61 69 6e 6c |nrc\*U a|re mainl|
|000018f0| 79 20 75 73 65 64 20 74 | 6f 20 61 75 74 6f 6d 61 |y used t|o automa|
|00001900| 74 69 63 61 6c 6c 79 0a | 65 73 74 61 62 6c 69 73 |tically.|establis|
|00001910| 68 20 61 20 6e 75 6d 62 | 65 72 20 6f 66 20 77 69 |h a numb|er of wi|
|00001920| 6e 64 6f 77 73 20 65 61 | 63 68 20 74 69 6d 65 0a |ndows ea|ch time.|
|00001930| 2e 49 20 73 63 72 65 65 | 6e 0a 69 73 20 63 61 6c |.I scree|n.is cal|
|00001940| 6c 65 64 2c 20 61 6e 64 | 20 74 6f 20 62 69 6e 64 |led, and| to bind|
|00001950| 20 66 75 6e 63 74 69 6f | 6e 73 20 74 6f 20 73 70 | functio|ns to sp|
|00001960| 65 63 69 66 69 63 20 6b | 65 79 73 2e 0a 45 61 63 |ecific k|eys..Eac|
|00001970| 68 20 6c 69 6e 65 20 69 | 6e 20 5c 2a 51 2e 73 63 |h line i|n \*Q.sc|
|00001980| 72 65 65 6e 72 63 5c 2a | 55 20 63 6f 6e 74 61 69 |reenrc\*|U contai|
|00001990| 6e 73 20 6f 6e 65 20 69 | 6e 69 74 69 61 6c 69 7a |ns one i|nitializ|
|000019a0| 61 74 69 6f 6e 20 63 6f | 6d 6d 61 6e 64 3b 20 6c |ation co|mmand; l|
|000019b0| 69 6e 65 73 0a 73 74 61 | 72 74 69 6e 67 20 77 69 |ines.sta|rting wi|
|000019c0| 74 68 20 60 23 27 20 61 | 72 65 20 69 67 6e 6f 72 |th `#' a|re ignor|
|000019d0| 65 64 2e 0a 43 6f 6d 6d | 61 6e 64 73 20 63 61 6e |ed..Comm|ands can|
|000019e0| 20 68 61 76 65 20 61 72 | 67 75 6d 65 6e 74 73 3b | have ar|guments;|
|000019f0| 20 61 72 67 75 6d 65 6e | 74 73 20 61 72 65 20 73 | argumen|ts are s|
|00001a00| 65 70 61 72 61 74 65 64 | 20 62 79 20 74 61 62 73 |eparated| by tabs|
|00001a10| 20 61 6e 64 20 73 70 61 | 63 65 73 0a 61 6e 64 20 | and spa|ces.and |
|00001a20| 63 61 6e 20 62 65 20 73 | 75 72 72 6f 75 6e 64 65 |can be s|urrounde|
|00001a30| 64 20 62 79 20 73 69 6e | 67 6c 65 20 71 75 6f 74 |d by sin|gle quot|
|00001a40| 65 73 20 6f 72 20 64 6f | 75 62 6c 65 20 71 75 6f |es or do|uble quo|
|00001a50| 74 65 73 2e 0a 2e 50 50 | 0a 54 68 65 20 66 6f 6c |tes...PP|.The fol|
|00001a60| 6c 6f 77 69 6e 67 20 69 | 6e 69 74 69 61 6c 69 7a |lowing i|nitializ|
|00001a70| 61 74 69 6f 6e 20 63 6f | 6d 6d 61 6e 64 73 20 61 |ation co|mmands a|
|00001a80| 72 65 20 72 65 63 6f 67 | 6e 69 7a 65 64 20 62 79 |re recog|nized by|
|00001a90| 0a 2e 49 52 20 73 63 72 | 65 65 6e 20 3a 0a 2e 50 |..IR scr|een :..P|
|00001aa0| 50 0a 2e 6e 65 20 33 0a | 2e 42 20 22 65 73 63 61 |P..ne 3.|.B "esca|
|00001ab0| 70 65 20 5c 66 49 78 79 | 5c 66 50 22 0a 2e 50 50 |pe \fIxy|\fP"..PP|
|00001ac0| 0a 53 65 74 20 74 68 65 | 20 63 6f 6d 6d 61 6e 64 |.Set the| command|
|00001ad0| 20 63 68 61 72 61 63 74 | 65 72 20 74 6f 20 5c 66 | charact|er to \f|
|00001ae0| 49 78 5c 66 50 20 61 6e | 64 20 74 68 65 20 63 68 |Ix\fP an|d the ch|
|00001af0| 61 72 61 63 74 65 72 20 | 67 65 6e 65 72 61 74 69 |aracter |generati|
|00001b00| 6e 67 20 61 20 6c 69 74 | 65 72 61 6c 0a 63 6f 6d |ng a lit|eral.com|
|00001b10| 6d 61 6e 64 20 63 68 61 | 72 61 63 74 65 72 20 74 |mand cha|racter t|
|00001b20| 6f 20 5c 66 49 79 5c 66 | 50 20 28 73 65 65 20 74 |o \fIy\f|P (see t|
|00001b30| 68 65 20 2d 65 20 6f 70 | 74 69 6f 6e 20 61 62 6f |he -e op|tion abo|
|00001b40| 76 65 29 2e 0a 2e 50 50 | 0a 2e 6e 65 20 33 0a 2e |ve)...PP|..ne 3..|
|00001b50| 42 20 22 62 65 6c 6c 20 | 5c 66 49 6d 65 73 73 61 |B "bell |\fImessa|
|00001b60| 67 65 5c 66 50 22 0a 2e | 50 50 0a 57 68 65 6e 20 |ge\fP"..|PP.When |
|00001b70| 61 20 62 65 6c 6c 20 63 | 68 61 72 61 63 74 65 72 |a bell c|haracter|
|00001b80| 20 69 73 20 73 65 6e 74 | 20 74 6f 20 61 20 62 61 | is sent| to a ba|
|00001b90| 63 6b 67 72 6f 75 6e 64 | 20 77 69 6e 64 6f 77 2c |ckground| window,|
|00001ba0| 0a 2e 49 20 73 63 72 65 | 65 6e 0a 64 69 73 70 6c |..I scre|en.displ|
|00001bb0| 61 79 73 20 61 20 6e 6f | 74 69 66 69 63 61 74 69 |ays a no|tificati|
|00001bc0| 6f 6e 20 69 6e 20 74 68 | 65 20 6d 65 73 73 61 67 |on in th|e messag|
|00001bd0| 65 20 6c 69 6e 65 20 28 | 73 65 65 20 62 65 6c 6f |e line (|see belo|
|00001be0| 77 29 2e 0a 54 68 65 20 | 6e 6f 74 69 66 69 63 61 |w)..The |notifica|
|00001bf0| 74 69 6f 6e 20 6d 65 73 | 73 61 67 65 20 63 61 6e |tion mes|sage can|
|00001c00| 20 62 65 20 72 65 2d 64 | 65 66 69 6e 65 64 20 62 | be re-d|efined b|
|00001c10| 79 20 6d 65 61 6e 73 20 | 6f 66 20 74 68 65 20 5c |y means |of the \|
|00001c20| 2a 51 62 65 6c 6c 5c 2a | 55 0a 63 6f 6d 6d 61 6e |*Qbell\*|U.comman|
|00001c30| 64 3b 20 65 61 63 68 20 | 6f 63 63 75 72 72 65 6e |d; each |occurren|
|00001c40| 63 65 20 6f 66 20 60 25 | 27 20 69 6e 20 5c 66 49 |ce of `%|' in \fI|
|00001c50| 6d 65 73 73 61 67 65 5c | 66 50 20 69 73 20 72 65 |message\|fP is re|
|00001c60| 70 6c 61 63 65 64 20 62 | 79 0a 74 68 65 20 6e 75 |placed b|y.the nu|
|00001c70| 6d 62 65 72 20 6f 66 20 | 74 68 65 20 77 69 6e 64 |mber of |the wind|
|00001c80| 6f 77 20 74 6f 20 77 68 | 69 63 68 20 61 20 62 65 |ow to wh|ich a be|
|00001c90| 6c 6c 20 68 61 73 20 62 | 65 65 6e 20 73 65 6e 74 |ll has b|een sent|
|00001ca0| 2e 0a 54 68 65 20 64 65 | 66 61 75 6c 74 20 6d 65 |..The de|fault me|
|00001cb0| 73 73 61 67 65 20 69 73 | 0a 2e 50 50 0a 09 42 65 |ssage is|..PP..Be|
|00001cc0| 6c 6c 20 69 6e 20 77 69 | 6e 64 6f 77 20 25 0a 2e |ll in wi|ndow %..|
|00001cd0| 50 50 0a 41 6e 20 65 6d | 70 74 79 20 6d 65 73 73 |PP.An em|pty mess|
|00001ce0| 61 67 65 20 63 61 6e 20 | 62 65 20 73 75 70 70 6c |age can |be suppl|
|00001cf0| 69 65 64 20 74 6f 20 74 | 68 65 20 5c 2a 51 62 65 |ied to t|he \*Qbe|
|00001d00| 6c 6c 5c 2a 55 20 63 6f | 6d 6d 61 6e 64 20 74 6f |ll\*U co|mmand to|
|00001d10| 20 73 75 70 70 72 65 73 | 73 0a 6f 75 74 70 75 74 | suppres|s.output|
|00001d20| 20 6f 66 20 61 20 6d 65 | 73 73 61 67 65 20 6c 69 | of a me|ssage li|
|00001d30| 6e 65 20 28 62 65 6c 6c | 20 22 22 29 2e 0a 2e 50 |ne (bell| "")...P|
|00001d40| 50 0a 2e 6e 65 20 33 0a | 2e 42 20 22 73 63 72 65 |P..ne 3.|.B "scre|
|00001d50| 65 6e 20 5b 5c 66 49 6e | 5c 66 50 5d 20 5b 5c 66 |en [\fIn|\fP] [\f|
|00001d60| 49 63 6d 64 73 20 61 72 | 67 73 5c 66 50 5d 22 0a |Icmds ar|gs\fP]".|
|00001d70| 2e 50 50 0a 45 73 74 61 | 62 6c 69 73 68 20 61 20 |.PP.Esta|blish a |
|00001d80| 77 69 6e 64 6f 77 2e 0a | 49 66 20 61 6e 20 6f 70 |window..|If an op|
|00001d90| 74 69 6f 6e 61 6c 20 6e | 75 6d 62 65 72 20 5c 66 |tional n|umber \f|
|00001da0| 49 6e 5c 66 50 20 69 6e | 20 74 68 65 20 72 61 6e |In\fP in| the ran|
|00001db0| 67 65 20 30 2e 2e 39 20 | 69 73 20 67 69 76 65 6e |ge 0..9 |is given|
|00001dc0| 2c 20 74 68 65 20 77 69 | 6e 64 6f 77 0a 6e 75 6d |, the wi|ndow.num|
|00001dd0| 62 65 72 20 5c 66 49 6e | 5c 66 50 20 69 73 20 61 |ber \fIn|\fP is a|
|00001de0| 73 73 69 67 6e 65 64 20 | 74 6f 20 74 68 65 20 6e |ssigned |to the n|
|00001df0| 65 77 6c 79 20 63 72 65 | 61 74 65 64 20 77 69 6e |ewly cre|ated win|
|00001e00| 64 6f 77 20 28 6f 72 2c | 20 69 66 20 74 68 69 73 |dow (or,| if this|
|00001e10| 0a 6e 75 6d 62 65 72 20 | 69 73 20 61 6c 72 65 61 |.number |is alrea|
|00001e20| 64 79 20 69 6e 20 75 73 | 65 2c 20 74 68 65 20 6e |dy in us|e, the n|
|00001e30| 65 78 74 20 68 69 67 68 | 65 72 20 6e 75 6d 62 65 |ext high|er numbe|
|00001e40| 72 29 2e 0a 4e 6f 74 65 | 20 74 68 61 74 20 5c 66 |r)..Note| that \f|
|00001e50| 49 6e 5c 66 50 20 68 61 | 73 20 61 20 76 61 6c 75 |In\fP ha|s a valu|
|00001e60| 65 20 6f 66 20 7a 65 72 | 6f 20 66 6f 72 20 74 68 |e of zer|o for th|
|00001e70| 65 20 73 74 61 6e 64 61 | 72 64 20 73 68 65 6c 6c |e standa|rd shell|
|00001e80| 20 77 69 6e 64 6f 77 0a | 63 72 65 61 74 65 64 20 | window.|created |
|00001e90| 61 66 74 65 72 20 5c 2a | 51 2e 73 63 72 65 65 6e |after \*|Q.screen|
|00001ea0| 72 63 5c 2a 55 20 68 61 | 73 20 62 65 65 6e 20 72 |rc\*U ha|s been r|
|00001eb0| 65 61 64 2e 0a 49 66 20 | 61 20 63 6f 6d 6d 61 6e |ead..If |a comman|
|00001ec0| 64 20 69 73 20 73 70 65 | 63 69 66 69 65 64 20 61 |d is spe|cified a|
|00001ed0| 66 74 65 72 20 5c 2a 51 | 73 63 72 65 65 6e 5c 2a |fter \*Q|screen\*|
|00001ee0| 55 2c 20 74 68 69 73 20 | 63 6f 6d 6d 61 6e 64 20 |U, this |command |
|00001ef0| 28 77 69 74 68 20 74 68 | 65 20 67 69 76 65 6e 0a |(with th|e given.|
|00001f00| 61 72 67 75 6d 65 6e 74 | 73 29 20 69 73 20 73 74 |argument|s) is st|
|00001f10| 61 72 74 65 64 20 69 6e | 20 74 68 65 20 77 69 6e |arted in| the win|
|00001f20| 64 6f 77 3b 20 69 66 20 | 6e 6f 20 63 6f 6d 6d 61 |dow; if |no comma|
|00001f30| 6e 64 20 69 73 20 67 69 | 76 65 6e 2c 20 61 20 73 |nd is gi|ven, a s|
|00001f40| 68 65 6c 6c 0a 69 73 20 | 63 72 65 61 74 65 64 20 |hell.is |created |
|00001f50| 69 6e 20 74 68 65 20 77 | 69 6e 64 6f 77 2e 0a 54 |in the w|indow..T|
|00001f60| 68 75 73 2c 20 69 66 20 | 79 6f 75 72 20 5c 2a 51 |hus, if |your \*Q|
|00001f70| 2e 73 63 72 65 65 6e 72 | 63 5c 2a 55 20 63 6f 6e |.screenr|c\*U con|
|00001f80| 74 61 69 6e 73 20 74 68 | 65 20 6c 69 6e 65 73 0a |tains th|e lines.|
|00001f90| 2e 50 50 0a 2e 6e 66 0a | 09 23 20 65 78 61 6d 70 |.PP..nf.|.# examp|
|00001fa0| 6c 65 20 66 6f 72 20 2e | 73 63 72 65 65 6e 72 63 |le for .|screenrc|
|00001fb0| 3a 0a 09 73 63 72 65 65 | 6e 20 31 0a 09 73 63 72 |:..scree|n 1..scr|
|00001fc0| 65 65 6e 20 32 20 74 65 | 6c 6e 65 74 20 66 6f 6f |een 2 te|lnet foo|
|00001fd0| 62 61 72 0a 2e 66 69 0a | 2e 50 50 0a 2e 49 20 73 |bar..fi.|.PP..I s|
|00001fe0| 63 72 65 65 6e 0a 63 72 | 65 61 74 65 73 20 61 20 |creen.cr|eates a |
|00001ff0| 73 68 65 6c 6c 20 77 69 | 6e 64 6f 77 20 28 77 69 |shell wi|ndow (wi|
|00002000| 6e 64 6f 77 20 23 31 29 | 2c 20 61 20 77 69 6e 64 |ndow #1)|, a wind|
|00002010| 6f 77 20 77 69 74 68 20 | 61 20 54 45 4c 4e 45 54 |ow with |a TELNET|
|00002020| 20 63 6f 6e 6e 65 63 74 | 69 6f 6e 0a 74 6f 20 74 | connect|ion.to t|
|00002030| 68 65 20 6d 61 63 68 69 | 6e 65 20 66 6f 6f 62 61 |he machi|ne fooba|
|00002040| 72 20 28 77 69 6e 64 6f | 77 20 23 32 29 2c 20 61 |r (windo|w #2), a|
|00002050| 6e 64 2c 20 66 69 6e 61 | 6c 6c 79 2c 20 61 20 73 |nd, fina|lly, a s|
|00002060| 65 63 6f 6e 64 20 73 68 | 65 6c 6c 20 77 69 6e 64 |econd sh|ell wind|
|00002070| 6f 77 0a 28 74 68 65 20 | 64 65 66 61 75 6c 74 20 |ow.(the |default |
|00002080| 77 69 6e 64 6f 77 29 20 | 77 68 69 63 68 20 67 65 |window) |which ge|
|00002090| 74 73 20 61 20 77 69 6e | 64 6f 77 20 6e 75 6d 62 |ts a win|dow numb|
|000020a0| 65 72 20 6f 66 20 7a 65 | 72 6f 2e 0a 57 68 65 6e |er of ze|ro..When|
|000020b0| 20 74 68 65 20 69 6e 69 | 74 69 61 6c 69 7a 61 74 | the ini|tializat|
|000020c0| 69 6f 6e 20 69 73 20 63 | 6f 6d 70 6c 65 74 65 64 |ion is c|ompleted|
|000020d0| 2c 0a 2e 49 20 73 63 72 | 65 65 6e 0a 61 6c 77 61 |,..I scr|een.alwa|
|000020e0| 79 73 20 73 77 69 74 63 | 68 65 73 20 74 6f 20 74 |ys switc|hes to t|
|000020f0| 68 65 20 64 65 66 61 75 | 6c 74 20 77 69 6e 64 6f |he defau|lt windo|
|00002100| 77 2c 20 73 6f 20 77 69 | 6e 64 6f 77 20 23 30 20 |w, so wi|ndow #0 |
|00002110| 69 73 20 64 69 73 70 6c | 61 79 65 64 0a 77 68 65 |is displ|ayed.whe|
|00002120| 6e 20 74 68 65 20 61 62 | 6f 76 65 20 5c 2a 51 2e |n the ab|ove \*Q.|
|00002130| 73 63 72 65 65 6e 72 63 | 5c 2a 55 20 69 73 20 75 |screenrc|\*U is u|
|00002140| 73 65 64 2e 0a 2e 50 50 | 0a 2e 6e 65 20 33 0a 2e |sed...PP|..ne 3..|
|00002150| 42 20 22 63 68 64 69 72 | 20 5b 5c 66 49 64 69 72 |B "chdir| [\fIdir|
|00002160| 65 63 74 6f 72 79 5c 66 | 50 5d 22 0a 2e 50 50 0a |ectory\f|P]"..PP.|
|00002170| 43 68 61 6e 67 65 20 74 | 68 65 20 5c 66 49 63 75 |Change t|he \fIcu|
|00002180| 72 72 65 6e 74 20 64 69 | 72 65 63 74 6f 72 79 5c |rrent di|rectory\|
|00002190| 66 50 20 6f 66 0a 2e 49 | 20 73 63 72 65 65 6e 0a |fP of..I| screen.|
|000021a0| 74 6f 20 74 68 65 20 73 | 70 65 63 69 66 69 65 64 |to the s|pecified|
|000021b0| 20 64 69 72 65 63 74 6f | 72 79 20 6f 72 2c 20 69 | directo|ry or, i|
|000021c0| 66 20 63 61 6c 6c 65 64 | 20 77 69 74 68 6f 75 74 |f called| without|
|000021d0| 20 61 6e 20 61 72 67 75 | 6d 65 6e 74 2c 0a 74 6f | an argu|ment,.to|
|000021e0| 20 74 68 65 20 68 6f 6d | 65 20 64 69 72 65 63 74 | the hom|e direct|
|000021f0| 6f 72 79 20 28 74 68 65 | 20 76 61 6c 75 65 20 6f |ory (the| value o|
|00002200| 66 20 74 68 65 20 65 6e | 76 69 72 6f 6e 6d 65 6e |f the en|vironmen|
|00002210| 74 20 73 79 6d 62 6f 6c | 20 24 48 4f 4d 45 29 2e |t symbol| $HOME).|
|00002220| 0a 41 6c 6c 20 77 69 6e | 64 6f 77 73 20 74 68 61 |.All win|dows tha|
|00002230| 74 20 61 72 65 20 63 72 | 65 61 74 65 64 20 62 79 |t are cr|eated by|
|00002240| 20 6d 65 61 6e 73 20 6f | 66 20 74 68 65 20 5c 2a | means o|f the \*|
|00002250| 51 73 63 72 65 65 6e 5c | 2a 55 20 63 6f 6d 6d 61 |Qscreen\|*U comma|
|00002260| 6e 64 0a 66 72 6f 6d 20 | 77 69 74 68 69 6e 20 5c |nd.from |within \|
|00002270| 2a 51 2e 73 63 72 65 65 | 6e 72 63 5c 2a 55 20 6f |*Q.scree|nrc\*U o|
|00002280| 72 20 62 79 20 6d 65 61 | 6e 73 20 6f 66 20 5c 2a |r by mea|ns of \*|
|00002290| 51 43 2d 61 20 63 27 27 | 20 61 72 65 20 72 75 6e |QC-a c''| are run|
|000022a0| 6e 69 6e 67 0a 69 6e 20 | 74 68 65 20 5c 66 49 63 |ning.in |the \fIc|
|000022b0| 75 72 72 65 6e 74 20 64 | 69 72 65 63 74 6f 72 79 |urrent d|irectory|
|000022c0| 5c 66 50 3b 20 74 68 65 | 20 5c 66 49 63 75 72 72 |\fP; the| \fIcurr|
|000022d0| 65 6e 74 20 64 69 72 65 | 63 74 6f 72 79 5c 66 50 |ent dire|ctory\fP|
|000022e0| 20 69 73 0a 69 6e 69 74 | 69 61 6c 6c 79 20 74 68 | is.init|ially th|
|000022f0| 65 20 64 69 72 65 63 74 | 6f 72 79 20 66 72 6f 6d |e direct|ory from|
|00002300| 20 77 68 69 63 68 20 74 | 68 65 20 73 68 65 6c 6c | which t|he shell|
|00002310| 20 63 6f 6d 6d 61 6e 64 | 0a 2e 49 20 73 63 72 65 | command|..I scre|
|00002320| 65 6e 0a 68 61 73 20 62 | 65 65 6e 20 69 6e 76 6f |en.has b|een invo|
|00002330| 6b 65 64 2e 0a 48 61 72 | 64 63 6f 70 79 20 66 69 |ked..Har|dcopy fi|
|00002340| 6c 65 73 20 61 72 65 20 | 61 6c 77 61 79 73 20 77 |les are |always w|
|00002350| 72 69 74 74 65 6e 20 74 | 6f 20 74 68 65 20 64 69 |ritten t|o the di|
|00002360| 72 65 63 74 6f 72 79 20 | 69 6e 20 77 68 69 63 68 |rectory |in which|
|00002370| 20 74 68 65 20 63 75 72 | 72 65 6e 74 0a 77 69 6e | the cur|rent.win|
|00002380| 64 6f 77 20 68 61 73 20 | 62 65 65 6e 20 63 72 65 |dow has |been cre|
|00002390| 61 74 65 64 20 28 74 68 | 61 74 20 69 73 2c 20 5c |ated (th|at is, \|
|000023a0| 66 49 6e 6f 74 5c 66 50 | 20 69 6e 20 74 68 65 20 |fInot\fP| in the |
|000023b0| 63 75 72 72 65 6e 74 20 | 64 69 72 65 63 74 6f 72 |current |director|
|000023c0| 79 0a 6f 66 20 74 68 65 | 20 73 68 65 6c 6c 20 72 |y.of the| shell r|
|000023d0| 75 6e 6e 69 6e 67 20 69 | 6e 20 74 68 65 20 77 69 |unning i|n the wi|
|000023e0| 6e 64 6f 77 29 2e 0a 2e | 50 50 0a 2e 6e 65 20 33 |ndow)...|PP..ne 3|
|000023f0| 0a 2e 42 20 22 62 69 6e | 64 20 5c 66 49 6b 65 79 |..B "bin|d \fIkey|
|00002400| 5c 66 50 20 5b 5c 66 49 | 66 75 6e 63 74 69 6f 6e |\fP [\fI|function|
|00002410| 5c 66 50 20 7c 20 5c 66 | 49 63 6d 64 20 61 72 67 |\fP | \f|Icmd arg|
|00002420| 73 5c 66 50 5d 22 0a 2e | 50 50 0a 42 69 6e 64 20 |s\fP]"..|PP.Bind |
|00002430| 61 20 66 75 6e 63 74 69 | 6f 6e 20 74 6f 20 61 20 |a functi|on to a |
|00002440| 6b 65 79 2e 0a 42 79 20 | 64 65 66 61 75 6c 74 2c |key..By |default,|
|00002450| 20 65 61 63 68 20 66 75 | 6e 63 74 69 6f 6e 20 70 | each fu|nction p|
|00002460| 72 6f 76 69 64 65 64 20 | 62 79 0a 2e 49 20 73 63 |rovided |by..I sc|
|00002470| 72 65 65 6e 0a 69 73 20 | 62 6f 75 6e 64 20 74 6f |reen.is |bound to|
|00002480| 20 6f 6e 65 20 6f 72 20 | 6d 6f 72 65 20 6b 65 79 | one or |more key|
|00002490| 73 20 61 73 20 69 6e 64 | 69 63 61 74 65 64 20 62 |s as ind|icated b|
|000024a0| 79 20 74 68 65 20 61 62 | 6f 76 65 20 74 61 62 6c |y the ab|ove tabl|
|000024b0| 65 2c 20 65 2e 67 2e 20 | 74 68 65 0a 66 75 6e 63 |e, e.g. |the.func|
|000024c0| 74 69 6f 6e 20 74 6f 20 | 63 72 65 61 74 65 20 61 |tion to |create a|
|000024d0| 20 6e 65 77 20 77 69 6e | 64 6f 77 20 69 73 20 62 | new win|dow is b|
|000024e0| 6f 75 6e 64 20 74 6f 20 | 5c 2a 51 43 2d 63 5c 2a |ound to |\*QC-c\*|
|000024f0| 55 20 61 6e 64 20 5c 2a | 51 63 5c 2a 55 2e 0a 54 |U and \*|Qc\*U..T|
|00002500| 68 65 20 5c 2a 51 62 69 | 6e 64 5c 2a 55 20 63 6f |he \*Qbi|nd\*U co|
|00002510| 6d 6d 61 6e 64 20 63 61 | 6e 20 62 65 20 75 73 65 |mmand ca|n be use|
|00002520| 64 20 74 6f 20 72 65 64 | 65 66 69 6e 65 20 74 68 |d to red|efine th|
|00002530| 65 20 6b 65 79 20 62 69 | 6e 64 69 6e 67 73 20 61 |e key bi|ndings a|
|00002540| 6e 64 20 74 6f 0a 64 65 | 66 69 6e 65 20 6e 65 77 |nd to.de|fine new|
|00002550| 20 62 69 6e 64 69 6e 67 | 73 2e 0a 54 68 65 20 5c | binding|s..The \|
|00002560| 66 49 6b 65 79 5c 66 50 | 0a 61 72 67 75 6d 65 6e |fIkey\fP|.argumen|
|00002570| 74 20 69 73 20 65 69 74 | 68 65 72 20 61 20 73 69 |t is eit|her a si|
|00002580| 6e 67 6c 65 20 63 68 61 | 72 61 63 74 65 72 2c 20 |ngle cha|racter, |
|00002590| 61 20 73 65 71 75 65 6e | 63 65 20 6f 66 20 74 68 |a sequen|ce of th|
|000025a0| 65 20 66 6f 72 6d 0a 5c | 2a 51 5e 78 5c 2a 55 20 |e form.\|*Q^x\*U |
|000025b0| 6d 65 61 6e 69 6e 67 20 | 5c 2a 51 43 2d 78 5c 2a |meaning |\*QC-x\*|
|000025c0| 55 2c 20 6f 72 20 61 6e | 20 6f 63 74 61 6c 20 6e |U, or an| octal n|
|000025d0| 75 6d 62 65 72 20 73 70 | 65 63 69 66 79 69 6e 67 |umber sp|ecifying|
|000025e0| 20 74 68 65 0a 41 53 43 | 49 49 20 63 6f 64 65 20 | the.ASC|II code |
|000025f0| 6f 66 20 74 68 65 20 63 | 68 61 72 61 63 74 65 72 |of the c|haracter|
|00002600| 2e 0a 49 66 20 6e 6f 20 | 66 75 72 74 68 65 72 20 |..If no |further |
|00002610| 61 72 67 75 6d 65 6e 74 | 20 69 73 20 67 69 76 65 |argument| is give|
|00002620| 6e 2c 20 61 6e 79 20 70 | 72 65 76 69 6f 75 73 6c |n, any p|reviousl|
|00002630| 79 20 65 73 74 61 62 6c | 69 73 68 65 64 20 62 69 |y establ|ished bi|
|00002640| 6e 64 69 6e 67 0a 66 6f | 72 20 74 68 69 73 20 6b |nding.fo|r this k|
|00002650| 65 79 20 69 73 20 72 65 | 6d 6f 76 65 64 2e 0a 54 |ey is re|moved..T|
|00002660| 68 65 20 5c 66 49 66 75 | 6e 63 74 69 6f 6e 5c 66 |he \fIfu|nction\f|
|00002670| 50 20 61 72 67 75 6d 65 | 6e 74 20 63 61 6e 20 62 |P argume|nt can b|
|00002680| 65 20 6f 6e 65 20 6f 66 | 20 74 68 65 20 66 6f 6c |e one of| the fol|
|00002690| 6c 6f 77 69 6e 67 20 6b | 65 79 77 6f 72 64 73 3a |lowing k|eywords:|
|000026a0| 0a 2e 50 50 0a 2e 6e 66 | 0a 09 73 68 65 6c 6c 09 |..PP..nf|..shell.|
|000026b0| 43 72 65 61 74 65 20 6e | 65 77 20 77 69 6e 64 6f |Create n|ew windo|
|000026c0| 77 20 77 69 74 68 20 61 | 20 73 68 65 6c 6c 0a 09 |w with a| shell..|
|000026d0| 6b 69 6c 6c 09 4b 69 6c | 6c 20 74 68 65 20 63 75 |kill.Kil|l the cu|
|000026e0| 72 72 65 6e 74 20 77 69 | 6e 64 6f 77 0a 09 71 75 |rrent wi|ndow..qu|
|000026f0| 69 74 09 4b 69 6c 6c 20 | 61 6c 6c 20 77 69 6e 64 |it.Kill |all wind|
|00002700| 6f 77 73 20 61 6e 64 20 | 74 65 72 6d 69 6e 61 74 |ows and |terminat|
|00002710| 65 0a 09 6f 74 68 65 72 | 09 53 77 69 74 63 68 20 |e..other|.Switch |
|00002720| 74 6f 20 70 72 65 76 69 | 6f 75 73 6c 79 20 64 69 |to previ|ously di|
|00002730| 73 70 6c 61 79 65 64 20 | 77 69 6e 64 6f 77 0a 09 |splayed |window..|
|00002740| 6e 65 78 74 09 53 77 69 | 74 63 68 20 74 6f 20 74 |next.Swi|tch to t|
|00002750| 68 65 20 6e 65 78 74 20 | 77 69 6e 64 6f 77 0a 09 |he next |window..|
|00002760| 70 72 65 76 09 53 77 69 | 74 63 68 20 74 6f 20 74 |prev.Swi|tch to t|
|00002770| 68 65 20 70 72 65 76 69 | 6f 75 73 20 77 69 6e 64 |he previ|ous wind|
|00002780| 6f 77 0a 09 72 65 64 69 | 73 70 6c 61 79 09 52 65 |ow..redi|splay.Re|
|00002790| 64 69 73 70 6c 61 79 20 | 63 75 72 72 65 6e 74 20 |display |current |
|000027a0| 77 69 6e 64 6f 77 0a 09 | 68 61 72 64 63 6f 70 79 |window..|hardcopy|
|000027b0| 09 4d 61 6b 65 20 68 61 | 72 64 63 6f 70 79 20 6f |.Make ha|rdcopy o|
|000027c0| 66 20 63 75 72 72 65 6e | 74 20 77 69 6e 64 6f 77 |f curren|t window|
|000027d0| 0a 09 74 65 72 6d 63 61 | 70 09 57 72 69 74 65 20 |..termca|p.Write |
|000027e0| 74 65 72 6d 63 61 70 20 | 65 6e 74 72 79 20 74 6f |termcap |entry to|
|000027f0| 20 24 48 4f 4d 45 2f 2e | 73 63 72 65 65 6e 2f 2e | $HOME/.|screen/.|
|00002800| 74 65 72 6d 63 61 70 0a | 09 73 75 73 70 65 6e 64 |termcap.|.suspend|
|00002810| 09 53 75 73 70 65 6e 64 | 20 5c 66 49 73 63 72 65 |.Suspend| \fIscre|
|00002820| 65 6e 5c 66 50 0a 09 77 | 69 6e 64 6f 77 73 09 44 |en\fP..w|indows.D|
|00002830| 69 73 70 6c 61 79 20 6c | 69 73 74 20 6f 66 20 77 |isplay l|ist of w|
|00002840| 69 6e 64 6f 77 0a 09 69 | 6e 66 6f 09 50 72 69 6e |indow..i|nfo.Prin|
|00002850| 74 20 75 73 65 66 75 6c | 20 69 6e 66 6f 72 6d 61 |t useful| informa|
|00002860| 74 69 6f 6e 20 69 6e 20 | 74 68 65 20 6d 65 73 73 |tion in |the mess|
|00002870| 61 67 65 20 6c 69 6e 65 | 0a 09 78 6f 6e 09 53 65 |age line|..xon.Se|
|00002880| 6e 64 20 43 6f 6e 74 72 | 6f 6c 2d 71 0a 09 78 6f |nd Contr|ol-q..xo|
|00002890| 66 66 09 53 65 6e 64 20 | 43 6f 6e 74 72 6f 6c 2d |ff.Send |Control-|
|000028a0| 73 0a 09 76 65 72 73 69 | 6f 6e 09 44 69 73 70 6c |s..versi|on.Displ|
|000028b0| 61 79 20 74 68 65 20 76 | 65 72 73 69 6f 6e 0a 09 |ay the v|ersion..|
|000028c0| 73 65 6c 65 63 74 30 09 | 53 77 69 74 63 68 20 74 |select0.|Switch t|
|000028d0| 6f 20 77 69 6e 64 6f 77 | 20 23 30 0a 09 5c 30 5c |o window| #0..\0\|
|000028e0| 30 2e 2e 2e 0a 09 73 65 | 6c 65 63 74 39 09 53 77 |0.....se|lect9.Sw|
|000028f0| 69 74 63 68 20 74 6f 20 | 77 69 6e 64 6f 77 20 23 |itch to |window #|
|00002900| 39 0a 2e 66 69 0a 2e 50 | 50 0a 49 6e 20 61 64 64 |9..fi..P|P.In add|
|00002910| 69 74 69 6f 6e 2c 20 61 | 20 6b 65 79 20 63 61 6e |ition, a| key can|
|00002920| 20 62 65 20 62 6f 75 6e | 64 20 73 75 63 68 20 74 | be boun|d such t|
|00002930| 68 61 74 20 61 20 77 69 | 6e 64 6f 77 20 69 73 20 |hat a wi|ndow is |
|00002940| 63 72 65 61 74 65 64 20 | 72 75 6e 6e 69 6e 67 0a |created |running.|
|00002950| 61 20 64 69 66 66 65 72 | 65 6e 74 20 63 6f 6d 6d |a differ|ent comm|
|00002960| 61 6e 64 20 74 68 61 6e | 20 74 68 65 20 73 68 65 |and than| the she|
|00002970| 6c 6c 20 77 68 65 6e 20 | 74 68 61 74 20 6b 65 79 |ll when |that key|
|00002980| 20 69 73 20 70 72 65 73 | 73 65 64 2e 0a 49 6e 20 | is pres|sed..In |
|00002990| 74 68 69 73 20 63 61 73 | 65 2c 20 74 68 65 20 63 |this cas|e, the c|
|000029a0| 6f 6d 6d 61 6e 64 20 6f | 70 74 69 6f 6e 61 6c 6c |ommand o|ptionall|
|000029b0| 79 20 66 6f 6c 6c 6f 77 | 65 64 20 62 79 0a 61 72 |y follow|ed by.ar|
|000029c0| 67 75 6d 65 6e 74 73 20 | 6d 75 73 74 20 62 65 20 |guments |must be |
|000029d0| 67 69 76 65 6e 20 69 6e | 73 74 65 61 64 20 6f 66 |given in|stead of|
|000029e0| 20 6f 6e 65 20 6f 66 20 | 74 68 65 20 61 62 6f 76 | one of |the abov|
|000029f0| 65 2d 6c 69 73 74 65 64 | 20 6b 65 79 77 6f 72 64 |e-listed| keyword|
|00002a00| 73 2e 0a 46 6f 72 20 65 | 78 61 6d 70 6c 65 2c 20 |s..For e|xample, |
|00002a10| 74 68 65 20 63 6f 6d 6d | 61 6e 64 73 0a 2e 50 50 |the comm|ands..PP|
|00002a20| 0a 2e 6e 66 0a 09 62 69 | 6e 64 20 27 20 27 20 77 |..nf..bi|nd ' ' w|
|00002a30| 69 6e 64 6f 77 73 0a 09 | 62 69 6e 64 20 5e 66 20 |indows..|bind ^f |
|00002a40| 74 65 6c 6e 65 74 20 66 | 6f 6f 62 61 72 0a 09 62 |telnet f|oobar..b|
|00002a50| 69 6e 64 20 30 33 33 20 | 73 75 0a 2e 66 69 0a 2e |ind 033 |su..fi..|
|00002a60| 50 50 0a 77 6f 75 6c 64 | 20 62 69 6e 64 20 74 68 |PP.would| bind th|
|00002a70| 65 20 73 70 61 63 65 20 | 6b 65 79 20 74 6f 20 74 |e space |key to t|
|00002a80| 68 65 20 66 75 6e 63 74 | 69 6f 6e 20 74 68 61 74 |he funct|ion that|
|00002a90| 20 64 69 73 70 6c 61 79 | 73 20 61 20 6c 69 73 74 | display|s a list|
|00002aa0| 0a 6f 66 20 77 69 6e 64 | 6f 77 73 20 28 74 68 61 |.of wind|ows (tha|
|00002ab0| 74 20 69 73 2c 20 74 68 | 65 20 66 75 6e 63 74 69 |t is, th|e functi|
|00002ac0| 6f 6e 20 75 73 75 61 6c | 6c 79 20 69 6e 76 6f 6b |on usual|ly invok|
|00002ad0| 65 64 20 62 79 20 5c 2a | 51 43 2d 61 20 43 2d 77 |ed by \*|QC-a C-w|
|00002ae0| 5c 2a 55 0a 6f 72 20 5c | 2a 51 43 2d 61 20 77 5c |\*U.or \|*QC-a w\|
|00002af0| 2a 55 20 77 6f 75 6c 64 | 20 61 6c 73 6f 20 62 65 |*U would| also be|
|00002b00| 20 61 76 61 69 6c 61 62 | 6c 65 20 61 73 20 5c 2a | availab|le as \*|
|00002b10| 51 43 2d 61 20 73 70 61 | 63 65 5c 2a 55 29 2c 0a |QC-a spa|ce\*U),.|
|00002b20| 62 69 6e 64 20 5c 2a 51 | 43 2d 66 5c 2a 55 20 74 |bind \*Q|C-f\*U t|
|00002b30| 6f 20 74 68 65 20 66 75 | 6e 63 74 69 6f 6e 20 5c |o the fu|nction \|
|00002b40| 2a 51 63 72 65 61 74 65 | 20 61 20 77 69 6e 64 6f |*Qcreate| a windo|
|00002b50| 77 20 77 69 74 68 20 61 | 20 54 45 4c 4e 45 54 0a |w with a| TELNET.|
|00002b60| 63 6f 6e 6e 65 63 74 69 | 6f 6e 20 74 6f 20 66 6f |connecti|on to fo|
|00002b70| 6f 62 61 72 5c 2a 55 2c | 20 61 6e 64 20 62 69 6e |obar\*U,| and bin|
|00002b80| 64 20 5c 2a 51 65 73 63 | 61 70 65 5c 2a 55 20 74 |d \*Qesc|ape\*U t|
|00002b90| 6f 20 74 68 65 20 66 75 | 6e 63 74 69 6f 6e 0a 74 |o the fu|nction.t|
|00002ba0| 68 61 74 20 63 72 65 61 | 74 65 73 20 61 20 77 69 |hat crea|tes a wi|
|00002bb0| 6e 64 6f 77 20 77 69 74 | 68 20 61 20 73 75 70 65 |ndow wit|h a supe|
|00002bc0| 72 2d 75 73 65 72 20 73 | 68 65 6c 6c 2e 0a 2e 53 |r-user s|hell...S|
|00002bd0| 48 20 22 56 49 52 54 55 | 41 4c 20 54 45 52 4d 49 |H "VIRTU|AL TERMI|
|00002be0| 4e 41 4c 22 0a 2e 49 20 | 53 63 72 65 65 6e 0a 70 |NAL"..I |Screen.p|
|00002bf0| 72 69 6e 74 73 20 65 72 | 72 6f 72 20 6d 65 73 73 |rints er|ror mess|
|00002c00| 61 67 65 73 20 61 6e 64 | 20 6f 74 68 65 72 20 64 |ages and| other d|
|00002c10| 69 61 67 6e 6f 73 74 69 | 63 73 20 69 6e 20 61 20 |iagnosti|cs in a |
|00002c20| 5c 66 49 6d 65 73 73 61 | 67 65 20 6c 69 6e 65 5c |\fImessa|ge line\|
|00002c30| 66 50 20 61 62 6f 76 65 | 0a 74 68 65 20 62 6f 74 |fP above|.the bot|
|00002c40| 74 6f 6d 20 6f 66 20 74 | 68 65 20 73 63 72 65 65 |tom of t|he scree|
|00002c50| 6e 2e 0a 54 68 65 20 6d | 65 73 73 61 67 65 20 6c |n..The m|essage l|
|00002c60| 69 6e 65 20 69 73 20 72 | 65 6d 6f 76 65 64 20 77 |ine is r|emoved w|
|00002c70| 68 65 6e 20 61 20 6b 65 | 79 20 69 73 20 70 72 65 |hen a ke|y is pre|
|00002c80| 73 73 65 64 20 6f 72 2c | 20 61 75 74 6f 6d 61 74 |ssed or,| automat|
|00002c90| 69 63 61 6c 6c 79 2c 0a | 61 66 74 65 72 20 61 20 |ically,.|after a |
|00002ca0| 63 6f 75 70 6c 65 20 6f | 66 20 73 65 63 6f 6e 64 |couple o|f second|
|00002cb0| 73 2e 0a 54 68 65 20 6d | 65 73 73 61 67 65 20 6c |s..The m|essage l|
|00002cc0| 69 6e 65 20 66 61 63 69 | 6c 69 74 79 20 63 61 6e |ine faci|lity can|
|00002cd0| 20 62 65 20 75 73 65 64 | 20 62 79 20 61 6e 20 61 | be used| by an a|
|00002ce0| 70 70 6c 69 63 61 74 69 | 6f 6e 20 72 75 6e 6e 69 |pplicati|on runni|
|00002cf0| 6e 67 20 69 6e 0a 74 68 | 65 20 63 75 72 72 65 6e |ng in.th|e curren|
|00002d00| 74 20 77 69 6e 64 6f 77 | 20 62 79 20 6d 65 61 6e |t window| by mean|
|00002d10| 73 20 6f 66 20 74 68 65 | 20 41 4e 53 49 20 5c 66 |s of the| ANSI \f|
|00002d20| 49 50 72 69 76 61 63 79 | 20 6d 65 73 73 61 67 65 |IPrivacy| message|
|00002d30| 5c 66 50 0a 63 6f 6e 74 | 72 6f 6c 20 73 65 71 75 |\fP.cont|rol sequ|
|00002d40| 65 6e 63 65 20 28 66 6f | 72 20 69 6e 73 74 61 6e |ence (fo|r instan|
|00002d50| 63 65 2c 20 66 72 6f 6d | 20 77 69 74 68 69 6e 20 |ce, from| within |
|00002d60| 74 68 65 20 73 68 65 6c | 6c 2c 20 73 6f 6d 65 74 |the shel|l, somet|
|00002d70| 68 69 6e 67 20 6c 69 6b | 65 0a 2e 49 50 0a 65 63 |hing lik|e..IP.ec|
|00002d80| 68 6f 20 27 5e 5b 5e 48 | 65 6c 6c 6f 20 77 6f 72 |ho '^[^H|ello wor|
|00002d90| 6c 64 5e 5b 5c 65 27 20 | 20 20 28 77 68 65 72 65 |ld^[\e' | (where|
|00002da0| 20 5e 5b 20 69 73 20 61 | 6e 20 5c 66 49 65 73 63 | ^[ is a|n \fIesc|
|00002db0| 61 70 65 5c 66 50 29 0a | 2e 50 50 0a 63 61 6e 20 |ape\fP).|.PP.can |
|00002dc0| 62 65 20 75 73 65 64 20 | 74 6f 20 64 69 73 70 6c |be used |to displ|
|00002dd0| 61 79 20 61 20 6d 65 73 | 73 61 67 65 20 6c 69 6e |ay a mes|sage lin|
|00002de0| 65 2e 0a 2e 50 50 0a 57 | 68 65 6e 20 74 68 65 20 |e...PP.W|hen the |
|00002df0| 60 4e 46 27 20 63 61 70 | 61 62 69 6c 69 74 79 20 |`NF' cap|ability |
|00002e00| 69 73 20 66 6f 75 6e 64 | 20 69 6e 20 74 68 65 20 |is found| in the |
|00002e10| 74 65 72 6d 63 61 70 20 | 65 6e 74 72 79 20 6f 66 |termcap |entry of|
|00002e20| 20 74 68 65 0a 74 65 72 | 6d 69 6e 61 6c 20 6f 6e | the.ter|minal on|
|00002e30| 20 77 68 69 63 68 0a 2e | 49 20 73 63 72 65 65 6e | which..|I screen|
|00002e40| 0a 68 61 73 20 62 65 65 | 6e 20 73 74 61 72 74 65 |.has bee|n starte|
|00002e50| 64 2c 20 66 6c 6f 77 20 | 63 6f 6e 74 72 6f 6c 20 |d, flow |control |
|00002e60| 69 73 20 74 75 72 6e 65 | 64 20 6f 66 66 20 66 6f |is turne|d off fo|
|00002e70| 72 20 74 68 65 20 74 65 | 72 6d 69 6e 61 6c 2e 0a |r the te|rminal..|
|00002e80| 54 68 69 73 20 65 6e 61 | 62 6c 65 73 20 74 68 65 |This ena|bles the|
|00002e90| 20 75 73 65 72 20 74 6f | 20 73 65 6e 64 20 58 4f | user to| send XO|
|00002ea0| 4e 20 61 6e 64 20 58 4f | 46 46 20 63 68 61 72 61 |N and XO|FF chara|
|00002eb0| 63 74 65 72 73 20 74 6f | 20 74 68 65 0a 70 72 6f |cters to| the.pro|
|00002ec0| 67 72 61 6d 20 72 75 6e | 6e 69 6e 67 20 69 6e 20 |gram run|ning in |
|00002ed0| 61 20 77 69 6e 64 6f 77 | 20 28 74 68 69 73 20 69 |a window| (this i|
|00002ee0| 73 20 72 65 71 75 69 72 | 65 64 20 62 79 20 74 68 |s requir|ed by th|
|00002ef0| 65 20 5c 66 49 65 6d 61 | 63 73 5c 66 50 0a 65 64 |e \fIema|cs\fP.ed|
|00002f00| 69 74 6f 72 2c 20 66 6f | 72 20 69 6e 73 74 61 6e |itor, fo|r instan|
|00002f10| 63 65 29 2e 0a 54 68 65 | 20 63 6f 6d 6d 61 6e 64 |ce)..The| command|
|00002f20| 20 6c 69 6e 65 20 6f 70 | 74 69 6f 6e 73 20 0a 2e | line op|tions ..|
|00002f30| 42 20 2d 6e 0a 61 6e 64 | 0a 2e 42 20 2d 66 0a 63 |B -n.and|..B -f.c|
|00002f40| 61 6e 20 62 65 20 75 73 | 65 64 20 74 6f 20 74 75 |an be us|ed to tu|
|00002f50| 72 6e 20 66 6c 6f 77 20 | 63 6f 6e 74 72 6f 6c 20 |rn flow |control |
|00002f60| 6f 66 66 20 6f 72 20 6f | 6e 2c 20 72 65 73 70 65 |off or o|n, respe|
|00002f70| 63 74 69 76 65 6c 79 2c | 20 69 6e 64 65 70 65 6e |ctively,| indepen|
|00002f80| 64 65 6e 74 6c 79 0a 6f | 66 20 74 68 65 20 60 4e |dently.o|f the `N|
|00002f90| 46 27 20 63 61 70 61 62 | 69 6c 69 74 79 2e 0a 2e |F' capab|ility...|
|00002fa0| 50 50 0a 2e 49 0a 53 63 | 72 65 65 6e 0a 6e 65 76 |PP..I.Sc|reen.nev|
|00002fb0| 65 72 20 77 72 69 74 65 | 73 20 69 6e 20 74 68 65 |er write|s in the|
|00002fc0| 20 6c 61 73 74 20 70 6f | 73 69 74 69 6f 6e 20 6f | last po|sition o|
|00002fd0| 66 20 74 68 65 20 73 63 | 72 65 65 6e 2c 20 75 6e |f the sc|reen, un|
|00002fe0| 6c 65 73 73 20 74 68 65 | 20 62 6f 6f 6c 65 61 6e |less the| boolean|
|00002ff0| 0a 63 61 70 61 62 69 6c | 69 74 79 20 60 4c 50 27 |.capabil|ity `LP'|
|00003000| 20 69 73 20 66 6f 75 6e | 64 20 69 6e 20 74 68 65 | is foun|d in the|
|00003010| 20 74 65 72 6d 63 61 70 | 20 65 6e 74 72 79 20 6f | termcap| entry o|
|00003020| 66 20 74 68 65 20 74 65 | 72 6d 69 6e 61 6c 2e 0a |f the te|rminal..|
|00003030| 55 73 75 61 6c 6c 79 2c | 0a 2e 49 20 73 63 72 65 |Usually,|..I scre|
|00003040| 65 6e 0a 63 61 6e 6e 6f | 74 20 70 72 65 64 69 63 |en.canno|t predic|
|00003050| 74 20 77 68 65 74 68 65 | 72 20 6f 72 20 6e 6f 74 |t whethe|r or not|
|00003060| 20 61 20 70 61 72 74 69 | 63 75 6c 61 72 20 74 65 | a parti|cular te|
|00003070| 72 6d 69 6e 61 6c 20 73 | 63 72 6f 6c 6c 73 20 77 |rminal s|crolls w|
|00003080| 68 65 6e 0a 61 20 63 68 | 61 72 61 63 74 65 72 20 |hen.a ch|aracter |
|00003090| 69 73 20 77 72 69 74 74 | 65 6e 20 69 6e 20 74 68 |is writt|en in th|
|000030a0| 65 20 6c 61 73 74 20 63 | 6f 6c 75 6d 6e 20 6f 66 |e last c|olumn of|
|000030b0| 20 74 68 65 20 6c 61 73 | 74 20 6c 69 6e 65 3b 0a | the las|t line;.|
|000030c0| 60 4c 50 27 20 69 6e 64 | 69 63 61 74 65 73 20 74 |`LP' ind|icates t|
|000030d0| 68 61 74 20 69 74 20 69 | 73 20 73 61 66 65 20 74 |hat it i|s safe t|
|000030e0| 6f 20 77 72 69 74 65 20 | 69 6e 20 74 68 69 73 20 |o write |in this |
|000030f0| 70 6f 73 69 74 69 6f 6e | 2e 0a 4e 6f 74 65 20 74 |position|..Note t|
|00003100| 68 61 74 20 74 68 65 20 | 60 4c 50 27 20 63 61 70 |hat the |`LP' cap|
|00003110| 61 62 69 6c 69 74 79 20 | 69 73 20 69 6e 64 65 70 |ability |is indep|
|00003120| 65 6e 64 65 6e 74 20 6f | 66 20 60 61 6d 27 20 28 |endent o|f `am' (|
|00003130| 61 75 74 6f 6d 61 74 69 | 63 0a 6d 61 72 67 69 6e |automati|c.margin|
|00003140| 73 29 3b 20 66 6f 72 20 | 63 65 72 74 61 69 6e 20 |s); for |certain |
|00003150| 74 65 72 6d 69 6e 61 6c | 73 2c 20 73 75 63 68 20 |terminal|s, such |
|00003160| 61 73 20 74 68 65 20 56 | 54 31 30 30 2c 20 69 74 |as the V|T100, it|
|00003170| 20 69 73 20 72 65 61 73 | 6f 6e 61 62 6c 65 0a 74 | is reas|onable.t|
|00003180| 6f 20 73 65 74 20 60 61 | 6d 27 20 61 73 20 77 65 |o set `a|m' as we|
|00003190| 6c 6c 20 61 73 20 60 4c | 50 27 20 69 6e 20 74 68 |ll as `L|P' in th|
|000031a0| 65 20 63 6f 72 72 65 73 | 70 6f 6e 64 69 6e 67 20 |e corres|ponding |
|000031b0| 74 65 72 6d 63 61 70 20 | 65 6e 74 72 79 0a 28 74 |termcap |entry.(t|
|000031c0| 68 65 20 56 54 31 30 30 | 20 64 6f 65 73 20 6e 6f |he VT100| does no|
|000031d0| 74 20 6d 6f 76 65 20 74 | 68 65 20 63 75 72 73 6f |t move t|he curso|
|000031e0| 72 20 77 68 65 6e 20 61 | 20 63 68 61 72 61 63 74 |r when a| charact|
|000031f0| 65 72 20 69 73 20 77 72 | 69 74 74 65 6e 20 69 6e |er is wr|itten in|
|00003200| 0a 74 68 65 20 6c 61 73 | 74 20 63 6f 6c 75 6d 6e |.the las|t column|
|00003210| 20 6f 66 20 65 61 63 68 | 20 6c 69 6e 65 29 2e 0a | of each| line)..|
|00003220| 2e 50 50 0a 2e 49 20 53 | 63 72 65 65 6e 0a 70 75 |.PP..I S|creen.pu|
|00003230| 74 73 20 69 6e 74 6f 20 | 74 68 65 20 65 6e 76 69 |ts into |the envi|
|00003240| 72 6f 6e 6d 65 6e 74 20 | 6f 66 20 65 61 63 68 20 |ronment |of each |
|00003250| 70 72 6f 63 65 73 73 20 | 73 74 61 72 74 65 64 20 |process |started |
|00003260| 69 6e 20 61 20 6e 65 77 | 6c 79 20 63 72 65 61 74 |in a new|ly creat|
|00003270| 65 64 0a 77 69 6e 64 6f | 77 20 74 68 65 20 73 79 |ed.windo|w the sy|
|00003280| 6d 62 6f 6c 73 20 5c 2a | 51 57 49 4e 44 4f 57 3d |mbols \*|QWINDOW=|
|00003290| 5c 66 49 6e 5c 66 50 5c | 2a 55 20 28 77 68 65 72 |\fIn\fP\|*U (wher|
|000032a0| 65 20 5c 66 49 6e 5c 66 | 50 20 69 73 20 74 68 65 |e \fIn\f|P is the|
|000032b0| 20 6e 75 6d 62 65 72 0a | 6f 66 20 74 68 65 20 72 | number.|of the r|
|000032c0| 65 73 70 65 63 74 69 76 | 65 20 77 69 6e 64 6f 77 |espectiv|e window|
|000032d0| 29 2c 20 5c 2a 51 54 45 | 52 4d 3d 73 63 72 65 65 |), \*QTE|RM=scree|
|000032e0| 6e 5c 2a 55 2c 20 61 6e | 64 20 61 20 54 45 52 4d |n\*U, an|d a TERM|
|000032f0| 43 41 50 20 76 61 72 69 | 61 62 6c 65 0a 72 65 66 |CAP vari|able.ref|
|00003300| 6c 65 63 74 69 6e 67 20 | 74 68 65 20 63 61 70 61 |lecting |the capa|
|00003310| 62 69 6c 69 74 69 65 73 | 20 6f 66 20 74 68 65 20 |bilities| of the |
|00003320| 76 69 72 74 75 61 6c 20 | 74 65 72 6d 69 6e 61 6c |virtual |terminal|
|00003330| 20 65 6d 75 6c 61 74 65 | 64 20 62 79 0a 2e 49 52 | emulate|d by..IR|
|00003340| 20 73 63 72 65 65 6e 20 | 2e 0a 54 68 65 20 61 63 | screen |..The ac|
|00003350| 74 75 61 6c 20 73 65 74 | 20 6f 66 20 63 61 70 61 |tual set| of capa|
|00003360| 62 69 6c 69 74 69 65 73 | 20 73 75 70 70 6f 72 74 |bilities| support|
|00003370| 65 64 20 62 79 20 74 68 | 65 20 76 69 72 74 75 61 |ed by th|e virtua|
|00003380| 6c 20 74 65 72 6d 69 6e | 61 6c 0a 64 65 70 65 6e |l termin|al.depen|
|00003390| 64 73 20 6f 6e 20 74 68 | 65 20 63 61 70 61 62 69 |ds on th|e capabi|
|000033a0| 6c 69 74 69 65 73 20 73 | 75 70 70 6f 72 74 65 64 |lities s|upported|
|000033b0| 20 62 79 20 74 68 65 20 | 70 68 79 73 69 63 61 6c | by the |physical|
|000033c0| 20 74 65 72 6d 69 6e 61 | 6c 2e 0a 49 66 2c 20 66 | termina|l..If, f|
|000033d0| 6f 72 20 69 6e 73 74 61 | 6e 63 65 2c 20 74 68 65 |or insta|nce, the|
|000033e0| 20 70 68 79 73 69 63 61 | 6c 20 74 65 72 6d 69 6e | physica|l termin|
|000033f0| 61 6c 20 64 6f 65 73 20 | 6e 6f 74 20 73 75 70 70 |al does |not supp|
|00003400| 6f 72 74 20 73 74 61 6e | 64 6f 75 74 20 6d 6f 64 |ort stan|dout mod|
|00003410| 65 2c 0a 2e 49 20 73 63 | 72 65 65 6e 0a 64 6f 65 |e,..I sc|reen.doe|
|00003420| 73 20 6e 6f 74 20 70 75 | 74 20 74 68 65 20 60 73 |s not pu|t the `s|
|00003430| 6f 27 20 61 6e 64 20 60 | 73 65 27 20 63 61 70 61 |o' and `|se' capa|
|00003440| 62 69 6c 69 74 69 65 73 | 20 69 6e 74 6f 20 74 68 |bilities| into th|
|00003450| 65 20 77 69 6e 64 6f 77 | 27 73 20 54 45 52 4d 43 |e window|'s TERMC|
|00003460| 41 50 0a 76 61 72 69 61 | 62 6c 65 2c 20 61 63 63 |AP.varia|ble, acc|
|00003470| 6f 72 64 69 6e 67 6c 79 | 2e 20 0a 48 6f 77 65 76 |ordingly|. .Howev|
|00003480| 65 72 2c 20 61 20 6d 69 | 6e 69 6d 75 6d 20 6e 75 |er, a mi|nimum nu|
|00003490| 6d 62 65 72 20 6f 66 20 | 63 61 70 61 62 69 6c 69 |mber of |capabili|
|000034a0| 74 69 65 73 20 6d 75 73 | 74 20 62 65 20 73 75 70 |ties mus|t be sup|
|000034b0| 70 6f 72 74 65 64 20 62 | 79 20 61 0a 74 65 72 6d |ported b|y a.term|
|000034c0| 69 6e 61 6c 20 69 6e 20 | 6f 72 64 65 72 20 74 6f |inal in |order to|
|000034d0| 20 72 75 6e 0a 2e 49 52 | 20 73 63 72 65 65 6e 20 | run..IR| screen |
|000034e0| 2c 0a 6e 61 6d 65 6c 79 | 20 73 63 72 6f 6c 6c 69 |,.namely| scrolli|
|000034f0| 6e 67 2c 20 63 6c 65 61 | 72 20 73 63 72 65 65 6e |ng, clea|r screen|
|00003500| 2c 20 61 6e 64 20 64 69 | 72 65 63 74 20 63 75 72 |, and di|rect cur|
|00003510| 73 6f 72 20 61 64 64 72 | 65 73 73 69 6e 67 0a 28 |sor addr|essing.(|
|00003520| 69 6e 20 61 64 64 69 74 | 69 6f 6e 2c 0a 2e 49 20 |in addit|ion,..I |
|00003530| 73 63 72 65 65 6e 0a 64 | 6f 65 73 20 6e 6f 74 20 |screen.d|oes not |
|00003540| 72 75 6e 20 6f 6e 20 68 | 61 72 64 63 6f 70 79 20 |run on h|ardcopy |
|00003550| 74 65 72 6d 69 6e 61 6c | 73 20 6f 72 20 6f 6e 20 |terminal|s or on |
|00003560| 74 65 72 6d 69 6e 61 6c | 73 20 74 68 61 74 20 6f |terminal|s that o|
|00003570| 76 65 72 73 74 72 69 6b | 65 29 2e 0a 2e 50 50 0a |verstrik|e)...PP.|
|00003580| 53 6f 6d 65 20 63 61 70 | 61 62 69 6c 69 74 69 65 |Some cap|abilitie|
|00003590| 73 20 61 72 65 20 6f 6e | 6c 79 20 70 75 74 20 69 |s are on|ly put i|
|000035a0| 6e 74 6f 20 74 68 65 20 | 54 45 52 4d 43 41 50 0a |nto the |TERMCAP.|
|000035b0| 76 61 72 69 61 62 6c 65 | 20 6f 66 20 74 68 65 20 |variable| of the |
|000035c0| 76 69 72 74 75 61 6c 20 | 74 65 72 6d 69 6e 61 6c |virtual |terminal|
|000035d0| 20 69 66 20 74 68 65 79 | 20 63 61 6e 20 62 65 20 | if they| can be |
|000035e0| 65 66 66 69 63 69 65 6e | 74 6c 79 0a 69 6d 70 6c |efficien|tly.impl|
|000035f0| 65 6d 65 6e 74 65 64 20 | 62 79 20 74 68 65 20 70 |emented |by the p|
|00003600| 68 79 73 69 63 61 6c 20 | 74 65 72 6d 69 6e 61 6c |hysical |terminal|
|00003610| 2e 0a 46 6f 72 20 69 6e | 73 74 61 6e 63 65 2c 20 |..For in|stance, |
|00003620| 60 64 6c 27 20 28 64 65 | 6c 65 74 65 20 6c 69 6e |`dl' (de|lete lin|
|00003630| 65 29 20 69 73 20 6f 6e | 6c 79 20 70 75 74 20 69 |e) is on|ly put i|
|00003640| 6e 74 6f 20 74 68 65 20 | 54 45 52 4d 43 41 50 0a |nto the |TERMCAP.|
|00003650| 76 61 72 69 61 62 6c 65 | 20 69 66 20 74 68 65 20 |variable| if the |
|00003660| 74 65 72 6d 69 6e 61 6c | 20 73 75 70 70 6f 72 74 |terminal| support|
|00003670| 73 20 65 69 74 68 65 72 | 20 64 65 6c 65 74 65 20 |s either| delete |
|00003680| 6c 69 6e 65 20 69 74 73 | 65 6c 66 20 6f 72 0a 73 |line its|elf or.s|
|00003690| 63 72 6f 6c 6c 69 6e 67 | 20 72 65 67 69 6f 6e 73 |crolling| regions|
|000036a0| 2e 0a 49 66 0a 2e 49 20 | 73 63 72 65 65 6e 0a 69 |..If..I |screen.i|
|000036b0| 73 20 63 61 6c 6c 65 64 | 20 77 69 74 68 20 74 68 |s called| with th|
|000036c0| 65 0a 2e 42 20 2d 61 0a | 6f 70 74 69 6f 6e 2c 20 |e..B -a.|option, |
|000036d0| 5c 66 49 61 6c 6c 5c 66 | 50 20 63 61 70 61 62 69 |\fIall\f|P capabi|
|000036e0| 6c 69 74 69 65 73 20 61 | 72 65 20 70 75 74 20 69 |lities a|re put i|
|000036f0| 6e 74 6f 20 74 68 65 20 | 65 6e 76 69 72 6f 6e 6d |nto the |environm|
|00003700| 65 6e 74 2c 0a 65 76 65 | 6e 20 69 66 0a 2e 49 20 |ent,.eve|n if..I |
|00003710| 73 63 72 65 65 6e 0a 6d | 75 73 74 20 72 65 64 72 |screen.m|ust redr|
|00003720| 61 77 20 70 61 72 74 73 | 20 6f 66 20 74 68 65 20 |aw parts| of the |
|00003730| 64 69 73 70 6c 61 79 20 | 69 6e 20 6f 72 64 65 72 |display |in order|
|00003740| 20 74 6f 20 69 6d 70 6c | 65 6d 65 6e 74 20 61 20 | to impl|ement a |
|00003750| 66 75 6e 63 74 69 6f 6e | 2e 0a 2e 50 50 0a 54 68 |function|...PP.Th|
|00003760| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 69 73 20 61 |e follow|ing is a|
|00003770| 20 6c 69 73 74 20 6f 66 | 20 63 6f 6e 74 72 6f 6c | list of| control|
|00003780| 20 73 65 71 75 65 6e 63 | 65 73 20 72 65 63 6f 67 | sequenc|es recog|
|00003790| 6e 69 7a 65 64 20 62 79 | 0a 2e 49 52 20 73 63 72 |nized by|..IR scr|
|000037a0| 65 65 6e 20 2e 0a 5c 2a | 51 28 56 29 5c 2a 55 20 |een ..\*|Q(V)\*U |
|000037b0| 61 6e 64 20 5c 2a 51 28 | 41 29 5c 2a 55 20 69 6e |and \*Q(|A)\*U in|
|000037c0| 64 69 63 61 74 65 20 56 | 54 31 30 30 2d 73 70 65 |dicate V|T100-spe|
|000037d0| 63 69 66 69 63 20 61 6e | 64 20 41 4e 53 49 2d 73 |cific an|d ANSI-s|
|000037e0| 70 65 63 69 66 69 63 0a | 66 75 6e 63 74 69 6f 6e |pecific.|function|
|000037f0| 73 2c 20 72 65 73 70 65 | 63 74 69 76 65 6c 79 2e |s, respe|ctively.|
|00003800| 0a 2e 50 50 0a 2e 6e 66 | 0a 2e 54 50 20 32 30 0a |..PP..nf|..TP 20.|
|00003810| 2e 42 20 22 45 53 43 20 | 45 22 0a 09 4e 65 78 74 |.B "ESC |E"..Next|
|00003820| 20 4c 69 6e 65 0a 2e 54 | 50 20 32 30 0a 2e 42 20 | Line..T|P 20..B |
|00003830| 22 45 53 43 20 44 22 0a | 09 49 6e 64 65 78 0a 2e |"ESC D".|.Index..|
|00003840| 54 50 20 32 30 0a 2e 42 | 20 22 45 53 43 20 4d 22 |TP 20..B| "ESC M"|
|00003850| 0a 09 52 65 76 65 72 73 | 65 20 49 6e 64 65 78 0a |..Revers|e Index.|
|00003860| 2e 54 50 20 32 30 0a 2e | 42 20 22 45 53 43 20 48 |.TP 20..|B "ESC H|
|00003870| 22 0a 09 48 6f 72 69 7a | 6f 6e 74 61 6c 20 54 61 |"..Horiz|ontal Ta|
|00003880| 62 20 53 65 74 0a 2e 54 | 50 20 32 30 0a 2e 42 20 |b Set..T|P 20..B |
|00003890| 22 45 53 43 20 37 22 0a | 28 56 29 09 53 61 76 65 |"ESC 7".|(V).Save|
|000038a0| 20 43 75 72 73 6f 72 20 | 61 6e 64 20 61 74 74 72 | Cursor |and attr|
|000038b0| 69 62 75 74 65 73 0a 2e | 54 50 20 32 30 0a 2e 42 |ibutes..|TP 20..B|
|000038c0| 20 22 45 53 43 20 38 22 | 0a 28 56 29 09 52 65 73 | "ESC 8"|.(V).Res|
|000038d0| 74 6f 72 65 20 43 75 72 | 73 6f 72 20 61 6e 64 20 |tore Cur|sor and |
|000038e0| 41 74 74 72 69 62 75 74 | 65 73 0a 2e 54 50 20 32 |Attribut|es..TP 2|
|000038f0| 30 0a 2e 42 20 22 45 53 | 43 20 63 22 0a 09 52 65 |0..B "ES|C c"..Re|
|00003900| 73 65 74 20 74 6f 20 49 | 6e 69 74 69 61 6c 20 53 |set to I|nitial S|
|00003910| 74 61 74 65 0a 2e 54 50 | 20 32 30 0a 2e 42 20 22 |tate..TP| 20..B "|
|00003920| 45 53 43 20 3d 22 0a 28 | 56 29 09 41 70 70 6c 69 |ESC =".(|V).Appli|
|00003930| 63 61 74 69 6f 6e 20 4b | 65 79 70 61 64 20 4d 6f |cation K|eypad Mo|
|00003940| 64 65 0a 2e 54 50 20 32 | 30 0a 2e 42 20 22 45 53 |de..TP 2|0..B "ES|
|00003950| 43 20 3e 22 0a 28 56 29 | 09 4e 75 6d 65 72 69 63 |C >".(V)|.Numeric|
|00003960| 20 4b 65 79 70 61 64 20 | 4d 6f 64 65 0a 2e 54 50 | Keypad |Mode..TP|
|00003970| 20 32 30 0a 2e 42 20 22 | 45 53 43 20 23 20 38 22 | 20..B "|ESC # 8"|
|00003980| 0a 28 56 29 09 46 69 6c | 6c 20 53 63 72 65 65 6e |.(V).Fil|l Screen|
|00003990| 20 77 69 74 68 20 45 27 | 73 0a 2e 54 50 20 32 30 | with E'|s..TP 20|
|000039a0| 0a 2e 42 20 22 45 53 43 | 20 5c 65 22 0a 28 41 29 |..B "ESC| \e".(A)|
|000039b0| 09 53 74 72 69 6e 67 20 | 54 65 72 6d 69 6e 61 74 |.String |Terminat|
|000039c0| 6f 72 0a 2e 54 50 20 32 | 30 0a 2e 42 20 22 45 53 |or..TP 2|0..B "ES|
|000039d0| 43 20 5e 22 0a 28 41 29 | 09 50 72 69 76 61 63 79 |C ^".(A)|.Privacy|
|000039e0| 20 4d 65 73 73 61 67 65 | 20 28 4d 65 73 73 61 67 | Message| (Messag|
|000039f0| 65 20 4c 69 6e 65 29 0a | 2e 54 50 20 32 30 0a 2e |e Line).|.TP 20..|
|00003a00| 42 20 22 45 53 43 20 50 | 22 0a 28 41 29 09 44 65 |B "ESC P|".(A).De|
|00003a10| 76 69 63 65 20 43 6f 6e | 74 72 6f 6c 20 53 74 72 |vice Con|trol Str|
|00003a20| 69 6e 67 20 28 6e 6f 74 | 20 75 73 65 64 29 0a 2e |ing (not| used)..|
|00003a30| 54 50 20 32 30 0a 2e 42 | 20 22 45 53 43 20 5f 22 |TP 20..B| "ESC _"|
|00003a40| 0a 28 41 29 09 41 70 70 | 6c 69 63 61 74 69 6f 6e |.(A).App|lication|
|00003a50| 20 50 72 6f 67 72 61 6d | 20 43 6f 6d 6d 61 6e 64 | Program| Command|
|00003a60| 20 28 6e 6f 74 20 75 73 | 65 64 29 0a 2e 54 50 20 | (not us|ed)..TP |
|00003a70| 32 30 0a 2e 42 20 22 45 | 53 43 20 5d 22 0a 28 41 |20..B "E|SC ]".(A|
|00003a80| 29 09 4f 70 65 72 61 74 | 69 6e 67 20 53 79 73 74 |).Operat|ing Syst|
|00003a90| 65 6d 20 43 6f 6d 6d 61 | 6e 64 20 28 6e 6f 74 20 |em Comma|nd (not |
|00003aa0| 75 73 65 64 29 0a 2e 54 | 50 20 32 30 0a 2e 42 20 |used)..T|P 20..B |
|00003ab0| 22 45 53 43 20 5b 20 50 | 6e 20 3b 20 50 6e 20 48 |"ESC [ P|n ; Pn H|
|00003ac0| 22 0a 09 44 69 72 65 63 | 74 20 43 75 72 73 6f 72 |"..Direc|t Cursor|
|00003ad0| 20 41 64 64 72 65 73 73 | 69 6e 67 0a 2e 54 50 20 | Address|ing..TP |
|00003ae0| 32 30 0a 2e 42 20 22 45 | 53 43 20 5b 20 50 6e 20 |20..B "E|SC [ Pn |
|00003af0| 3b 20 50 6e 20 66 22 0a | 09 44 69 72 65 63 74 20 |; Pn f".|.Direct |
|00003b00| 43 75 72 73 6f 72 20 41 | 64 64 72 65 73 73 69 6e |Cursor A|ddressin|
|00003b10| 67 0a 2e 54 50 20 32 30 | 0a 2e 42 20 22 45 53 43 |g..TP 20|..B "ESC|
|00003b20| 20 5b 20 50 6e 20 4a 22 | 0a 09 45 72 61 73 65 20 | [ Pn J"|..Erase |
|00003b30| 69 6e 20 44 69 73 70 6c | 61 79 0a 2e 54 50 20 32 |in Displ|ay..TP 2|
|00003b40| 30 0a 5c 68 27 5c 77 27 | 45 53 43 20 27 75 27 50 |0.\h'\w'|ESC 'u'P|
|00003b50| 6e 20 3d 20 4e 6f 6e 65 | 20 6f 72 20 5c 66 42 30 |n = None| or \fB0|
|00003b60| 5c 66 50 0a 09 46 72 6f | 6d 20 43 75 72 73 6f 72 |\fP..Fro|m Cursor|
|00003b70| 20 74 6f 20 45 6e 64 20 | 6f 66 20 53 63 72 65 65 | to End |of Scree|
|00003b80| 6e 0a 2e 54 50 20 32 30 | 0a 5c 68 27 5c 77 27 45 |n..TP 20|.\h'\w'E|
|00003b90| 53 43 20 27 75 27 5c 66 | 42 31 5c 66 50 0a 09 46 |SC 'u'\f|B1\fP..F|
|00003ba0| 72 6f 6d 20 42 65 67 69 | 6e 6e 69 6e 67 20 6f 66 |rom Begi|nning of|
|00003bb0| 20 53 63 72 65 65 6e 20 | 74 6f 20 43 75 72 73 6f | Screen |to Curso|
|00003bc0| 72 0a 2e 54 50 20 32 30 | 0a 5c 68 27 5c 77 27 45 |r..TP 20|.\h'\w'E|
|00003bd0| 53 43 20 27 75 27 5c 66 | 42 32 5c 66 50 0a 09 45 |SC 'u'\f|B2\fP..E|
|00003be0| 6e 74 69 72 65 20 53 63 | 72 65 65 6e 0a 2e 54 50 |ntire Sc|reen..TP|
|00003bf0| 20 32 30 0a 2e 42 20 22 | 45 53 43 20 5b 20 50 6e | 20..B "|ESC [ Pn|
|00003c00| 20 4b 22 0a 09 45 72 61 | 73 65 20 69 6e 20 4c 69 | K"..Era|se in Li|
|00003c10| 6e 65 0a 2e 54 50 20 32 | 30 0a 5c 68 27 5c 77 27 |ne..TP 2|0.\h'\w'|
|00003c20| 45 53 43 20 27 75 27 50 | 6e 20 3d 20 4e 6f 6e 65 |ESC 'u'P|n = None|
|00003c30| 20 6f 72 20 5c 66 42 30 | 5c 66 50 0a 09 46 72 6f | or \fB0|\fP..Fro|
|00003c40| 6d 20 43 75 72 73 6f 72 | 20 74 6f 20 45 6e 64 20 |m Cursor| to End |
|00003c50| 6f 66 20 4c 69 6e 65 0a | 2e 54 50 20 32 30 0a 5c |of Line.|.TP 20.\|
|00003c60| 68 27 5c 77 27 45 53 43 | 20 27 75 27 5c 66 42 31 |h'\w'ESC| 'u'\fB1|
|00003c70| 5c 66 50 0a 09 46 72 6f | 6d 20 42 65 67 69 6e 6e |\fP..Fro|m Beginn|
|00003c80| 69 6e 67 20 6f 66 20 4c | 69 6e 65 20 74 6f 20 43 |ing of L|ine to C|
|00003c90| 75 72 73 6f 72 0a 2e 54 | 50 20 32 30 0a 5c 68 27 |ursor..T|P 20.\h'|
|00003ca0| 5c 77 27 45 53 43 20 27 | 75 27 5c 66 42 32 5c 66 |\w'ESC '|u'\fB2\f|
|00003cb0| 50 0a 09 45 6e 74 69 72 | 65 20 4c 69 6e 65 0a 2e |P..Entir|e Line..|
|00003cc0| 54 50 20 32 30 0a 2e 42 | 20 22 45 53 43 20 5b 20 |TP 20..B| "ESC [ |
|00003cd0| 50 6e 20 41 22 0a 09 43 | 75 72 73 6f 72 20 55 70 |Pn A"..C|ursor Up|
|00003ce0| 0a 2e 54 50 20 32 30 0a | 2e 42 20 22 45 53 43 20 |..TP 20.|.B "ESC |
|00003cf0| 5b 20 50 6e 20 42 22 0a | 09 43 75 72 73 6f 72 20 |[ Pn B".|.Cursor |
|00003d00| 44 6f 77 6e 0a 2e 54 50 | 20 32 30 0a 2e 42 20 22 |Down..TP| 20..B "|
|00003d10| 45 53 43 20 5b 20 50 6e | 20 43 22 0a 09 43 75 72 |ESC [ Pn| C"..Cur|
|00003d20| 73 6f 72 20 52 69 67 68 | 74 0a 2e 54 50 20 32 30 |sor Righ|t..TP 20|
|00003d30| 0a 2e 42 20 22 45 53 43 | 20 5b 20 50 6e 20 44 22 |..B "ESC| [ Pn D"|
|00003d40| 0a 09 43 75 72 73 6f 72 | 20 4c 65 66 74 0a 2e 54 |..Cursor| Left..T|
|00003d50| 50 20 32 30 0a 2e 42 20 | 22 45 53 43 20 5b 20 50 |P 20..B |"ESC [ P|
|00003d60| 73 20 3b 2e 2e 2e 3b 20 | 50 73 20 6d 22 0a 09 53 |s ;...; |Ps m"..S|
|00003d70| 65 6c 65 63 74 20 47 72 | 61 70 68 69 63 20 52 65 |elect Gr|aphic Re|
|00003d80| 6e 64 69 74 69 6f 6e 0a | 2e 54 50 20 32 30 0a 5c |ndition.|.TP 20.\|
|00003d90| 68 27 5c 77 27 45 53 43 | 20 27 75 27 50 73 20 3d |h'\w'ESC| 'u'Ps =|
|00003da0| 20 4e 6f 6e 65 20 6f 72 | 20 5c 66 42 30 5c 66 50 | None or| \fB0\fP|
|00003db0| 0a 09 44 65 66 61 75 6c | 74 20 52 65 6e 64 69 74 |..Defaul|t Rendit|
|00003dc0| 69 6f 6e 0a 2e 54 50 20 | 32 30 0a 5c 68 27 5c 77 |ion..TP |20.\h'\w|
|00003dd0| 27 45 53 43 20 27 75 27 | 5c 66 42 31 5c 66 50 0a |'ESC 'u'|\fB1\fP.|
|00003de0| 09 42 6f 6c 64 0a 2e 54 | 50 20 32 30 0a 5c 68 27 |.Bold..T|P 20.\h'|
|00003df0| 5c 77 27 45 53 43 20 27 | 75 27 5c 66 42 32 5c 66 |\w'ESC '|u'\fB2\f|
|00003e00| 50 0a 28 41 29 09 46 61 | 69 6e 74 0a 2e 54 50 20 |P.(A).Fa|int..TP |
|00003e10| 32 30 0a 5c 68 27 5c 77 | 27 45 53 43 20 27 75 27 |20.\h'\w|'ESC 'u'|
|00003e20| 5c 66 42 33 5c 66 50 0a | 28 41 29 09 5c 66 49 53 |\fB3\fP.|(A).\fIS|
|00003e30| 74 61 6e 64 6f 75 74 5c | 66 50 20 4d 6f 64 65 20 |tandout\|fP Mode |
|00003e40| 28 41 4e 53 49 3a 20 49 | 74 61 6c 69 63 69 73 65 |(ANSI: I|talicise|
|00003e50| 64 29 0a 2e 54 50 20 32 | 30 0a 5c 68 27 5c 77 27 |d)..TP 2|0.\h'\w'|
|00003e60| 45 53 43 20 27 75 27 5c | 66 42 34 5c 66 50 0a 09 |ESC 'u'\|fB4\fP..|
|00003e70| 55 6e 64 65 72 6c 69 6e | 65 64 0a 2e 54 50 20 32 |Underlin|ed..TP 2|
|00003e80| 30 0a 5c 68 27 5c 77 27 | 45 53 43 20 27 75 27 5c |0.\h'\w'|ESC 'u'\|
|00003e90| 66 42 35 5c 66 50 0a 09 | 42 6c 69 6e 6b 69 6e 67 |fB5\fP..|Blinking|
|00003ea0| 0a 2e 54 50 20 32 30 0a | 5c 68 27 5c 77 27 45 53 |..TP 20.|\h'\w'ES|
|00003eb0| 43 20 27 75 27 5c 66 42 | 37 5c 66 50 0a 09 4e 65 |C 'u'\fB|7\fP..Ne|
|00003ec0| 67 61 74 69 76 65 20 49 | 6d 61 67 65 0a 2e 54 50 |gative I|mage..TP|
|00003ed0| 20 32 30 0a 5c 68 27 5c | 77 27 45 53 43 20 27 75 | 20.\h'\|w'ESC 'u|
|00003ee0| 27 5c 66 42 32 32 5c 66 | 50 0a 28 41 29 09 4e 6f |'\fB22\f|P.(A).No|
|00003ef0| 72 6d 61 6c 20 49 6e 74 | 65 6e 73 69 74 79 0a 2e |rmal Int|ensity..|
|00003f00| 54 50 20 32 30 0a 5c 68 | 27 5c 77 27 45 53 43 20 |TP 20.\h|'\w'ESC |
|00003f10| 27 75 27 5c 66 42 32 33 | 5c 66 50 0a 28 41 29 09 |'u'\fB23|\fP.(A).|
|00003f20| 5c 66 49 53 74 61 6e 64 | 6f 75 74 5c 66 50 20 4d |\fIStand|out\fP M|
|00003f30| 6f 64 65 20 6f 66 66 20 | 28 41 4e 53 49 3a 20 49 |ode off |(ANSI: I|
|00003f40| 74 61 6c 69 63 69 73 65 | 64 20 6f 66 66 29 0a 2e |talicise|d off)..|
|00003f50| 54 50 20 32 30 0a 5c 68 | 27 5c 77 27 45 53 43 20 |TP 20.\h|'\w'ESC |
|00003f60| 27 75 27 5c 66 42 32 34 | 5c 66 50 0a 28 41 29 09 |'u'\fB24|\fP.(A).|
|00003f70| 4e 6f 74 20 55 6e 64 65 | 72 6c 69 6e 65 64 0a 2e |Not Unde|rlined..|
|00003f80| 54 50 20 32 30 0a 5c 68 | 27 5c 77 27 45 53 43 20 |TP 20.\h|'\w'ESC |
|00003f90| 27 75 27 5c 66 42 32 35 | 5c 66 50 0a 28 41 29 09 |'u'\fB25|\fP.(A).|
|00003fa0| 4e 6f 74 20 42 6c 69 6e | 6b 69 6e 67 0a 2e 54 50 |Not Blin|king..TP|
|00003fb0| 20 32 30 0a 5c 68 27 5c | 77 27 45 53 43 20 27 75 | 20.\h'\|w'ESC 'u|
|00003fc0| 27 5c 66 42 32 37 5c 66 | 50 0a 28 41 29 09 50 6f |'\fB27\f|P.(A).Po|
|00003fd0| 73 69 74 69 76 65 20 49 | 6d 61 67 65 0a 2e 54 50 |sitive I|mage..TP|
|00003fe0| 20 32 30 0a 2e 42 20 22 | 45 53 43 20 5b 20 50 6e | 20..B "|ESC [ Pn|
|00003ff0| 20 67 22 0a 09 54 61 62 | 20 43 6c 65 61 72 0a 2e | g"..Tab| Clear..|
|00004000| 54 50 20 32 30 0a 5c 68 | 27 5c 77 27 45 53 43 20 |TP 20.\h|'\w'ESC |
|00004010| 27 75 27 50 6e 20 3d 20 | 4e 6f 6e 65 20 6f 72 20 |'u'Pn = |None or |
|00004020| 5c 66 42 30 5c 66 50 0a | 09 43 6c 65 61 72 20 54 |\fB0\fP.|.Clear T|
|00004030| 61 62 20 61 74 20 43 75 | 72 72 65 6e 74 20 50 6f |ab at Cu|rrent Po|
|00004040| 73 69 74 69 6f 6e 0a 2e | 54 50 20 32 30 0a 5c 68 |sition..|TP 20.\h|
|00004050| 27 5c 77 27 45 53 43 20 | 27 75 27 5c 66 42 33 5c |'\w'ESC |'u'\fB3\|
|00004060| 66 50 0a 09 43 6c 65 61 | 72 20 41 6c 6c 20 54 61 |fP..Clea|r All Ta|
|00004070| 62 73 0a 2e 54 50 20 32 | 30 0a 2e 42 20 22 45 53 |bs..TP 2|0..B "ES|
|00004080| 43 20 5b 20 50 6e 20 3b | 20 50 6e 20 72 22 0a 28 |C [ Pn ;| Pn r".(|
|00004090| 56 29 09 53 65 74 20 53 | 63 72 6f 6c 6c 69 6e 67 |V).Set S|crolling|
|000040a0| 20 52 65 67 69 6f 6e 0a | 2e 54 50 20 32 30 0a 2e | Region.|.TP 20..|
|000040b0| 42 20 22 45 53 43 20 5b | 20 50 6e 20 49 22 0a 28 |B "ESC [| Pn I".(|
|000040c0| 41 29 09 48 6f 72 69 7a | 6f 6e 74 61 6c 20 54 61 |A).Horiz|ontal Ta|
|000040d0| 62 0a 2e 54 50 20 32 30 | 0a 2e 42 20 22 45 53 43 |b..TP 20|..B "ESC|
|000040e0| 20 5b 20 50 6e 20 5a 22 | 0a 28 41 29 09 42 61 63 | [ Pn Z"|.(A).Bac|
|000040f0| 6b 77 61 72 64 20 54 61 | 62 0a 2e 54 50 20 32 30 |kward Ta|b..TP 20|
|00004100| 0a 2e 42 20 22 45 53 43 | 20 5b 20 50 6e 20 4c 22 |..B "ESC| [ Pn L"|
|00004110| 0a 28 41 29 09 49 6e 73 | 65 72 74 20 4c 69 6e 65 |.(A).Ins|ert Line|
|00004120| 0a 2e 54 50 20 32 30 0a | 2e 42 20 22 45 53 43 20 |..TP 20.|.B "ESC |
|00004130| 5b 20 50 6e 20 4d 22 0a | 28 41 29 09 44 65 6c 65 |[ Pn M".|(A).Dele|
|00004140| 74 65 20 4c 69 6e 65 0a | 2e 54 50 20 32 30 0a 2e |te Line.|.TP 20..|
|00004150| 42 20 22 45 53 43 20 5b | 20 50 6e 20 40 22 0a 28 |B "ESC [| Pn @".(|
|00004160| 41 29 09 49 6e 73 65 72 | 74 20 43 68 61 72 61 63 |A).Inser|t Charac|
|00004170| 74 65 72 0a 2e 54 50 20 | 32 30 0a 2e 42 20 22 45 |ter..TP |20..B "E|
|00004180| 53 43 20 5b 20 50 6e 20 | 50 22 0a 28 41 29 09 44 |SC [ Pn |P".(A).D|
|00004190| 65 6c 65 74 65 20 43 68 | 61 72 61 63 74 65 72 0a |elete Ch|aracter.|
|000041a0| 2e 54 50 20 32 30 0a 2e | 42 20 22 45 53 43 20 5b |.TP 20..|B "ESC [|
|000041b0| 20 50 73 20 20 3b 2e 2e | 2e 3b 20 50 73 20 68 22 | Ps ;..|.; Ps h"|
|000041c0| 0a 09 53 65 74 20 4d 6f | 64 65 0a 2e 54 50 20 32 |..Set Mo|de..TP 2|
|000041d0| 30 0a 2e 42 20 22 45 53 | 43 20 5b 20 50 73 20 20 |0..B "ES|C [ Ps |
|000041e0| 3b 2e 2e 2e 3b 20 50 73 | 20 6c 22 0a 09 52 65 73 |;...; Ps| l"..Res|
|000041f0| 65 74 20 4d 6f 64 65 0a | 2e 54 50 20 32 30 0a 5c |et Mode.|.TP 20.\|
|00004200| 68 27 5c 77 27 45 53 43 | 20 27 75 27 50 73 20 3d |h'\w'ESC| 'u'Ps =|
|00004210| 20 5c 66 42 34 5c 66 50 | 0a 28 41 29 09 49 6e 73 | \fB4\fP|.(A).Ins|
|00004220| 65 72 74 20 4d 6f 64 65 | 0a 2e 54 50 20 32 30 0a |ert Mode|..TP 20.|
|00004230| 5c 68 27 5c 77 27 45 53 | 43 20 27 75 27 5c 66 42 |\h'\w'ES|C 'u'\fB|
|00004240| 3f 35 5c 66 50 0a 28 56 | 29 09 56 69 73 69 62 6c |?5\fP.(V|).Visibl|
|00004250| 65 20 42 65 6c 6c 20 28 | 5c 66 49 4f 6e 5c 66 50 |e Bell (|\fIOn\fP|
|00004260| 20 66 6f 6c 6c 6f 77 65 | 64 20 62 79 20 5c 66 49 | followe|d by \fI|
|00004270| 4f 66 66 5c 66 50 29 0a | 2e 54 50 20 32 30 0a 5c |Off\fP).|.TP 20.\|
|00004280| 68 27 5c 77 27 45 53 43 | 20 27 75 27 5c 66 42 3f |h'\w'ESC| 'u'\fB?|
|00004290| 36 5c 66 50 0a 28 56 29 | 09 5c 66 49 4f 72 69 67 |6\fP.(V)|.\fIOrig|
|000042a0| 69 6e 5c 66 50 20 4d 6f | 64 65 0a 2e 54 50 20 32 |in\fP Mo|de..TP 2|
|000042b0| 30 0a 5c 68 27 5c 77 27 | 45 53 43 20 27 75 27 5c |0.\h'\w'|ESC 'u'\|
|000042c0| 66 42 3f 37 5c 66 50 0a | 28 56 29 09 5c 66 49 57 |fB?7\fP.|(V).\fIW|
|000042d0| 72 61 70 5c 66 50 20 4d | 6f 64 65 0a 2e 66 69 0a |rap\fP M|ode..fi.|
|000042e0| 2e 53 48 20 46 49 4c 45 | 53 0a 2e 6e 66 0a 2e 74 |.SH FILE|S..nf..t|
|000042f0| 61 20 32 69 0a 24 28 48 | 4f 4d 45 29 2f 2e 73 63 |a 2i.$(H|OME)/.sc|
|00004300| 72 65 65 6e 72 63 09 5c | 66 49 73 63 72 65 65 6e |reenrc.\|fIscreen|
|00004310| 5c 66 50 20 69 6e 69 74 | 69 61 6c 69 7a 61 74 69 |\fP init|ializati|
|00004320| 6f 6e 20 63 6f 6d 6d 61 | 6e 64 73 0a 2e 62 72 0a |on comma|nds..br.|
|00004330| 24 28 48 4f 4d 45 29 2f | 2e 73 63 72 65 65 6e 09 |$(HOME)/|.screen.|
|00004340| 44 69 72 65 63 74 6f 72 | 79 20 63 72 65 61 74 65 |Director|y create|
|00004350| 64 20 62 79 20 5c 66 49 | 73 63 72 65 65 6e 5c 66 |d by \fI|screen\f|
|00004360| 50 0a 2e 62 72 0a 24 28 | 48 4f 4d 45 29 2f 2e 73 |P..br.$(|HOME)/.s|
|00004370| 63 72 65 65 6e 2f 5c 66 | 49 74 74 79 5c 66 50 09 |creen/\f|Itty\fP.|
|00004380| 53 6f 63 6b 65 74 20 63 | 72 65 61 74 65 64 20 62 |Socket c|reated b|
|00004390| 79 20 5c 66 49 73 63 72 | 65 65 6e 5c 66 50 0a 2e |y \fIscr|een\fP..|
|000043a0| 62 72 0a 68 61 72 64 63 | 6f 70 79 2e 5b 30 2d 39 |br.hardc|opy.[0-9|
|000043b0| 5d 09 53 63 72 65 65 6e | 20 69 6d 61 67 65 73 20 |].Screen| images |
|000043c0| 63 72 65 61 74 65 64 20 | 62 79 20 74 68 65 20 68 |created |by the h|
|000043d0| 61 72 64 63 6f 70 79 20 | 66 75 6e 63 74 69 6f 6e |ardcopy |function|
|000043e0| 0a 2e 62 72 0a 2f 65 74 | 63 2f 74 65 72 6d 63 61 |..br./et|c/termca|
|000043f0| 70 09 54 65 72 6d 69 6e | 61 6c 20 63 61 70 61 62 |p.Termin|al capab|
|00004400| 69 6c 69 74 79 20 64 61 | 74 61 20 62 61 73 65 0a |ility da|ta base.|
|00004410| 2e 62 72 0a 2f 65 74 63 | 2f 75 74 6d 70 09 4c 6f |.br./etc|/utmp.Lo|
|00004420| 67 69 6e 20 72 65 63 6f | 72 64 73 0a 2e 62 72 0a |gin reco|rds..br.|
|00004430| 2f 65 74 63 2f 74 74 79 | 73 09 54 65 72 6d 69 6e |/etc/tty|s.Termin|
|00004440| 61 6c 20 69 6e 69 74 69 | 61 6c 69 7a 61 74 69 6f |al initi|alizatio|
|00004450| 6e 20 64 61 74 61 0a 2e | 66 69 0a 2e 53 48 20 22 |n data..|fi..SH "|
|00004460| 53 45 45 20 41 4c 53 4f | 22 0a 74 65 72 6d 63 61 |SEE ALSO|".termca|
|00004470| 70 28 35 29 2c 20 75 74 | 6d 70 28 35 29 0a 2e 53 |p(5), ut|mp(5)..S|
|00004480| 48 20 41 55 54 48 4f 52 | 0a 4f 6c 69 76 65 72 20 |H AUTHOR|.Oliver |
|00004490| 4c 61 75 6d 61 6e 6e 0a | 2e 53 48 20 42 55 47 53 |Laumann.|.SH BUGS|
|000044a0| 0a 53 74 61 6e 64 6f 75 | 74 20 6d 6f 64 65 20 69 |.Standou|t mode i|
|000044b0| 73 20 6e 6f 74 20 63 6c | 65 61 72 65 64 20 62 65 |s not cl|eared be|
|000044c0| 66 6f 72 65 20 6e 65 77 | 6c 69 6e 65 20 6f 72 20 |fore new|line or |
|000044d0| 63 75 72 73 6f 72 20 61 | 64 64 72 65 73 73 69 6e |cursor a|ddressin|
|000044e0| 67 2e 0a 2e 50 50 0a 49 | 66 20 60 4c 50 27 20 69 |g...PP.I|f `LP' i|
|000044f0| 73 20 6e 6f 74 20 73 65 | 74 20 62 75 74 20 60 61 |s not se|t but `a|
|00004500| 6d 27 20 69 73 20 73 65 | 74 2c 20 74 68 65 20 6c |m' is se|t, the l|
|00004510| 61 73 74 20 63 68 61 72 | 61 63 74 65 72 20 69 6e |ast char|acter in|
|00004520| 20 74 68 65 20 6c 61 73 | 74 20 6c 69 6e 65 20 69 | the las|t line i|
|00004530| 73 20 6e 65 76 65 72 0a | 77 72 69 74 74 65 6e 2c |s never.|written,|
|00004540| 20 61 6e 64 20 69 74 20 | 69 73 20 6e 6f 74 20 63 | and it |is not c|
|00004550| 6f 72 72 65 63 74 6c 79 | 20 72 65 2d 64 69 73 70 |orrectly| re-disp|
|00004560| 6c 61 79 65 64 20 77 68 | 65 6e 20 74 68 65 20 73 |layed wh|en the s|
|00004570| 63 72 65 65 6e 20 69 73 | 0a 73 63 72 6f 6c 6c 65 |creen is|.scrolle|
|00004580| 64 20 75 70 20 6f 72 20 | 77 68 65 6e 20 61 20 63 |d up or |when a c|
|00004590| 68 61 72 61 63 74 65 72 | 20 69 73 20 64 65 6c 65 |haracter| is dele|
|000045a0| 74 65 64 20 69 6e 20 74 | 68 65 20 6c 61 73 74 20 |ted in t|he last |
|000045b0| 6c 69 6e 65 2e 0a 2e 50 | 50 0a 54 68 65 20 56 54 |line...P|P.The VT|
|000045c0| 31 30 30 20 5c 2a 51 77 | 72 61 70 20 61 72 6f 75 |100 \*Qw|rap arou|
|000045d0| 6e 64 20 77 69 74 68 20 | 63 75 72 73 6f 72 20 61 |nd with |cursor a|
|000045e0| 64 64 72 65 73 73 69 6e | 67 5c 2a 55 20 62 75 67 |ddressin|g\*U bug|
|000045f0| 20 69 73 20 6e 6f 74 20 | 63 6f 6d 70 65 6e 73 61 | is not |compensa|
|00004600| 74 65 64 0a 77 68 65 6e | 0a 2e 49 20 73 63 72 65 |ted.when|..I scre|
|00004610| 65 6e 0a 69 73 20 72 75 | 6e 6e 69 6e 67 20 6f 6e |en.is ru|nning on|
|00004620| 20 61 20 56 54 31 30 30 | 2e 0a 2e 50 50 0a 60 41 | a VT100|...PP.`A|
|00004630| 4c 2c 27 20 60 44 4c 27 | 2c 20 61 6e 64 20 73 69 |L,' `DL'|, and si|
|00004640| 6d 69 6c 61 72 20 70 61 | 72 61 6d 65 74 65 72 69 |milar pa|rameteri|
|00004650| 7a 65 64 20 63 61 70 61 | 62 69 6c 69 74 69 65 73 |zed capa|bilities|
|00004660| 20 61 72 65 20 6e 6f 74 | 20 75 73 65 64 20 69 66 | are not| used if|
|00004670| 20 70 72 65 73 65 6e 74 | 2e 0a 2e 50 50 0a 60 64 | present|...PP.`d|
|00004680| 6d 27 20 28 64 65 6c 65 | 74 65 20 6d 6f 64 65 29 |m' (dele|te mode)|
|00004690| 2c 20 60 78 6e 27 2c 20 | 61 6e 64 20 60 78 73 27 |, `xn', |and `xs'|
|000046a0| 20 61 72 65 20 6e 6f 74 | 20 68 61 6e 64 6c 65 64 | are not| handled|
|000046b0| 0a 63 6f 72 72 65 63 74 | 6c 79 20 28 74 68 65 79 |.correct|ly (they|
|000046c0| 20 61 72 65 20 69 67 6e | 6f 72 65 64 29 2e 20 0a | are ign|ored). .|
|000046d0| 2e 50 50 0a 44 69 66 66 | 65 72 65 6e 74 20 63 68 |.PP.Diff|erent ch|
|000046e0| 61 72 61 63 74 65 72 20 | 73 65 74 73 20 61 72 65 |aracter |sets are|
|000046f0| 20 6e 6f 74 20 73 75 70 | 70 6f 72 74 65 64 2e 0a | not sup|ported..|
|00004700| 2e 50 50 0a 60 6d 73 27 | 20 69 73 20 6e 6f 74 20 |.PP.`ms'| is not |
|00004710| 61 64 76 65 72 74 69 73 | 65 64 20 69 6e 20 74 68 |advertis|ed in th|
|00004720| 65 20 74 65 72 6d 63 61 | 70 20 65 6e 74 72 79 20 |e termca|p entry |
|00004730| 28 69 6e 20 6f 72 64 65 | 72 20 74 6f 20 63 6f 6d |(in orde|r to com|
|00004740| 70 65 6e 73 61 74 65 0a | 61 20 62 75 67 20 69 6e |pensate.|a bug in|
|00004750| 0a 2e 49 52 20 63 75 72 | 73 65 73 20 28 33 58 29 |..IR cur|ses (3X)|
|00004760| 29 2e 0a 2e 50 50 0a 53 | 63 72 6f 6c 6c 69 6e 67 |)...PP.S|crolling|
|00004770| 20 72 65 67 69 6f 6e 73 | 20 61 72 65 20 6f 6e 6c | regions| are onl|
|00004780| 79 20 65 6d 75 6c 61 74 | 65 64 20 69 66 20 74 68 |y emulat|ed if th|
|00004790| 65 20 70 68 79 73 69 63 | 61 6c 20 74 65 72 6d 69 |e physic|al termi|
|000047a0| 6e 61 6c 20 73 75 70 70 | 6f 72 74 73 0a 73 63 72 |nal supp|orts.scr|
|000047b0| 6f 6c 6c 69 6e 67 20 72 | 65 67 69 6f 6e 73 2e 0a |olling r|egions..|
|000047c0| 2e 50 50 0a 2e 49 20 53 | 63 72 65 65 6e 0a 64 6f |.PP..I S|creen.do|
|000047d0| 65 73 20 6e 6f 74 20 6d | 61 6b 65 20 75 73 65 20 |es not m|ake use |
|000047e0| 6f 66 20 68 61 72 64 77 | 61 72 65 20 74 61 62 73 |of hardw|are tabs|
|000047f0| 2e 0a 2e 50 50 0a 2e 49 | 20 53 63 72 65 65 6e 0a |...PP..I| Screen.|
|00004800| 6d 75 73 74 20 62 65 20 | 69 6e 73 74 61 6c 6c 65 |must be |installe|
|00004810| 64 20 61 73 20 73 65 74 | 2d 75 69 64 20 77 69 74 |d as set|-uid wit|
|00004820| 68 20 6f 77 6e 65 72 20 | 72 6f 6f 74 20 69 6e 20 |h owner |root in |
|00004830| 6f 72 64 65 72 20 74 6f | 20 62 65 20 61 62 6c 65 |order to| be able|
|00004840| 0a 74 6f 20 63 6f 72 72 | 65 63 74 6c 79 20 63 68 |.to corr|ectly ch|
|00004850| 61 6e 67 65 20 74 68 65 | 20 6f 77 6e 65 72 20 6f |ange the| owner o|
|00004860| 66 20 74 68 65 20 74 74 | 79 20 64 65 76 69 63 65 |f the tt|y device|
|00004870| 20 66 69 6c 65 20 66 6f | 72 20 65 61 63 68 0a 77 | file fo|r each.w|
|00004880| 69 6e 64 6f 77 2e 0a 53 | 70 65 63 69 61 6c 20 70 |indow..S|pecial p|
|00004890| 65 72 6d 69 73 73 69 6f | 6e 20 6d 61 79 20 61 6c |ermissio|n may al|
|000048a0| 73 6f 20 62 65 20 72 65 | 71 75 69 72 65 64 20 74 |so be re|quired t|
|000048b0| 6f 20 77 72 69 74 65 20 | 74 68 65 20 66 69 6c 65 |o write |the file|
|000048c0| 20 5c 2a 51 2f 65 74 63 | 2f 75 74 6d 70 5c 2a 55 | \*Q/etc|/utmp\*U|
|000048d0| 2e 0a 2e 50 50 0a 45 6e | 74 72 69 65 73 20 69 6e |...PP.En|tries in|
|000048e0| 20 5c 2a 51 2f 65 74 63 | 2f 75 74 6d 70 5c 2a 55 | \*Q/etc|/utmp\*U|
|000048f0| 20 61 72 65 20 6e 6f 74 | 20 72 65 6d 6f 76 65 64 | are not| removed|
|00004900| 20 77 68 65 6e 0a 2e 49 | 20 73 63 72 65 65 6e 0a | when..I| screen.|
|00004910| 69 73 20 6b 69 6c 6c 65 | 64 20 77 69 74 68 20 53 |is kille|d with S|
|00004920| 49 47 4b 49 4c 4c 2e 0a | 53 48 41 52 5f 45 4f 46 |IGKILL..|SHAR_EOF|
|00004930| 0a 69 66 20 74 65 73 74 | 20 31 37 38 39 35 20 2d |.if test| 17895 -|
|00004940| 6e 65 20 22 60 77 63 20 | 2d 63 20 3c 20 27 73 63 |ne "`wc |-c < 'sc|
|00004950| 72 65 65 6e 2e 31 27 60 | 22 0a 74 68 65 6e 0a 09 |reen.1'`|".then..|
|00004960| 65 63 68 6f 20 73 68 61 | 72 3a 20 65 72 72 6f 72 |echo sha|r: error|
|00004970| 20 74 72 61 6e 73 6d 69 | 74 74 69 6e 67 20 22 27 | transmi|tting "'|
|00004980| 73 63 72 65 65 6e 2e 31 | 27 22 20 27 28 73 68 6f |screen.1|'" '(sho|
|00004990| 75 6c 64 20 68 61 76 65 | 20 62 65 65 6e 20 31 37 |uld have| been 17|
|000049a0| 38 39 35 20 63 68 61 72 | 61 63 74 65 72 73 29 27 |895 char|acters)'|
|000049b0| 0a 66 69 0a 66 69 20 23 | 20 65 6e 64 20 6f 66 20 |.fi.fi #| end of |
|000049c0| 6f 76 65 72 77 72 69 74 | 69 6e 67 20 63 68 65 63 |overwrit|ing chec|
|000049d0| 6b 0a 65 63 68 6f 20 73 | 68 61 72 3a 20 65 78 74 |k.echo s|har: ext|
|000049e0| 72 61 63 74 69 6e 67 20 | 22 27 73 63 72 65 65 6e |racting |"'screen|
|000049f0| 2e 63 27 22 20 27 28 33 | 32 30 38 37 20 63 68 61 |.c'" '(3|2087 cha|
|00004a00| 72 61 63 74 65 72 73 29 | 27 0a 69 66 20 74 65 73 |racters)|'.if tes|
|00004a10| 74 20 2d 66 20 27 73 63 | 72 65 65 6e 2e 63 27 0a |t -f 'sc|reen.c'.|
|00004a20| 74 68 65 6e 0a 09 65 63 | 68 6f 20 73 68 61 72 3a |then..ec|ho shar:|
|00004a30| 20 77 69 6c 6c 20 6e 6f | 74 20 6f 76 65 72 2d 77 | will no|t over-w|
|00004a40| 72 69 74 65 20 65 78 69 | 73 74 69 6e 67 20 66 69 |rite exi|sting fi|
|00004a50| 6c 65 20 22 27 73 63 72 | 65 65 6e 2e 63 27 22 0a |le "'scr|een.c'".|
|00004a60| 65 6c 73 65 0a 63 61 74 | 20 3c 3c 20 5c 53 48 41 |else.cat| << \SHA|
|00004a70| 52 5f 45 4f 46 20 3e 20 | 27 73 63 72 65 65 6e 2e |R_EOF > |'screen.|
|00004a80| 63 27 0a 2f 2a 20 43 6f | 70 79 72 69 67 68 74 20 |c'./* Co|pyright |
|00004a90| 28 63 29 20 31 39 38 37 | 2c 20 4f 6c 69 76 65 72 |(c) 1987|, Oliver|
|00004aa0| 20 4c 61 75 6d 61 6e 6e | 2c 20 54 65 63 68 6e 69 | Laumann|, Techni|
|00004ab0| 63 61 6c 20 55 6e 69 76 | 65 72 73 69 74 79 20 6f |cal Univ|ersity o|
|00004ac0| 66 20 42 65 72 6c 69 6e | 2e 0a 20 2a 20 4e 6f 74 |f Berlin|.. * Not|
|00004ad0| 20 64 65 72 69 76 65 64 | 20 66 72 6f 6d 20 6c 69 | derived| from li|
|00004ae0| 63 65 6e 73 65 64 20 73 | 6f 66 74 77 61 72 65 2e |censed s|oftware.|
|00004af0| 0a 20 2a 0a 20 2a 20 50 | 65 72 6d 69 73 73 69 6f |. *. * P|ermissio|
|00004b00| 6e 20 69 73 20 67 72 61 | 6e 74 65 64 20 74 6f 20 |n is gra|nted to |
|00004b10| 66 72 65 65 6c 79 20 75 | 73 65 2c 20 63 6f 70 79 |freely u|se, copy|
|00004b20| 2c 20 6d 6f 64 69 66 79 | 2c 20 61 6e 64 20 72 65 |, modify|, and re|
|00004b30| 64 69 73 74 72 69 62 75 | 74 65 0a 20 2a 20 74 68 |distribu|te. * th|
|00004b40| 69 73 20 73 6f 66 74 77 | 61 72 65 2c 20 70 72 6f |is softw|are, pro|
|00004b50| 76 69 64 65 64 20 74 68 | 61 74 20 6e 6f 20 61 74 |vided th|at no at|
|00004b60| 74 65 6d 70 74 20 69 73 | 20 6d 61 64 65 20 74 6f |tempt is| made to|
|00004b70| 20 67 61 69 6e 20 70 72 | 6f 66 69 74 20 66 72 6f | gain pr|ofit fro|
|00004b80| 6d 20 69 74 2c 0a 20 2a | 20 74 68 65 20 61 75 74 |m it,. *| the aut|
|00004b90| 68 6f 72 20 69 73 20 6e | 6f 74 20 63 6f 6e 73 74 |hor is n|ot const|
|00004ba0| 72 75 65 64 20 74 6f 20 | 62 65 20 6c 69 61 62 6c |rued to |be liabl|
|00004bb0| 65 20 66 6f 72 20 61 6e | 79 20 72 65 73 75 6c 74 |e for an|y result|
|00004bc0| 73 20 6f 66 20 75 73 69 | 6e 67 20 74 68 65 0a 20 |s of usi|ng the. |
|00004bd0| 2a 20 73 6f 66 74 77 61 | 72 65 2c 20 61 6c 74 65 |* softwa|re, alte|
|00004be0| 72 61 74 69 6f 6e 73 20 | 61 72 65 20 63 6c 65 61 |rations |are clea|
|00004bf0| 72 6c 79 20 6d 61 72 6b | 65 64 20 61 73 20 73 75 |rly mark|ed as su|
|00004c00| 63 68 2c 20 61 6e 64 20 | 74 68 69 73 20 6e 6f 74 |ch, and |this not|
|00004c10| 69 63 65 20 69 73 0a 20 | 2a 20 6e 6f 74 20 6d 6f |ice is. |* not mo|
|00004c20| 64 69 66 69 65 64 2e 0a | 20 2a 2f 0a 0a 73 74 61 |dified..| */..sta|
|00004c30| 74 69 63 20 63 68 61 72 | 20 53 63 72 65 65 6e 56 |tic char| ScreenV|
|00004c40| 65 72 73 69 6f 6e 5b 5d | 20 3d 20 22 73 63 72 65 |ersion[]| = "scre|
|00004c50| 65 6e 20 31 2e 31 69 20 | 20 31 2d 4a 75 6c 2d 38 |en 1.1i | 1-Jul-8|
|00004c60| 37 22 3b 0a 0a 23 69 6e | 63 6c 75 64 65 20 3c 73 |7";..#in|clude <s|
|00004c70| 74 64 69 6f 2e 68 3e 0a | 23 69 6e 63 6c 75 64 65 |tdio.h>.|#include|
|00004c80| 20 3c 73 67 74 74 79 2e | 68 3e 0a 23 69 6e 63 6c | <sgtty.|h>.#incl|
|00004c90| 75 64 65 20 3c 73 69 67 | 6e 61 6c 2e 68 3e 0a 23 |ude <sig|nal.h>.#|
|00004ca0| 69 6e 63 6c 75 64 65 20 | 3c 65 72 72 6e 6f 2e 68 |include |<errno.h|
|00004cb0| 3e 0a 23 69 6e 63 6c 75 | 64 65 20 3c 63 74 79 70 |>.#inclu|de <ctyp|
|00004cc0| 65 2e 68 3e 0a 23 69 6e | 63 6c 75 64 65 20 3c 75 |e.h>.#in|clude <u|
|00004cd0| 74 6d 70 2e 68 3e 0a 23 | 69 6e 63 6c 75 64 65 20 |tmp.h>.#|include |
|00004ce0| 3c 70 77 64 2e 68 3e 0a | 23 69 6e 63 6c 75 64 65 |<pwd.h>.|#include|
|00004cf0| 20 3c 6e 6c 69 73 74 2e | 68 3e 0a 23 69 6e 63 6c | <nlist.|h>.#incl|
|00004d00| 75 64 65 20 3c 73 79 73 | 2f 74 79 70 65 73 2e 68 |ude <sys|/types.h|
|00004d10| 3e 0a 23 69 6e 63 6c 75 | 64 65 20 3c 73 79 73 2f |>.#inclu|de <sys/|
|00004d20| 74 69 6d 65 2e 68 3e 0a | 23 69 6e 63 6c 75 64 65 |time.h>.|#include|
|00004d30| 20 3c 73 79 73 2f 77 61 | 69 74 2e 68 3e 0a 23 69 | <sys/wa|it.h>.#i|
|00004d40| 6e 63 6c 75 64 65 20 3c | 73 79 73 2f 73 6f 63 6b |nclude <|sys/sock|
|00004d50| 65 74 2e 68 3e 0a 23 69 | 6e 63 6c 75 64 65 20 3c |et.h>.#i|nclude <|
|00004d60| 73 79 73 2f 75 6e 2e 68 | 3e 0a 23 69 6e 63 6c 75 |sys/un.h|>.#inclu|
|00004d70| 64 65 20 3c 73 79 73 2f | 73 74 61 74 2e 68 3e 0a |de <sys/|stat.h>.|
|00004d80| 23 69 6e 63 6c 75 64 65 | 20 3c 73 79 73 2f 66 69 |#include| <sys/fi|
|00004d90| 6c 65 2e 68 3e 0a 23 69 | 6e 63 6c 75 64 65 20 22 |le.h>.#i|nclude "|
|00004da0| 73 63 72 65 65 6e 2e 68 | 22 0a 0a 23 69 66 64 65 |screen.h|"..#ifde|
|00004db0| 66 20 47 45 54 54 54 59 | 45 4e 54 0a 23 20 20 20 |f GETTTY|ENT.# |
|00004dc0| 69 6e 63 6c 75 64 65 20 | 3c 74 74 79 65 6e 74 2e |include |<ttyent.|
|00004dd0| 68 3e 0a 23 65 6c 73 65 | 0a 20 20 20 20 73 74 61 |h>.#else|. sta|
|00004de0| 74 69 63 20 73 74 72 75 | 63 74 20 74 74 79 65 6e |tic stru|ct ttyen|
|00004df0| 74 20 7b 0a 09 63 68 61 | 72 20 2a 74 79 5f 6e 61 |t {..cha|r *ty_na|
|00004e00| 6d 65 3b 0a 20 20 20 20 | 7d 20 2a 67 65 74 74 74 |me;. |} *gettt|
|00004e10| 79 65 6e 74 28 29 3b 0a | 20 20 20 20 73 74 61 74 |yent();.| stat|
|00004e20| 69 63 20 63 68 61 72 20 | 2a 74 74 2c 20 2a 74 74 |ic char |*tt, *tt|
|00004e30| 6e 65 78 74 3b 0a 20 20 | 20 20 73 74 61 74 69 63 |next;. | static|
|00004e40| 20 63 68 61 72 20 74 74 | 79 73 5b 5d 20 3d 20 22 | char tt|ys[] = "|
|00004e50| 2f 65 74 63 2f 74 74 79 | 73 22 3b 0a 23 65 6e 64 |/etc/tty|s";.#end|
|00004e60| 69 66 0a 0a 23 64 65 66 | 69 6e 65 20 4d 41 58 57 |if..#def|ine MAXW|
|00004e70| 49 4e 20 20 20 20 20 31 | 30 0a 23 64 65 66 69 6e |IN 1|0.#defin|
|00004e80| 65 20 4d 41 58 41 52 47 | 53 20 20 20 20 36 34 0a |e MAXARG|S 64.|
|00004e90| 23 64 65 66 69 6e 65 20 | 4d 41 58 4c 49 4e 45 20 |#define |MAXLINE |
|00004ea0| 20 31 30 32 34 0a 23 64 | 65 66 69 6e 65 20 4d 53 | 1024.#d|efine MS|
|00004eb0| 47 57 41 49 54 20 20 20 | 20 20 35 0a 0a 23 64 65 |GWAIT | 5..#de|
|00004ec0| 66 69 6e 65 20 43 74 72 | 6c 28 63 29 20 28 28 63 |fine Ctr|l(c) ((c|
|00004ed0| 29 26 30 33 37 29 0a 0a | 65 78 74 65 72 6e 20 63 |)&037)..|extern c|
|00004ee0| 68 61 72 20 2a 62 6c 61 | 6e 6b 2c 20 54 65 72 6d |har *bla|nk, Term|
|00004ef0| 5b 5d 2c 20 2a 2a 65 6e | 76 69 72 6f 6e 3b 0a 65 |[], **en|viron;.e|
|00004f00| 78 74 65 72 6e 20 72 6f | 77 73 2c 20 63 6f 6c 73 |xtern ro|ws, cols|
|00004f10| 3b 0a 65 78 74 65 72 6e | 20 73 74 61 74 75 73 3b |;.extern| status;|
|00004f20| 0a 65 78 74 65 72 6e 20 | 74 69 6d 65 5f 74 20 54 |.extern |time_t T|
|00004f30| 69 6d 65 44 69 73 70 6c | 61 79 65 64 3b 0a 65 78 |imeDispl|ayed;.ex|
|00004f40| 74 65 72 6e 20 63 68 61 | 72 20 41 6e 73 69 56 65 |tern cha|r AnsiVe|
|00004f50| 72 73 69 6f 6e 5b 5d 3b | 0a 65 78 74 65 72 6e 20 |rsion[];|.extern |
|00004f60| 73 68 6f 72 74 20 6f 73 | 70 65 65 64 3b 0a 65 78 |short os|peed;.ex|
|00004f70| 74 65 72 6e 20 66 6c 6f | 77 63 74 6c 3b 0a 65 78 |tern flo|wctl;.ex|
|00004f80| 74 65 72 6e 20 65 72 72 | 6e 6f 3b 0a 65 78 74 65 |tern err|no;.exte|
|00004f90| 72 6e 20 73 79 73 5f 6e | 65 72 72 3b 0a 65 78 74 |rn sys_n|err;.ext|
|00004fa0| 65 72 6e 20 63 68 61 72 | 20 2a 73 79 73 5f 65 72 |ern char| *sys_er|
|00004fb0| 72 6c 69 73 74 5b 5d 3b | 0a 65 78 74 65 72 6e 20 |rlist[];|.extern |
|00004fc0| 63 68 61 72 20 2a 69 6e | 64 65 78 28 29 2c 20 2a |char *in|dex(), *|
|00004fd0| 72 69 6e 64 65 78 28 29 | 2c 20 2a 6d 61 6c 6c 6f |rindex()|, *mallo|
|00004fe0| 63 28 29 2c 20 2a 67 65 | 74 65 6e 76 28 29 2c 20 |c(), *ge|tenv(), |
|00004ff0| 2a 4d 61 6b 65 54 65 72 | 6d 63 61 70 28 29 3b 0a |*MakeTer|mcap();.|
|00005000| 65 78 74 65 72 6e 20 63 | 68 61 72 20 2a 67 65 74 |extern c|har *get|
|00005010| 6c 6f 67 69 6e 28 29 2c | 20 2a 74 74 79 6e 61 6d |login(),| *ttynam|
|00005020| 65 28 29 3b 0a 73 74 61 | 74 69 63 20 46 69 6e 69 |e();.sta|tic Fini|
|00005030| 74 28 29 2c 20 53 69 67 | 43 68 6c 64 28 29 3b 0a |t(), Sig|Chld();.|
|00005040| 73 74 61 74 69 63 20 63 | 68 61 72 20 2a 4d 61 6b |static c|har *Mak|
|00005050| 65 42 65 6c 6c 4d 73 67 | 28 29 2c 20 2a 46 69 6c |eBellMsg|(), *Fil|
|00005060| 65 6e 61 6d 65 28 29 2c | 20 2a 2a 53 61 76 65 41 |ename(),| **SaveA|
|00005070| 72 67 73 28 29 3b 0a 0a | 73 74 61 74 69 63 20 63 |rgs();..|static c|
|00005080| 68 61 72 20 50 74 79 4e | 61 6d 65 5b 33 32 5d 2c |har PtyN|ame[32],|
|00005090| 20 54 74 79 4e 61 6d 65 | 5b 33 32 5d 3b 0a 73 74 | TtyName|[32];.st|
|000050a0| 61 74 69 63 20 63 68 61 | 72 20 2a 53 68 65 6c 6c |atic cha|r *Shell|
|000050b0| 50 72 6f 67 3b 0a 73 74 | 61 74 69 63 20 63 68 61 |Prog;.st|atic cha|
|000050c0| 72 20 2a 53 68 65 6c 6c | 41 72 67 73 5b 32 5d 3b |r *Shell|Args[2];|
|000050d0| 0a 73 74 61 74 69 63 20 | 63 68 61 72 20 69 6e 62 |.static |char inb|
|000050e0| 75 66 5b 49 4f 53 49 5a | 45 5d 3b 0a 73 74 61 74 |uf[IOSIZ|E];.stat|
|000050f0| 69 63 20 69 6e 6c 65 6e | 3b 0a 73 74 61 74 69 63 |ic inlen|;.static|
|00005100| 20 45 53 43 73 65 65 6e | 3b 0a 73 74 61 74 69 63 | ESCseen|;.static|
|00005110| 20 47 6f 74 53 69 67 6e | 61 6c 3b 0a 73 74 61 74 | GotSign|al;.stat|
|00005120| 69 63 20 63 68 61 72 20 | 44 65 66 61 75 6c 74 53 |ic char |DefaultS|
|00005130| 68 65 6c 6c 5b 5d 20 3d | 20 22 2f 62 69 6e 2f 73 |hell[] =| "/bin/s|
|00005140| 68 22 3b 0a 73 74 61 74 | 69 63 20 63 68 61 72 20 |h";.stat|ic char |
|00005150| 44 65 66 61 75 6c 74 50 | 61 74 68 5b 5d 20 3d 20 |DefaultP|ath[] = |
|00005160| 22 3a 2f 75 73 72 2f 75 | 63 62 3a 2f 62 69 6e 3a |":/usr/u|cb:/bin:|
|00005170| 2f 75 73 72 2f 62 69 6e | 22 3b 0a 73 74 61 74 69 |/usr/bin|";.stati|
|00005180| 63 20 63 68 61 72 20 50 | 74 79 50 72 6f 74 6f 5b |c char P|tyProto[|
|00005190| 5d 20 3d 20 22 2f 64 65 | 76 2f 70 74 79 58 59 22 |] = "/de|v/ptyXY"|
|000051a0| 3b 0a 73 74 61 74 69 63 | 20 63 68 61 72 20 54 74 |;.static| char Tt|
|000051b0| 79 50 72 6f 74 6f 5b 5d | 20 3d 20 22 2f 64 65 76 |yProto[]| = "/dev|
|000051c0| 2f 74 74 79 58 59 22 3b | 0a 73 74 61 74 69 63 20 |/ttyXY";|.static |
|000051d0| 63 68 61 72 20 53 6f 63 | 6b 50 61 74 68 5b 35 31 |char Soc|kPath[51|
|000051e0| 32 5d 3b 0a 73 74 61 74 | 69 63 20 63 68 61 72 20 |2];.stat|ic char |
|000051f0| 53 6f 63 6b 44 69 72 5b | 5d 20 3d 20 22 2e 73 63 |SockDir[|] = ".sc|
|00005200| 72 65 65 6e 22 3b 0a 73 | 74 61 74 69 63 20 63 68 |reen";.s|tatic ch|
|00005210| 61 72 20 2a 53 6f 63 6b | 4e 61 6d 65 3b 0a 73 74 |ar *Sock|Name;.st|
|00005220| 61 74 69 63 20 63 68 61 | 72 20 2a 4e 65 77 45 6e |atic cha|r *NewEn|
|00005230| 76 5b 4d 41 58 41 52 47 | 53 5d 3b 0a 73 74 61 74 |v[MAXARG|S];.stat|
|00005240| 69 63 20 63 68 61 72 20 | 45 73 63 20 3d 20 43 74 |ic char |Esc = Ct|
|00005250| 72 6c 28 27 61 27 29 3b | 0a 73 74 61 74 69 63 20 |rl('a');|.static |
|00005260| 63 68 61 72 20 4d 65 74 | 61 45 73 63 20 3d 20 27 |char Met|aEsc = '|
|00005270| 61 27 3b 0a 73 74 61 74 | 69 63 20 63 68 61 72 20 |a';.stat|ic char |
|00005280| 2a 68 6f 6d 65 3b 0a 73 | 74 61 74 69 63 20 48 61 |*home;.s|tatic Ha|
|00005290| 73 57 69 6e 64 6f 77 3b | 0a 73 74 61 74 69 63 20 |sWindow;|.static |
|000052a0| 75 74 6d 70 2c 20 75 74 | 6d 70 66 3b 0a 73 74 61 |utmp, ut|mpf;.sta|
|000052b0| 74 69 63 20 63 68 61 72 | 20 55 74 6d 70 4e 61 6d |tic char| UtmpNam|
|000052c0| 65 5b 5d 20 3d 20 22 2f | 65 74 63 2f 75 74 6d 70 |e[] = "/|etc/utmp|
|000052d0| 22 3b 0a 73 74 61 74 69 | 63 20 63 68 61 72 20 2a |";.stati|c char *|
|000052e0| 4c 6f 67 69 6e 4e 61 6d | 65 3b 0a 73 74 61 74 69 |LoginNam|e;.stati|
|000052f0| 63 20 63 68 61 72 20 2a | 42 65 6c 6c 53 74 72 69 |c char *|BellStri|
|00005300| 6e 67 20 3d 20 22 42 65 | 6c 6c 20 69 6e 20 77 69 |ng = "Be|ll in wi|
|00005310| 6e 64 6f 77 20 25 22 3b | 0a 73 74 61 74 69 63 20 |ndow %";|.static |
|00005320| 6d 66 6c 61 67 2c 20 6e | 66 6c 61 67 2c 20 66 66 |mflag, n|flag, ff|
|00005330| 6c 61 67 3b 0a 73 74 61 | 74 69 63 20 63 68 61 72 |lag;.sta|tic char|
|00005340| 20 48 6f 73 74 4e 61 6d | 65 5b 4d 41 58 53 54 52 | HostNam|e[MAXSTR|
|00005350| 5d 3b 0a 23 69 66 64 65 | 66 20 4c 4f 41 44 41 56 |];.#ifde|f LOADAV|
|00005360| 0a 20 20 20 20 73 74 61 | 74 69 63 20 63 68 61 72 |. sta|tic char|
|00005370| 20 4b 6d 65 6d 4e 61 6d | 65 5b 5d 20 3d 20 22 2f | KmemNam|e[] = "/|
|00005380| 64 65 76 2f 6b 6d 65 6d | 22 3b 0a 20 20 20 20 73 |dev/kmem|";. s|
|00005390| 74 61 74 69 63 20 63 68 | 61 72 20 55 6e 69 78 4e |tatic ch|ar UnixN|
|000053a0| 61 6d 65 5b 5d 20 3d 20 | 22 2f 76 6d 75 6e 69 78 |ame[] = |"/vmunix|
|000053b0| 22 3b 0a 20 20 20 20 73 | 74 61 74 69 63 20 63 68 |";. s|tatic ch|
|000053c0| 61 72 20 41 76 65 6e 72 | 75 6e 53 79 6d 5b 5d 20 |ar Avenr|unSym[] |
|000053d0| 3d 20 22 5f 61 76 65 6e | 72 75 6e 22 3b 0a 20 20 |= "_aven|run";. |
|000053e0| 20 20 73 74 61 74 69 63 | 20 73 74 72 75 63 74 20 | static| struct |
|000053f0| 6e 6c 69 73 74 20 6e 6c | 5b 32 5d 3b 0a 20 20 20 |nlist nl|[2];. |
|00005400| 20 73 74 61 74 69 63 20 | 61 76 65 6e 72 75 6e 2c | static |avenrun,|
|00005410| 20 6b 6d 65 6d 66 3b 0a | 23 65 6e 64 69 66 0a 0a | kmemf;.|#endif..|
|00005420| 73 74 72 75 63 74 20 6d | 6f 64 65 20 7b 0a 20 20 |struct m|ode {. |
|00005430| 20 20 73 74 72 75 63 74 | 20 73 67 74 74 79 62 20 | struct| sgttyb |
|00005440| 6d 5f 74 74 79 62 3b 0a | 20 20 20 20 73 74 72 75 |m_ttyb;.| stru|
|00005450| 63 74 20 74 63 68 61 72 | 73 20 6d 5f 74 63 68 61 |ct tchar|s m_tcha|
|00005460| 72 73 3b 0a 20 20 20 20 | 73 74 72 75 63 74 20 6c |rs;. |struct l|
|00005470| 74 63 68 61 72 73 20 6d | 5f 6c 74 63 68 61 72 73 |tchars m|_ltchars|
|00005480| 3b 0a 20 20 20 20 69 6e | 74 20 6d 5f 6c 64 69 73 |;. in|t m_ldis|
|00005490| 63 3b 0a 20 20 20 20 69 | 6e 74 20 6d 5f 6c 6d 6f |c;. i|nt m_lmo|
|000054a0| 64 65 3b 0a 7d 20 4f 6c | 64 4d 6f 64 65 2c 20 4e |de;.} Ol|dMode, N|
|000054b0| 65 77 4d 6f 64 65 3b 0a | 0a 73 74 61 74 69 63 20 |ewMode;.|.static |
|000054c0| 73 74 72 75 63 74 20 77 | 69 6e 20 2a 63 75 72 72 |struct w|in *curr|
|000054d0| 2c 20 2a 6f 74 68 65 72 | 3b 0a 73 74 61 74 69 63 |, *other|;.static|
|000054e0| 20 43 75 72 72 4e 75 6d | 2c 20 4f 74 68 65 72 4e | CurrNum|, OtherN|
|000054f0| 75 6d 3b 0a 73 74 61 74 | 69 63 20 73 74 72 75 63 |um;.stat|ic struc|
|00005500| 74 20 77 69 6e 20 2a 77 | 74 61 62 5b 4d 41 58 57 |t win *w|tab[MAXW|
|00005510| 49 4e 5d 3b 0a 0a 23 64 | 65 66 69 6e 65 20 4d 53 |IN];..#d|efine MS|
|00005520| 47 5f 43 52 45 41 54 45 | 20 20 20 20 30 0a 23 64 |G_CREATE| 0.#d|
|00005530| 65 66 69 6e 65 20 4d 53 | 47 5f 45 52 52 4f 52 20 |efine MS|G_ERROR |
|00005540| 20 20 20 20 31 0a 0a 73 | 74 72 75 63 74 20 6d 73 | 1..s|truct ms|
|00005550| 67 20 7b 0a 20 20 20 20 | 69 6e 74 20 74 79 70 65 |g {. |int type|
|00005560| 3b 0a 20 20 20 20 75 6e | 69 6f 6e 20 7b 0a 09 73 |;. un|ion {..s|
|00005570| 74 72 75 63 74 20 7b 0a | 09 20 20 20 20 69 6e 74 |truct {.|. int|
|00005580| 20 61 66 6c 61 67 3b 0a | 09 20 20 20 20 69 6e 74 | aflag;.|. int|
|00005590| 20 6e 61 72 67 73 3b 0a | 09 20 20 20 20 63 68 61 | nargs;.|. cha|
|000055a0| 72 20 6c 69 6e 65 5b 4d | 41 58 4c 49 4e 45 5d 3b |r line[M|AXLINE];|
|000055b0| 0a 09 20 20 20 20 63 68 | 61 72 20 64 69 72 5b 31 |.. ch|ar dir[1|
|000055c0| 30 32 34 5d 3b 0a 09 7d | 20 63 72 65 61 74 65 3b |024];..}| create;|
|000055d0| 0a 09 63 68 61 72 20 6d | 65 73 73 61 67 65 5b 4d |..char m|essage[M|
|000055e0| 41 58 4c 49 4e 45 5d 3b | 0a 20 20 20 20 7d 20 6d |AXLINE];|. } m|
|000055f0| 3b 0a 7d 3b 0a 0a 23 64 | 65 66 69 6e 65 20 4b 45 |;.};..#d|efine KE|
|00005600| 59 5f 49 47 4e 4f 52 45 | 20 20 20 20 20 20 20 20 |Y_IGNORE| |
|00005610| 20 30 0a 23 64 65 66 69 | 6e 65 20 4b 45 59 5f 48 | 0.#defi|ne KEY_H|
|00005620| 41 52 44 43 4f 50 59 20 | 20 20 20 20 20 20 31 0a |ARDCOPY | 1.|
|00005630| 23 64 65 66 69 6e 65 20 | 4b 45 59 5f 53 55 53 50 |#define |KEY_SUSP|
|00005640| 45 4e 44 20 20 20 20 20 | 20 20 20 32 0a 23 64 65 |END | 2.#de|
|00005650| 66 69 6e 65 20 4b 45 59 | 5f 53 48 45 4c 4c 20 20 |fine KEY|_SHELL |
|00005660| 20 20 20 20 20 20 20 20 | 33 0a 23 64 65 66 69 6e | |3.#defin|
|00005670| 65 20 4b 45 59 5f 4e 45 | 58 54 20 20 20 20 20 20 |e KEY_NE|XT |
|00005680| 20 20 20 20 20 34 0a 23 | 64 65 66 69 6e 65 20 4b | 4.#|define K|
|00005690| 45 59 5f 50 52 45 56 20 | 20 20 20 20 20 20 20 20 |EY_PREV | |
|000056a0| 20 20 35 0a 23 64 65 66 | 69 6e 65 20 4b 45 59 5f | 5.#def|ine KEY_|
|000056b0| 4b 49 4c 4c 20 20 20 20 | 20 20 20 20 20 20 20 36 |KILL | 6|
|000056c0| 0a 23 64 65 66 69 6e 65 | 20 4b 45 59 5f 52 45 44 |.#define| KEY_RED|
|000056d0| 49 53 50 4c 41 59 20 20 | 20 20 20 20 37 0a 23 64 |ISPLAY | 7.#d|
|000056e0| 65 66 69 6e 65 20 4b 45 | 59 5f 57 49 4e 44 4f 57 |efine KE|Y_WINDOW|
|000056f0| 53 20 20 20 20 20 20 20 | 20 38 0a 23 64 65 66 69 |S | 8.#defi|
|00005700| 6e 65 20 4b 45 59 5f 56 | 45 52 53 49 4f 4e 20 20 |ne KEY_V|ERSION |
|00005710| 20 20 20 20 20 20 39 0a | 23 64 65 66 69 6e 65 20 | 9.|#define |
|00005720| 4b 45 59 5f 4f 54 48 45 | 52 20 20 20 20 20 20 20 |KEY_OTHE|R |
|00005730| 20 20 31 30 0a 23 64 65 | 66 69 6e 65 20 4b 45 59 | 10.#de|fine KEY|
|00005740| 5f 30 20 20 20 20 20 20 | 20 20 20 20 20 20 20 31 |_0 | 1|
|00005750| 31 0a 23 64 65 66 69 6e | 65 20 4b 45 59 5f 31 20 |1.#defin|e KEY_1 |
|00005760| 20 20 20 20 20 20 20 20 | 20 20 20 20 31 32 0a 23 | | 12.#|
|00005770| 64 65 66 69 6e 65 20 4b | 45 59 5f 32 20 20 20 20 |define K|EY_2 |
|00005780| 20 20 20 20 20 20 20 20 | 20 31 33 0a 23 64 65 66 | | 13.#def|
|00005790| 69 6e 65 20 4b 45 59 5f | 33 20 20 20 20 20 20 20 |ine KEY_|3 |
|000057a0| 20 20 20 20 20 20 31 34 | 0a 23 64 65 66 69 6e 65 | 14|.#define|
|000057b0| 20 4b 45 59 5f 34 20 20 | 20 20 20 20 20 20 20 20 | KEY_4 | |
|000057c0| 20 20 20 31 35 0a 23 64 | 65 66 69 6e 65 20 4b 45 | 15.#d|efine KE|
|000057d0| 59 5f 35 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |Y_5 | |
|000057e0| 31 36 0a 23 64 65 66 69 | 6e 65 20 4b 45 59 5f 36 |16.#defi|ne KEY_6|
|000057f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 31 37 0a | | 17.|
|00005800| 23 64 65 66 69 6e 65 20 | 4b 45 59 5f 37 20 20 20 |#define |KEY_7 |
|00005810| 20 20 20 20 20 20 20 20 | 20 20 31 38 0a 23 64 65 | | 18.#de|
|00005820| 66 69 6e 65 20 4b 45 59 | 5f 38 20 20 20 20 20 20 |fine KEY|_8 |
|00005830| 20 20 20 20 20 20 20 31 | 39 0a 23 64 65 66 69 6e | 1|9.#defin|
|00005840| 65 20 4b 45 59 5f 39 20 | 20 20 20 20 20 20 20 20 |e KEY_9 | |
|00005850| 20 20 20 20 32 30 0a 23 | 64 65 66 69 6e 65 20 4b | 20.#|define K|
|00005860| 45 59 5f 58 4f 4e 20 20 | 20 20 20 20 20 20 20 20 |EY_XON | |
|00005870| 20 32 31 0a 23 64 65 66 | 69 6e 65 20 4b 45 59 5f | 21.#def|ine KEY_|
|00005880| 58 4f 46 46 20 20 20 20 | 20 20 20 20 20 20 32 32 |XOFF | 22|
|00005890| 0a 23 64 65 66 69 6e 65 | 20 4b 45 59 5f 49 4e 46 |.#define| KEY_INF|
|000058a0| 4f 20 20 20 20 20 20 20 | 20 20 20 32 33 0a 23 64 |O | 23.#d|
|000058b0| 65 66 69 6e 65 20 4b 45 | 59 5f 54 45 52 4d 43 41 |efine KE|Y_TERMCA|
|000058c0| 50 20 20 20 20 20 20 20 | 32 34 0a 23 64 65 66 69 |P |24.#defi|
|000058d0| 6e 65 20 4b 45 59 5f 51 | 55 49 54 20 20 20 20 20 |ne KEY_Q|UIT |
|000058e0| 20 20 20 20 20 32 35 0a | 23 64 65 66 69 6e 65 20 | 25.|#define |
|000058f0| 4b 45 59 5f 43 52 45 41 | 54 45 20 20 20 20 20 20 |KEY_CREA|TE |
|00005900| 20 20 32 36 0a 0a 73 74 | 72 75 63 74 20 6b 65 79 | 26..st|ruct key|
|00005910| 20 7b 0a 20 20 20 20 69 | 6e 74 20 74 79 70 65 3b | {. i|nt type;|
|00005920| 0a 20 20 20 20 63 68 61 | 72 20 2a 2a 61 72 67 73 |. cha|r **args|
|00005930| 3b 0a 7d 20 6b 74 61 62 | 5b 32 35 36 5d 3b 0a 0a |;.} ktab|[256];..|
|00005940| 63 68 61 72 20 2a 4b 65 | 79 4e 61 6d 65 73 5b 5d |char *Ke|yNames[]|
|00005950| 20 3d 20 7b 0a 20 20 20 | 20 22 68 61 72 64 63 6f | = {. | "hardco|
|00005960| 70 79 22 2c 20 22 73 75 | 73 70 65 6e 64 22 2c 20 |py", "su|spend", |
|00005970| 22 73 68 65 6c 6c 22 2c | 20 22 6e 65 78 74 22 2c |"shell",| "next",|
|00005980| 20 22 70 72 65 76 22 2c | 20 22 6b 69 6c 6c 22 2c | "prev",| "kill",|
|00005990| 20 22 72 65 64 69 73 70 | 6c 61 79 22 2c 0a 20 20 | "redisp|lay",. |
|000059a0| 20 20 22 77 69 6e 64 6f | 77 73 22 2c 20 22 76 65 | "windo|ws", "ve|
|000059b0| 72 73 69 6f 6e 22 2c 20 | 22 6f 74 68 65 72 22 2c |rsion", |"other",|
|000059c0| 20 22 73 65 6c 65 63 74 | 30 22 2c 20 22 73 65 6c | "select|0", "sel|
|000059d0| 65 63 74 31 22 2c 20 22 | 73 65 6c 65 63 74 32 22 |ect1", "|select2"|
|000059e0| 2c 20 22 73 65 6c 65 63 | 74 33 22 2c 0a 20 20 20 |, "selec|t3",. |
|000059f0| 20 22 73 65 6c 65 63 74 | 34 22 2c 20 22 73 65 6c | "select|4", "sel|
|00005a00| 65 63 74 35 22 2c 20 22 | 73 65 6c 65 63 74 36 22 |ect5", "|select6"|
|00005a10| 2c 20 22 73 65 6c 65 63 | 74 37 22 2c 20 22 73 65 |, "selec|t7", "se|
|00005a20| 6c 65 63 74 38 22 2c 20 | 22 73 65 6c 65 63 74 39 |lect8", |"select9|
|00005a30| 22 2c 0a 20 20 20 20 22 | 78 6f 6e 22 2c 20 22 78 |",. "|xon", "x|
|00005a40| 6f 66 66 22 2c 20 22 69 | 6e 66 6f 22 2c 20 22 74 |off", "i|nfo", "t|
|00005a50| 65 72 6d 63 61 70 22 2c | 20 22 71 75 69 74 22 2c |ermcap",| "quit",|
|00005a60| 0a 20 20 20 20 30 0a 7d | 3b 0a 0a 6d 61 69 6e 20 |. 0.}|;..main |
|00005a70| 28 61 63 2c 20 61 76 29 | 20 63 68 61 72 20 2a 2a |(ac, av)| char **|
|00005a80| 61 76 3b 20 7b 0a 20 20 | 20 20 72 65 67 69 73 74 |av; {. | regist|
|00005a90| 65 72 20 6e 2c 20 6c 65 | 6e 3b 0a 20 20 20 20 72 |er n, le|n;. r|
|00005aa0| 65 67 69 73 74 65 72 20 | 73 74 72 75 63 74 20 77 |egister |struct w|
|00005ab0| 69 6e 20 2a 2a 70 70 2c | 20 2a 70 3b 0a 20 20 20 |in **pp,| *p;. |
|00005ac0| 20 63 68 61 72 20 2a 61 | 70 3b 0a 20 20 20 20 69 | char *a|p;. i|
|00005ad0| 6e 74 20 73 2c 20 72 2c | 20 77 2c 20 78 20 3d 20 |nt s, r,| w, x = |
|00005ae0| 30 3b 0a 20 20 20 20 69 | 6e 74 20 61 66 6c 61 67 |0;. i|nt aflag|
|00005af0| 20 3d 20 30 3b 0a 20 20 | 20 20 73 74 72 75 63 74 | = 0;. | struct|
|00005b00| 20 74 69 6d 65 76 61 6c | 20 74 76 3b 0a 20 20 20 | timeval| tv;. |
|00005b10| 20 74 69 6d 65 5f 74 20 | 6e 6f 77 3b 0a 20 20 20 | time_t |now;. |
|00005b20| 20 63 68 61 72 20 62 75 | 66 5b 49 4f 53 49 5a 45 | char bu|f[IOSIZE|
|00005b30| 5d 2c 20 2a 6d 79 6e 61 | 6d 65 20 3d 20 28 61 63 |], *myna|me = (ac|
|00005b40| 20 3d 3d 20 30 29 20 3f | 20 22 73 63 72 65 65 6e | == 0) ?| "screen|
|00005b50| 22 20 3a 20 61 76 5b 30 | 5d 3b 0a 20 20 20 20 63 |" : av[0|];. c|
|00005b60| 68 61 72 20 72 63 5b 32 | 35 36 5d 3b 0a 0a 20 20 |har rc[2|56];.. |
|00005b70| 20 20 77 68 69 6c 65 20 | 28 61 63 20 3e 20 30 29 | while |(ac > 0)|
|00005b80| 20 7b 0a 09 61 70 20 3d | 20 2a 2b 2b 61 76 3b 0a | {..ap =| *++av;.|
|00005b90| 09 69 66 20 28 2d 2d 61 | 63 20 3e 20 30 20 26 26 |.if (--a|c > 0 &&|
|00005ba0| 20 2a 61 70 20 3d 3d 20 | 27 2d 27 29 20 7b 0a 09 | *ap == |'-') {..|
|00005bb0| 20 20 20 20 73 77 69 74 | 63 68 20 28 61 70 5b 31 | swit|ch (ap[1|
|00005bc0| 5d 29 20 7b 0a 09 20 20 | 20 20 63 61 73 65 20 27 |]) {.. | case '|
|00005bd0| 63 27 3a 20 20 20 20 20 | 20 20 20 2f 2a 20 43 6f |c': | /* Co|
|00005be0| 6d 70 61 74 69 62 69 6c | 69 74 79 20 77 69 74 68 |mpatibil|ity with|
|00005bf0| 20 6f 6c 64 65 72 20 76 | 65 72 73 69 6f 6e 73 2e | older v|ersions.|
|00005c00| 20 2a 2f 0a 09 09 62 72 | 65 61 6b 3b 0a 09 20 20 | */...br|eak;.. |
|00005c10| 20 20 63 61 73 65 20 27 | 61 27 3a 0a 09 09 61 66 | case '|a':...af|
|00005c20| 6c 61 67 20 3d 20 31 3b | 0a 09 09 62 72 65 61 6b |lag = 1;|...break|
|00005c30| 3b 0a 09 20 20 20 20 63 | 61 73 65 20 27 6d 27 3a |;.. c|ase 'm':|
|00005c40| 0a 09 09 6d 66 6c 61 67 | 20 3d 20 31 3b 0a 09 09 |...mflag| = 1;...|
|00005c50| 62 72 65 61 6b 3b 0a 09 | 20 20 20 20 63 61 73 65 |break;..| case|
|00005c60| 20 27 6e 27 3a 0a 09 09 | 6e 66 6c 61 67 20 3d 20 | 'n':...|nflag = |
|00005c70| 31 3b 0a 09 09 62 72 65 | 61 6b 3b 0a 09 20 20 20 |1;...bre|ak;.. |
|00005c80| 20 63 61 73 65 20 27 66 | 27 3a 0a 09 09 66 66 6c | case 'f|':...ffl|
|00005c90| 61 67 20 3d 20 31 3b 0a | 09 09 62 72 65 61 6b 3b |ag = 1;.|..break;|
|00005ca0| 0a 09 20 20 20 20 63 61 | 73 65 20 27 65 27 3a 0a |.. ca|se 'e':.|
|00005cb0| 09 09 69 66 20 28 61 70 | 5b 32 5d 29 20 7b 0a 09 |..if (ap|[2]) {..|
|00005cc0| 09 20 20 20 20 61 70 20 | 2b 3d 20 32 3b 0a 09 09 |. ap |+= 2;...|
|00005cd0| 7d 20 65 6c 73 65 20 7b | 0a 09 09 20 20 20 20 69 |} else {|... i|
|00005ce0| 66 20 28 2d 2d 61 63 20 | 3d 3d 20 30 29 20 67 6f |f (--ac |== 0) go|
|00005cf0| 74 6f 20 68 65 6c 70 3b | 0a 09 09 20 20 20 20 61 |to help;|... a|
|00005d00| 70 20 3d 20 2a 2b 2b 61 | 76 3b 0a 09 09 7d 0a 09 |p = *++a|v;...}..|
|00005d10| 09 69 66 20 28 73 74 72 | 6c 65 6e 20 28 61 70 29 |.if (str|len (ap)|
|00005d20| 20 21 3d 20 32 29 0a 09 | 09 20 20 20 20 4d 73 67 | != 2)..|. Msg|
|00005d30| 20 28 30 2c 20 22 54 77 | 6f 20 63 68 61 72 61 63 | (0, "Tw|o charac|
|00005d40| 74 65 72 73 20 61 72 65 | 20 72 65 71 75 69 72 65 |ters are| require|
|00005d50| 64 20 77 69 74 68 20 2d | 65 20 6f 70 74 69 6f 6e |d with -|e option|
|00005d60| 2e 22 29 3b 0a 09 09 45 | 73 63 20 3d 20 61 70 5b |.");...E|sc = ap[|
|00005d70| 30 5d 3b 0a 09 09 4d 65 | 74 61 45 73 63 20 3d 20 |0];...Me|taEsc = |
|00005d80| 61 70 5b 31 5d 3b 0a 09 | 09 62 72 65 61 6b 3b 0a |ap[1];..|.break;.|
|00005d90| 09 20 20 20 20 64 65 66 | 61 75 6c 74 3a 0a 09 20 |. def|ault:.. |
|00005da0| 20 20 20 68 65 6c 70 3a | 0a 09 09 4d 73 67 20 28 | help:|...Msg (|
|00005db0| 30 2c 20 22 55 73 65 3a | 20 25 73 20 5b 2d 61 5d |0, "Use:| %s [-a]|
|00005dc0| 20 5b 2d 66 5d 20 5b 2d | 6e 5d 20 5b 2d 65 78 79 | [-f] [-|n] [-exy|
|00005dd0| 5d 20 5b 63 6d 64 20 61 | 72 67 73 5d 22 2c 20 6d |] [cmd a|rgs]", m|
|00005de0| 79 6e 61 6d 65 29 3b 0a | 09 20 20 20 20 7d 0a 09 |yname);.|. }..|
|00005df0| 7d 20 65 6c 73 65 20 62 | 72 65 61 6b 3b 0a 20 20 |} else b|reak;. |
|00005e00| 20 20 7d 0a 20 20 20 20 | 69 66 20 28 6e 66 6c 61 | }. |if (nfla|
|00005e10| 67 20 26 26 20 66 66 6c | 61 67 29 0a 09 4d 73 67 |g && ffl|ag)..Msg|
|00005e20| 20 28 30 2c 20 22 2d 66 | 20 61 6e 64 20 2d 6e 20 | (0, "-f| and -n |
|00005e30| 61 72 65 20 63 6f 6e 66 | 6c 69 63 74 69 6e 67 20 |are conf|licting |
|00005e40| 6f 70 74 69 6f 6e 73 2e | 22 29 3b 0a 20 20 20 20 |options.|");. |
|00005e50| 69 66 20 28 28 53 68 65 | 6c 6c 50 72 6f 67 20 3d |if ((She|llProg =|
|00005e60| 20 67 65 74 65 6e 76 20 | 28 22 53 48 45 4c 4c 22 | getenv |("SHELL"|
|00005e70| 29 29 20 3d 3d 20 30 29 | 0a 09 53 68 65 6c 6c 50 |)) == 0)|..ShellP|
|00005e80| 72 6f 67 20 3d 20 44 65 | 66 61 75 6c 74 53 68 65 |rog = De|faultShe|
|00005e90| 6c 6c 3b 0a 20 20 20 20 | 53 68 65 6c 6c 41 72 67 |ll;. |ShellArg|
|00005ea0| 73 5b 30 5d 20 3d 20 53 | 68 65 6c 6c 50 72 6f 67 |s[0] = S|hellProg|
|00005eb0| 3b 0a 20 20 20 20 69 66 | 20 28 61 63 20 3d 3d 20 |;. if| (ac == |
|00005ec0| 30 29 20 7b 0a 09 61 63 | 20 3d 20 31 3b 0a 09 61 |0) {..ac| = 1;..a|
|00005ed0| 76 20 3d 20 53 68 65 6c | 6c 41 72 67 73 3b 0a 20 |v = Shel|lArgs;. |
|00005ee0| 20 20 20 7d 0a 20 20 20 | 20 69 66 20 28 47 65 74 | }. | if (Get|
|00005ef0| 53 6f 63 6b 4e 61 6d 65 | 20 28 29 29 20 7b 0a 09 |SockName| ()) {..|
|00005f00| 2f 2a 20 43 6c 69 65 6e | 74 20 2a 2f 0a 09 73 20 |/* Clien|t */..s |
|00005f10| 3d 20 4d 61 6b 65 43 6c | 69 65 6e 74 53 6f 63 6b |= MakeCl|ientSock|
|00005f20| 65 74 20 28 29 3b 0a 09 | 53 65 6e 64 43 72 65 61 |et ();..|SendCrea|
|00005f30| 74 65 4d 73 67 20 28 73 | 2c 20 61 63 2c 20 61 76 |teMsg (s|, ac, av|
|00005f40| 2c 20 61 66 6c 61 67 29 | 3b 0a 09 63 6c 6f 73 65 |, aflag)|;..close|
|00005f50| 20 28 73 29 3b 0a 09 65 | 78 69 74 20 28 30 29 3b | (s);..e|xit (0);|
|00005f60| 0a 20 20 20 20 7d 0a 20 | 20 20 20 28 76 6f 69 64 |. }. | (void|
|00005f70| 29 20 67 65 74 68 6f 73 | 74 6e 61 6d 65 20 28 48 |) gethos|tname (H|
|00005f80| 6f 73 74 4e 61 6d 65 2c | 20 4d 41 58 53 54 52 29 |ostName,| MAXSTR)|
|00005f90| 3b 0a 20 20 20 20 48 6f | 73 74 4e 61 6d 65 5b 4d |;. Ho|stName[M|
|00005fa0| 41 58 53 54 52 2d 31 5d | 20 3d 20 27 5c 30 27 3b |AXSTR-1]| = '\0';|
|00005fb0| 0a 20 20 20 20 69 66 20 | 28 61 70 20 3d 20 69 6e |. if |(ap = in|
|00005fc0| 64 65 78 20 28 48 6f 73 | 74 4e 61 6d 65 2c 20 27 |dex (Hos|tName, '|
|00005fd0| 2e 27 29 29 0a 09 2a 61 | 70 20 3d 20 27 5c 30 27 |.'))..*a|p = '\0'|
|00005fe0| 3b 0a 20 20 20 20 73 20 | 3d 20 4d 61 6b 65 53 65 |;. s |= MakeSe|
|00005ff0| 72 76 65 72 53 6f 63 6b | 65 74 20 28 29 3b 0a 20 |rverSock|et ();. |
|00006000| 20 20 20 49 6e 69 74 54 | 65 72 6d 20 28 29 3b 0a | InitT|erm ();.|
|00006010| 20 20 20 20 69 66 20 28 | 66 66 6c 61 67 29 0a 09 | if (|fflag)..|
|00006020| 66 6c 6f 77 63 74 6c 20 | 3d 20 31 3b 0a 20 20 20 |flowctl |= 1;. |
|00006030| 20 65 6c 73 65 20 69 66 | 20 28 6e 66 6c 61 67 29 | else if| (nflag)|
|00006040| 0a 09 66 6c 6f 77 63 74 | 6c 20 3d 20 30 3b 0a 20 |..flowct|l = 0;. |
|00006050| 20 20 20 4d 61 6b 65 4e | 65 77 45 6e 76 20 28 29 | MakeN|ewEnv ()|
|00006060| 3b 0a 20 20 20 20 47 65 | 74 54 54 59 20 28 30 2c |;. Ge|tTTY (0,|
|00006070| 20 26 4f 6c 64 4d 6f 64 | 65 29 3b 0a 20 20 20 20 | &OldMod|e);. |
|00006080| 6f 73 70 65 65 64 20 3d | 20 28 73 68 6f 72 74 29 |ospeed =| (short)|
|00006090| 4f 6c 64 4d 6f 64 65 2e | 6d 5f 74 74 79 62 2e 73 |OldMode.|m_ttyb.s|
|000060a0| 67 5f 6f 73 70 65 65 64 | 3b 0a 20 20 20 20 49 6e |g_ospeed|;. In|
|000060b0| 69 74 55 74 6d 70 20 28 | 29 3b 0a 23 69 66 64 65 |itUtmp (|);.#ifde|
|000060c0| 66 20 4c 4f 41 44 41 56 | 0a 20 20 20 20 49 6e 69 |f LOADAV|. Ini|
|000060d0| 74 4b 6d 65 6d 20 28 29 | 3b 0a 23 65 6e 64 69 66 |tKmem ()|;.#endif|
|000060e0| 0a 20 20 20 20 73 69 67 | 6e 61 6c 20 28 53 49 47 |. sig|nal (SIG|
|000060f0| 48 55 50 2c 20 46 69 6e | 69 74 29 3b 0a 20 20 20 |HUP, Fin|it);. |
|00006100| 20 73 69 67 6e 61 6c 20 | 28 53 49 47 49 4e 54 2c | signal |(SIGINT,|
|00006110| 20 46 69 6e 69 74 29 3b | 0a 20 20 20 20 73 69 67 | Finit);|. sig|
|00006120| 6e 61 6c 20 28 53 49 47 | 51 55 49 54 2c 20 46 69 |nal (SIG|QUIT, Fi|
|00006130| 6e 69 74 29 3b 0a 20 20 | 20 20 73 69 67 6e 61 6c |nit);. | signal|
|00006140| 20 28 53 49 47 54 45 52 | 4d 2c 20 46 69 6e 69 74 | (SIGTER|M, Finit|
|00006150| 29 3b 0a 20 20 20 20 49 | 6e 69 74 4b 65 79 74 61 |);. I|nitKeyta|
|00006160| 62 20 28 29 3b 0a 20 20 | 20 20 73 70 72 69 6e 74 |b ();. | sprint|
|00006170| 66 20 28 72 63 2c 20 22 | 25 2e 2a 73 2f 2e 73 63 |f (rc, "|%.*s/.sc|
|00006180| 72 65 65 6e 72 63 22 2c | 20 32 34 35 2c 20 68 6f |reenrc",| 245, ho|
|00006190| 6d 65 29 3b 0a 20 20 20 | 20 52 65 61 64 52 63 20 |me);. | ReadRc |
|000061a0| 28 72 63 29 3b 0a 20 20 | 20 20 69 66 20 28 28 6e |(rc);. | if ((n|
|000061b0| 20 3d 20 4d 61 6b 65 57 | 69 6e 64 6f 77 20 28 2a | = MakeW|indow (*|
|000061c0| 61 76 2c 20 61 76 2c 20 | 61 66 6c 61 67 2c 20 30 |av, av, |aflag, 0|
|000061d0| 2c 20 28 63 68 61 72 20 | 2a 29 30 29 29 20 3d 3d |, (char |*)0)) ==|
|000061e0| 20 2d 31 29 20 7b 0a 09 | 53 65 74 54 54 59 20 28 | -1) {..|SetTTY (|
|000061f0| 30 2c 20 26 4f 6c 64 4d | 6f 64 65 29 3b 0a 09 46 |0, &OldM|ode);..F|
|00006200| 69 6e 69 74 54 65 72 6d | 20 28 29 3b 0a 09 65 78 |initTerm| ();..ex|
|00006210| 69 74 20 28 31 29 3b 0a | 20 20 20 20 7d 0a 20 20 |it (1);.| }. |
|00006220| 20 20 53 65 74 43 75 72 | 72 57 69 6e 64 6f 77 20 | SetCur|rWindow |
|00006230| 28 6e 29 3b 0a 20 20 20 | 20 48 61 73 57 69 6e 64 |(n);. | HasWind|
|00006240| 6f 77 20 3d 20 31 3b 0a | 20 20 20 20 53 65 74 4d |ow = 1;.| SetM|
|00006250| 6f 64 65 20 28 26 4f 6c | 64 4d 6f 64 65 2c 20 26 |ode (&Ol|dMode, &|
|00006260| 4e 65 77 4d 6f 64 65 29 | 3b 0a 20 20 20 20 53 65 |NewMode)|;. Se|
|00006270| 74 54 54 59 20 28 30 2c | 20 26 4e 65 77 4d 6f 64 |tTTY (0,| &NewMod|
|00006280| 65 29 3b 0a 20 20 20 20 | 73 69 67 6e 61 6c 20 28 |e);. |signal (|
|00006290| 53 49 47 43 48 4c 44 2c | 20 53 69 67 43 68 6c 64 |SIGCHLD,| SigChld|
|000062a0| 29 3b 0a 20 20 20 20 74 | 76 2e 74 76 5f 75 73 65 |);. t|v.tv_use|
|000062b0| 63 20 3d 20 30 3b 0a 20 | 20 20 20 77 68 69 6c 65 |c = 0;. | while|
|000062c0| 20 28 31 29 20 7b 0a 09 | 69 66 20 28 73 74 61 74 | (1) {..|if (stat|
|000062d0| 75 73 29 20 7b 0a 09 20 | 20 20 20 74 69 6d 65 20 |us) {.. | time |
|000062e0| 28 26 6e 6f 77 29 3b 0a | 09 20 20 20 20 69 66 20 |(&now);.|. if |
|000062f0| 28 6e 6f 77 20 2d 20 54 | 69 6d 65 44 69 73 70 6c |(now - T|imeDispl|
|00006300| 61 79 65 64 20 3c 20 4d | 53 47 57 41 49 54 29 20 |ayed < M|SGWAIT) |
|00006310| 7b 0a 09 09 74 76 2e 74 | 76 5f 73 65 63 20 3d 20 |{...tv.t|v_sec = |
|00006320| 4d 53 47 57 41 49 54 20 | 2d 20 28 6e 6f 77 20 2d |MSGWAIT |- (now -|
|00006330| 20 54 69 6d 65 44 69 73 | 70 6c 61 79 65 64 29 3b | TimeDis|played);|
|00006340| 0a 09 20 20 20 20 7d 20 | 65 6c 73 65 20 52 65 6d |.. } |else Rem|
|00006350| 6f 76 65 53 74 61 74 75 | 73 20 28 63 75 72 72 29 |oveStatu|s (curr)|
|00006360| 3b 0a 09 7d 0a 09 72 20 | 3d 20 30 3b 0a 09 77 20 |;..}..r |= 0;..w |
|00006370| 3d 20 30 3b 0a 09 69 66 | 20 28 69 6e 6c 65 6e 29 |= 0;..if| (inlen)|
|00006380| 0a 09 20 20 20 20 77 20 | 7c 3d 20 31 20 3c 3c 20 |.. w ||= 1 << |
|00006390| 63 75 72 72 2d 3e 70 74 | 79 66 64 3b 0a 09 65 6c |curr->pt|yfd;..el|
|000063a0| 73 65 0a 09 20 20 20 20 | 72 20 7c 3d 20 31 20 3c |se.. |r |= 1 <|
|000063b0| 3c 20 30 3b 0a 09 66 6f | 72 20 28 70 70 20 3d 20 |< 0;..fo|r (pp = |
|000063c0| 77 74 61 62 3b 20 70 70 | 20 3c 20 77 74 61 62 2b |wtab; pp| < wtab+|
|000063d0| 4d 41 58 57 49 4e 3b 20 | 2b 2b 70 70 29 20 7b 0a |MAXWIN; |++pp) {.|
|000063e0| 09 20 20 20 20 69 66 20 | 28 21 28 70 20 3d 20 2a |. if |(!(p = *|
|000063f0| 70 70 29 29 0a 09 09 63 | 6f 6e 74 69 6e 75 65 3b |pp))...c|ontinue;|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.