home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume26 / pcomm-2.0.2 / part04 < prev    next >
SHell self-extracting ARchive  |  1993-04-13  |  98.8 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 SHell self-extracting ARchive (archive/shar) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/329 Shell Archive Format default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 73 6f 75 72 63 65 73 | 2e 75 6e 69 78 0a 46 72 |.sources|.unix.Fr|
|00000020| 6f 6d 3a 20 66 74 68 6f | 6f 64 21 65 67 72 61 79 |om: ftho|od!egray|
|00000030| 40 75 78 63 2e 63 73 6f | 2e 75 69 75 63 2e 65 64 |@uxc.cso|.uiuc.ed|
|00000040| 75 20 28 45 6d 6d 65 74 | 20 47 72 61 79 29 0a 53 |u (Emmet| Gray).S|
|00000050| 75 62 6a 65 63 74 3a 20 | 76 32 36 69 31 35 36 3a |ubject: |v26i156:|
|00000060| 20 70 63 6f 6d 6d 2d 32 | 2e 30 2e 32 20 2d 20 61 | pcomm-2|.0.2 - a|
|00000070| 20 73 65 72 69 61 6c 20 | 63 6f 6d 6d 75 6e 69 63 | serial |communic|
|00000080| 61 74 69 6f 6e 73 20 70 | 72 6f 67 72 61 6d 20 28 |ations p|rogram (|
|00000090| 63 6c 6f 6e 65 20 6f 66 | 20 50 72 6f 43 6f 6d 6d |clone of| ProComm|
|000000a0| 29 2c 20 50 61 72 74 30 | 34 2f 30 36 0a 53 65 6e |), Part0|4/06.Sen|
|000000b0| 64 65 72 3a 20 75 6e 69 | 78 2d 73 6f 75 72 63 65 |der: uni|x-source|
|000000c0| 73 2d 6d 6f 64 65 72 61 | 74 6f 72 40 76 69 78 2e |s-modera|tor@vix.|
|000000d0| 63 6f 6d 0a 41 70 70 72 | 6f 76 65 64 3a 20 70 61 |com.Appr|oved: pa|
|000000e0| 75 6c 40 76 69 78 2e 63 | 6f 6d 0a 0a 53 75 62 6d |ul@vix.c|om..Subm|
|000000f0| 69 74 74 65 64 2d 42 79 | 3a 20 66 74 68 6f 6f 64 |itted-By|: fthood|
|00000100| 21 65 67 72 61 79 40 75 | 78 63 2e 63 73 6f 2e 75 |!egray@u|xc.cso.u|
|00000110| 69 75 63 2e 65 64 75 20 | 28 45 6d 6d 65 74 20 47 |iuc.edu |(Emmet G|
|00000120| 72 61 79 29 0a 50 6f 73 | 74 69 6e 67 2d 4e 75 6d |ray).Pos|ting-Num|
|00000130| 62 65 72 3a 20 56 6f 6c | 75 6d 65 20 32 36 2c 20 |ber: Vol|ume 26, |
|00000140| 49 73 73 75 65 20 31 35 | 36 0a 41 72 63 68 69 76 |Issue 15|6.Archiv|
|00000150| 65 2d 4e 61 6d 65 3a 20 | 70 63 6f 6d 6d 2d 32 2e |e-Name: |pcomm-2.|
|00000160| 30 2e 32 2f 70 61 72 74 | 30 34 0a 0a 23 21 20 2f |0.2/part|04..#! /|
|00000170| 62 69 6e 2f 73 68 0a 23 | 20 54 68 69 73 20 69 73 |bin/sh.#| This is|
|00000180| 20 61 20 73 68 65 6c 6c | 20 61 72 63 68 69 76 65 | a shell| archive|
|00000190| 2e 20 20 52 65 6d 6f 76 | 65 20 61 6e 79 74 68 69 |. Remov|e anythi|
|000001a0| 6e 67 20 62 65 66 6f 72 | 65 20 74 68 69 73 20 6c |ng befor|e this l|
|000001b0| 69 6e 65 2c 20 74 68 65 | 6e 20 75 6e 70 61 63 6b |ine, the|n unpack|
|000001c0| 0a 23 20 69 74 20 62 79 | 20 73 61 76 69 6e 67 20 |.# it by| saving |
|000001d0| 69 74 20 69 6e 74 6f 20 | 61 20 66 69 6c 65 20 61 |it into |a file a|
|000001e0| 6e 64 20 74 79 70 69 6e | 67 20 22 73 68 20 66 69 |nd typin|g "sh fi|
|000001f0| 6c 65 22 2e 20 20 54 6f | 20 6f 76 65 72 77 72 69 |le". To| overwri|
|00000200| 74 65 20 65 78 69 73 74 | 69 6e 67 0a 23 20 66 69 |te exist|ing.# fi|
|00000210| 6c 65 73 2c 20 74 79 70 | 65 20 22 73 68 20 66 69 |les, typ|e "sh fi|
|00000220| 6c 65 20 2d 63 22 2e 20 | 20 59 6f 75 20 63 61 6e |le -c". | You can|
|00000230| 20 61 6c 73 6f 20 66 65 | 65 64 20 74 68 69 73 20 | also fe|ed this |
|00000240| 61 73 20 73 74 61 6e 64 | 61 72 64 20 69 6e 70 75 |as stand|ard inpu|
|00000250| 74 20 76 69 61 0a 23 20 | 75 6e 73 68 61 72 2c 20 |t via.# |unshar, |
|00000260| 6f 72 20 62 79 20 74 79 | 70 69 6e 67 20 22 73 68 |or by ty|ping "sh|
|00000270| 20 3c 66 69 6c 65 22 2c | 20 65 2e 67 2e 2e 20 20 | <file",| e.g.. |
|00000280| 49 66 20 74 68 69 73 20 | 61 72 63 68 69 76 65 20 |If this |archive |
|00000290| 69 73 20 63 6f 6d 70 6c | 65 74 65 2c 20 79 6f 75 |is compl|ete, you|
|000002a0| 0a 23 20 77 69 6c 6c 20 | 73 65 65 20 74 68 65 20 |.# will |see the |
|000002b0| 66 6f 6c 6c 6f 77 69 6e | 67 20 6d 65 73 73 61 67 |followin|g messag|
|000002c0| 65 20 61 74 20 74 68 65 | 20 65 6e 64 3a 0a 23 09 |e at the| end:.#.|
|000002d0| 09 22 45 6e 64 20 6f 66 | 20 61 72 63 68 69 76 65 |."End of| archive|
|000002e0| 20 34 20 28 6f 66 20 36 | 29 2e 22 0a 23 20 43 6f | 4 (of 6|).".# Co|
|000002f0| 6e 74 65 6e 74 73 3a 20 | 20 50 63 6f 6d 6d 2e 31 |ntents: | Pcomm.1|
|00000300| 20 63 75 72 73 65 73 2e | 63 20 64 69 5f 77 69 6e | curses.|c di_win|
|00000310| 2e 63 20 64 69 61 6c 2e | 63 20 6d 5f 6c 69 62 2e |.c dial.|c m_lib.|
|00000320| 63 20 6d 61 69 6e 2e 63 | 20 76 63 73 2e 63 0a 23 |c main.c| vcs.c.#|
|00000330| 20 20 20 78 5f 72 63 76 | 2e 63 20 78 5f 73 65 6e | x_rcv|.c x_sen|
|00000340| 64 2e 63 0a 23 20 57 72 | 61 70 70 65 64 20 62 79 |d.c.# Wr|apped by|
|00000350| 20 76 69 78 69 65 40 67 | 77 2e 68 6f 6d 65 2e 76 | vixie@g|w.home.v|
|00000360| 69 78 2e 63 6f 6d 20 6f | 6e 20 57 65 64 20 41 70 |ix.com o|n Wed Ap|
|00000370| 72 20 31 34 20 30 30 3a | 33 38 3a 34 33 20 31 39 |r 14 00:|38:43 19|
|00000380| 39 33 0a 50 41 54 48 3d | 2f 62 69 6e 3a 2f 75 73 |93.PATH=|/bin:/us|
|00000390| 72 2f 62 69 6e 3a 2f 75 | 73 72 2f 75 63 62 20 3b |r/bin:/u|sr/ucb ;|
|000003a0| 20 65 78 70 6f 72 74 20 | 50 41 54 48 0a 69 66 20 | export |PATH.if |
|000003b0| 74 65 73 74 20 2d 66 20 | 27 50 63 6f 6d 6d 2e 31 |test -f |'Pcomm.1|
|000003c0| 27 20 2d 61 20 22 24 7b | 31 7d 22 20 21 3d 20 22 |' -a "${|1}" != "|
|000003d0| 2d 63 22 20 3b 20 74 68 | 65 6e 20 0a 20 20 65 63 |-c" ; th|en . ec|
|000003e0| 68 6f 20 73 68 61 72 3a | 20 57 69 6c 6c 20 6e 6f |ho shar:| Will no|
|000003f0| 74 20 63 6c 6f 62 62 65 | 72 20 65 78 69 73 74 69 |t clobbe|r existi|
|00000400| 6e 67 20 66 69 6c 65 20 | 5c 22 27 50 63 6f 6d 6d |ng file |\"'Pcomm|
|00000410| 2e 31 27 5c 22 0a 65 6c | 73 65 0a 65 63 68 6f 20 |.1'\".el|se.echo |
|00000420| 73 68 61 72 3a 20 45 78 | 74 72 61 63 74 69 6e 67 |shar: Ex|tracting|
|00000430| 20 5c 22 27 50 63 6f 6d | 6d 2e 31 27 5c 22 20 5c | \"'Pcom|m.1'\" \|
|00000440| 28 39 36 35 37 20 63 68 | 61 72 61 63 74 65 72 73 |(9657 ch|aracters|
|00000450| 5c 29 0a 73 65 64 20 22 | 73 2f 5e 58 2f 2f 22 20 |\).sed "|s/^X//" |
|00000460| 3e 27 50 63 6f 6d 6d 2e | 31 27 20 3c 3c 27 45 4e |>'Pcomm.|1' <<'EN|
|00000470| 44 5f 4f 46 5f 46 49 4c | 45 27 0a 58 2e 5c 22 20 |D_OF_FIL|E'.X.\" |
|00000480| 75 73 65 20 74 62 6c 20 | 61 6e 64 20 74 68 65 20 |use tbl |and the |
|00000490| 6d 61 6e 20 6d 61 63 72 | 6f 20 70 61 63 6b 61 67 |man macr|o packag|
|000004a0| 65 0a 58 2e 69 66 20 6e | 20 2e 64 73 20 72 71 20 |e.X.if n| .ds rq |
|000004b0| 22 22 0a 58 2e 65 6c 20 | 2e 64 73 20 72 71 20 27 |"".X.el |.ds rq '|
|000004c0| 27 0a 58 2e 69 66 20 6e | 20 2e 64 73 20 6c 71 20 |'.X.if n| .ds lq |
|000004d0| 22 22 0a 58 2e 65 6c 20 | 2e 64 73 20 6c 71 20 60 |"".X.el |.ds lq `|
|000004e0| 60 0a 58 2e 54 48 20 70 | 63 6f 6d 6d 20 4c 20 0a |`.X.TH p|comm L .|
|000004f0| 58 2e 53 48 20 4e 41 4d | 45 0a 70 63 6f 6d 6d 20 |X.SH NAM|E.pcomm |
|00000500| 5c 2d 20 61 20 74 65 6c | 65 63 6f 6d 6d 75 6e 69 |\- a tel|ecommuni|
|00000510| 63 61 74 69 6f 6e 20 70 | 72 6f 67 72 61 6d 0a 58 |cation p|rogram.X|
|00000520| 2e 53 48 20 53 59 4e 4f | 50 53 49 53 0a 58 2e 42 |.SH SYNO|PSIS.X.B|
|00000530| 20 70 63 6f 6d 6d 0a 58 | 5b 0a 58 2e 42 20 5c 2d | pcomm.X|[.X.B \-|
|00000540| 64 0a 64 69 72 65 63 74 | 6f 72 79 20 5d 20 5b 0a |d.direct|ory ] [.|
|00000550| 58 2e 42 20 5c 2d 66 0a | 73 79 73 74 65 6d 20 6e |X.B \-f.|system n|
|00000560| 61 6d 65 20 5d 20 5b 0a | 58 2e 42 20 5c 2d 61 0a |ame ] [.|X.B \-a.|
|00000570| 61 75 78 69 6c 69 61 72 | 79 20 66 69 6c 65 20 5d |auxiliar|y file ]|
|00000580| 20 5b 0a 58 2e 42 20 5c | 2d 65 0a 58 7c 0a 58 2e | [.X.B \|-e.X|.X.|
|00000590| 42 20 6f 0a 58 7c 0a 58 | 2e 42 20 6e 0a 58 5d 20 |B o.X|.X|.B n.X] |
|000005a0| 5b 0a 58 2e 42 20 2d 77 | 0a 77 6f 72 64 20 6c 65 |[.X.B -w|.word le|
|000005b0| 6e 67 74 68 20 5d 20 5b | 0a 58 2e 42 20 2d 62 0a |ngth ] [|.X.B -b.|
|000005c0| 62 61 75 64 20 72 61 74 | 65 20 5d 20 5b 0a 58 2e |baud rat|e ] [.X.|
|000005d0| 42 20 2d 70 0a 70 68 6f | 6e 65 20 6e 75 6d 62 65 |B -p.pho|ne numbe|
|000005e0| 72 20 5d 0a 58 2e 53 48 | 20 44 45 53 43 52 49 50 |r ].X.SH| DESCRIP|
|000005f0| 54 49 4f 4e 0a 58 2e 49 | 20 50 63 6f 6d 6d 0a 69 |TION.X.I| Pcomm.i|
|00000600| 73 20 61 20 70 75 62 6c | 69 63 20 64 6f 6d 61 69 |s a publ|ic domai|
|00000610| 6e 20 74 65 6c 65 63 6f | 6d 6d 75 6e 69 63 61 74 |n teleco|mmunicat|
|00000620| 69 6f 6e 20 70 72 6f 67 | 72 61 6d 20 66 6f 72 20 |ion prog|ram for |
|00000630| 55 6e 69 78 20 74 68 61 | 74 20 69 73 20 64 65 73 |Unix tha|t is des|
|00000640| 69 67 6e 65 64 0a 74 6f | 20 6f 70 65 72 61 74 65 |igned.to| operate|
|00000650| 20 73 69 6d 69 6c 61 72 | 6c 79 20 74 6f 20 74 68 | similar|ly to th|
|00000660| 65 20 4d 53 44 4f 53 20 | 70 72 6f 67 72 61 6d 2c |e MSDOS |program,|
|00000670| 20 50 72 6f 43 6f 6d 6d | 2e 20 20 50 72 6f 43 6f | ProComm|. ProCo|
|00000680| 6d 6d 20 28 54 4d 29 20 | 69 73 0a 63 6f 70 79 72 |mm (TM) |is.copyr|
|00000690| 69 67 68 74 65 64 20 62 | 79 20 44 61 74 61 73 74 |ighted b|y Datast|
|000006a0| 6f 72 6d 20 54 65 63 68 | 6e 6f 6c 6f 67 69 65 73 |orm Tech|nologies|
|000006b0| 2c 20 49 6e 63 2e 0a 58 | 2e 50 50 0a 54 68 65 0a |, Inc..X|.PP.The.|
|000006c0| 58 2e 49 20 5c 2d 64 0a | 6f 70 74 69 6f 6e 20 69 |X.I \-d.|option i|
|000006d0| 73 20 75 73 65 64 20 74 | 6f 20 73 70 65 63 69 66 |s used t|o specif|
|000006e0| 79 20 61 6e 20 61 64 64 | 69 74 69 6f 6e 61 6c 20 |y an add|itional |
|000006f0| 70 61 74 68 20 74 6f 20 | 73 65 61 72 63 68 20 66 |path to |search f|
|00000700| 6f 72 20 74 68 65 20 50 | 63 6f 6d 6d 0a 73 75 70 |or the P|comm.sup|
|00000710| 70 6f 72 74 20 66 69 6c | 65 73 2e 0a 58 2e 50 50 |port fil|es..X.PP|
|00000720| 0a 54 68 65 0a 58 2e 49 | 20 5c 2d 66 0a 6f 70 74 |.The.X.I| \-f.opt|
|00000730| 69 6f 6e 20 69 73 20 75 | 73 65 64 20 74 6f 20 73 |ion is u|sed to s|
|00000740| 70 65 63 69 66 79 20 61 | 75 74 6f 6d 61 74 69 63 |pecify a|utomatic|
|00000750| 20 64 69 61 6c 69 6e 67 | 20 6f 66 20 61 6e 20 65 | dialing| of an e|
|00000760| 6e 74 72 79 20 69 6e 20 | 74 68 65 20 64 69 61 6c |ntry in |the dial|
|00000770| 69 6e 67 0a 64 69 72 65 | 63 74 6f 72 79 2e 20 20 |ing.dire|ctory. |
|00000780| 54 68 65 0a 58 2e 49 20 | 6e 61 6d 65 0a 66 69 65 |The.X.I |name.fie|
|00000790| 6c 64 20 69 6e 20 74 68 | 65 20 64 69 61 6c 69 6e |ld in th|e dialin|
|000007a0| 67 20 64 69 72 65 63 74 | 6f 72 79 20 69 73 20 63 |g direct|ory is c|
|000007b0| 68 65 63 6b 65 64 20 61 | 67 61 69 6e 73 74 20 74 |hecked a|gainst t|
|000007c0| 68 65 20 73 74 72 69 6e | 67 20 67 69 76 65 6e 20 |he strin|g given |
|000007d0| 6f 6e 0a 74 68 65 20 63 | 6f 6d 6d 61 6e 64 20 6c |on.the c|ommand l|
|000007e0| 69 6e 65 2e 20 20 49 66 | 20 61 20 6d 61 74 63 68 |ine. If| a match|
|000007f0| 20 69 73 20 66 6f 75 6e | 64 2c 20 74 68 61 74 20 | is foun|d, that |
|00000800| 65 6e 74 72 79 20 69 73 | 20 61 75 74 6f 6d 61 74 |entry is| automat|
|00000810| 69 63 61 6c 6c 79 0a 64 | 69 61 6c 65 64 2e 0a 58 |ically.d|ialed..X|
|00000820| 2e 50 50 0a 54 68 65 0a | 58 2e 49 20 5c 2d 61 0a |.PP.The.|X.I \-a.|
|00000830| 6f 70 74 69 6f 6e 20 69 | 73 20 75 73 65 64 20 74 |option i|s used t|
|00000840| 6f 20 73 70 65 63 69 66 | 79 20 61 20 73 63 72 69 |o specif|y a scri|
|00000850| 70 74 20 66 69 6c 65 20 | 74 6f 20 62 65 20 5c 2a |pt file |to be \*|
|00000860| 28 6c 71 70 6c 61 79 65 | 64 5c 2a 28 72 71 2c 20 |(lqplaye|d\*(rq, |
|00000870| 74 68 65 20 54 54 59 0a | 74 6f 20 62 65 20 75 73 |the TTY.|to be us|
|00000880| 65 64 2c 20 6f 72 20 74 | 68 65 20 6d 6f 64 65 6d |ed, or t|he modem|
|00000890| 20 74 6f 20 62 65 20 75 | 73 65 64 2e 0a 58 2e 50 | to be u|sed..X.P|
|000008a0| 50 0a 54 68 65 20 72 65 | 6d 61 69 6e 69 6e 67 20 |P.The re|maining |
|000008b0| 6f 70 74 69 6f 6e 73 20 | 61 72 65 20 75 73 65 64 |options |are used|
|000008c0| 20 74 6f 20 73 65 74 20 | 74 68 65 20 70 61 72 69 | to set |the pari|
|000008d0| 74 79 2c 20 64 61 74 61 | 20 62 69 74 73 2c 20 62 |ty, data| bits, b|
|000008e0| 61 75 64 20 72 61 74 65 | 2c 0a 61 6e 64 20 74 65 |aud rate|,.and te|
|000008f0| 6c 65 70 68 6f 6e 65 20 | 6e 75 6d 62 65 72 20 66 |lephone |number f|
|00000900| 72 6f 6d 20 74 68 65 20 | 63 6f 6d 6d 61 6e 64 20 |rom the |command |
|00000910| 6c 69 6e 65 2e 20 20 54 | 68 65 20 6e 6f 72 6d 61 |line. T|he norma|
|00000920| 6c 20 6d 65 74 68 6f 64 | 20 6f 66 0a 64 69 61 6c |l method| of.dial|
|00000930| 69 6e 67 20 69 73 20 66 | 72 6f 6d 20 74 68 65 20 |ing is f|rom the |
|00000940| 64 69 61 6c 69 6e 67 20 | 64 69 72 65 63 74 6f 72 |dialing |director|
|00000950| 79 2e 0a 58 2e 50 50 0a | 58 2e 52 53 20 35 0a 58 |y..X.PP.|X.RS 5.X|
|00000960| 2e 42 20 5c 2d 65 0a 58 | 09 53 65 74 20 74 68 65 |.B \-e.X|.Set the|
|00000970| 20 70 61 72 69 74 79 20 | 74 6f 20 65 76 65 6e 2e | parity |to even.|
|00000980| 0a 58 2e 62 72 0a 58 2e | 42 20 5c 2d 6f 0a 58 09 |.X.br.X.|B \-o.X.|
|00000990| 53 65 74 20 74 68 65 20 | 70 61 72 69 74 79 20 74 |Set the |parity t|
|000009a0| 6f 20 6f 64 64 2e 0a 58 | 2e 62 72 0a 58 2e 42 20 |o odd..X|.br.X.B |
|000009b0| 5c 2d 6e 0a 58 09 53 65 | 74 20 74 68 65 20 70 61 |\-n.X.Se|t the pa|
|000009c0| 72 69 74 79 20 74 6f 20 | 6e 6f 6e 65 2e 0a 58 2e |rity to |none..X.|
|000009d0| 62 72 0a 58 2e 42 20 5c | 2d 77 0a 58 09 53 65 74 |br.X.B \|-w.X.Set|
|000009e0| 20 74 68 65 20 77 6f 72 | 64 20 6c 65 6e 67 74 68 | the wor|d length|
|000009f0| 20 28 6e 75 6d 62 65 72 | 20 6f 66 20 64 61 74 61 | (number| of data|
|00000a00| 20 62 69 74 73 29 2e 0a | 58 2e 62 72 0a 58 2e 42 | bits)..|X.br.X.B|
|00000a10| 20 5c 2d 62 0a 58 09 53 | 65 74 20 74 68 65 20 62 | \-b.X.S|et the b|
|00000a20| 61 75 64 20 72 61 74 65 | 2e 0a 58 2e 62 72 0a 58 |aud rate|..X.br.X|
|00000a30| 2e 42 20 5c 2d 70 0a 58 | 09 44 69 61 6c 20 74 68 |.B \-p.X|.Dial th|
|00000a40| 69 73 20 70 68 6f 6e 65 | 20 6e 75 6d 62 65 72 2e |is phone| number.|
|00000a50| 0a 58 2e 52 45 0a 58 2e | 50 50 0a 57 68 65 6e 65 |.X.RE.X.|PP.Whene|
|00000a60| 76 65 72 0a 58 2e 49 20 | 50 63 6f 6d 6d 0a 69 73 |ver.X.I |Pcomm.is|
|00000a70| 20 69 6e 20 74 68 65 20 | 63 6f 6d 6d 61 6e 64 20 | in the |command |
|00000a80| 6d 6f 64 65 2c 20 61 20 | 73 74 61 74 75 73 20 6c |mode, a |status l|
|00000a90| 69 6e 65 20 69 73 20 64 | 69 73 70 6c 61 79 65 64 |ine is d|isplayed|
|00000aa0| 20 61 74 20 74 68 65 20 | 62 6f 74 74 6f 6d 20 6f | at the |bottom o|
|00000ab0| 66 20 74 68 65 0a 73 63 | 72 65 65 6e 2e 20 20 54 |f the.sc|reen. T|
|00000ac0| 68 65 20 65 69 67 68 74 | 20 66 69 65 6c 64 73 20 |he eight| fields |
|00000ad0| 6f 66 20 74 68 65 20 73 | 74 61 74 75 73 20 6c 69 |of the s|tatus li|
|00000ae0| 6e 65 20 61 72 65 3a 0a | 58 2e 50 50 0a 58 2e 52 |ne are:.|X.PP.X.R|
|00000af0| 53 20 35 0a 58 2e 6e 66 | 0a 58 5c 28 62 75 20 68 |S 5.X.nf|.X\(bu h|
|00000b00| 65 6c 70 20 73 63 72 65 | 65 6e 20 63 6f 6d 6d 61 |elp scre|en comma|
|00000b10| 6e 64 20 28 6f 72 20 61 | 20 74 65 6d 70 6f 72 61 |nd (or a| tempora|
|00000b20| 72 79 20 6d 65 73 73 61 | 67 65 29 0a 58 5c 28 62 |ry messa|ge).X\(b|
|00000b30| 75 20 6e 61 6d 65 20 6f | 66 20 74 68 65 20 54 54 |u name o|f the TT|
|00000b40| 59 20 64 65 76 69 63 65 | 20 69 6e 20 75 73 65 0a |Y device| in use.|
|00000b50| 58 5c 28 62 75 20 64 75 | 70 6c 65 78 20 6d 6f 64 |X\(bu du|plex mod|
|00000b60| 65 20 28 46 44 58 20 3d | 20 66 75 6c 6c 20 64 75 |e (FDX =| full du|
|00000b70| 70 6c 65 78 2c 20 48 44 | 58 20 3d 20 68 61 6c 66 |plex, HD|X = half|
|00000b80| 20 64 75 70 6c 65 78 29 | 0a 58 5c 28 62 75 20 63 | duplex)|.X\(bu c|
|00000b90| 75 72 72 65 6e 74 20 6c | 69 6e 65 20 73 65 74 74 |urrent l|ine sett|
|00000ba0| 69 6e 67 73 0a 58 5c 28 | 62 75 20 73 74 61 74 75 |ings.X\(|bu statu|
|00000bb0| 73 20 6f 66 20 64 61 74 | 61 20 6c 6f 67 67 69 6e |s of dat|a loggin|
|00000bc0| 67 20 6f 70 74 69 6f 6e | 0a 58 5c 28 62 75 20 73 |g option|.X\(bu s|
|00000bd0| 74 61 74 75 73 20 6f 66 | 20 70 72 69 6e 74 65 72 |tatus of| printer|
|00000be0| 20 6c 6f 67 67 69 6e 67 | 20 6f 70 74 69 6f 6e 0a | logging| option.|
|00000bf0| 58 5c 28 62 75 20 69 6e | 63 6f 6d 69 6e 67 20 43 |X\(bu in|coming C|
|00000c00| 52 20 74 72 61 6e 73 6c | 61 74 69 6f 6e 0a 58 5c |R transl|ation.X\|
|00000c10| 28 62 75 20 6f 75 74 67 | 6f 69 6e 67 20 43 52 20 |(bu outg|oing CR |
|00000c20| 74 72 61 6e 73 6c 61 74 | 69 6f 6e 0a 58 2e 66 69 |translat|ion.X.fi|
|00000c30| 0a 58 2e 52 45 0a 58 2e | 53 48 20 43 4f 4d 4d 41 |.X.RE.X.|SH COMMA|
|00000c40| 4e 44 53 0a 54 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |NDS.The |followin|
|00000c50| 67 20 63 6f 6d 6d 61 6e | 64 73 20 61 72 65 20 61 |g comman|ds are a|
|00000c60| 63 63 65 73 73 69 62 6c | 65 20 62 79 20 70 72 65 |ccessibl|e by pre|
|00000c70| 73 73 69 6e 67 20 61 20 | 75 73 65 72 20 64 65 66 |ssing a |user def|
|00000c80| 69 6e 61 62 6c 65 0a 58 | 5c 2a 28 6c 71 68 6f 74 |inable.X|\*(lqhot|
|00000c90| 20 6b 65 79 5c 2a 28 72 | 71 20 66 6f 6c 6c 6f 77 | key\*(r|q follow|
|00000ca0| 65 64 20 62 79 20 61 20 | 6c 65 74 74 65 72 2c 20 |ed by a |letter, |
|00000cb0| 6e 75 6d 62 65 72 2c 20 | 6f 72 20 61 72 72 6f 77 |number, |or arrow|
|00000cc0| 20 6b 65 79 2e 20 20 54 | 68 65 0a 64 65 66 61 75 | key. T|he.defau|
|00000cd0| 6c 74 20 5c 2a 28 6c 71 | 68 6f 74 20 6b 65 79 5c |lt \*(lq|hot key\|
|00000ce0| 2a 28 72 71 20 69 73 20 | 63 6f 6e 74 72 6f 6c 2d |*(rq is |control-|
|00000cf0| 41 2e 20 20 54 68 65 20 | 6e 6f 74 61 74 69 6f 6e |A. The |notation|
|00000d00| 20 5c 2a 28 6c 71 5e 41 | 2d 58 5c 2a 28 72 71 0a | \*(lq^A|-X\*(rq.|
|00000d10| 6d 65 61 6e 73 20 63 6f | 6e 74 72 6f 6c 2d 41 20 |means co|ntrol-A |
|00000d20| 66 6f 6c 6c 6f 77 65 64 | 20 62 79 20 74 68 65 20 |followed| by the |
|00000d30| 6c 65 74 74 65 72 20 58 | 2e 20 54 68 65 20 64 61 |letter X|. The da|
|00000d40| 73 68 20 28 5c 2d 29 20 | 69 73 20 66 6f 72 20 63 |sh (\-) |is for c|
|00000d50| 6c 61 72 69 74 79 2c 0a | 61 6e 64 20 69 73 20 6e |larity,.|and is n|
|00000d60| 6f 74 20 61 20 70 61 72 | 74 20 6f 66 20 74 68 65 |ot a par|t of the|
|00000d70| 20 63 6f 6d 6d 61 6e 64 | 20 73 65 71 75 65 6e 63 | command| sequenc|
|00000d80| 65 2e 0a 58 2e 54 50 0a | 58 2e 42 20 5e 41 2d 30 |e..X.TP.|X.B ^A-0|
|00000d90| 0a 48 65 6c 70 20 53 63 | 72 65 65 6e 2e 20 20 44 |.Help Sc|reen. D|
|00000da0| 69 73 70 6c 61 79 20 61 | 20 62 72 69 65 66 20 72 |isplay a| brief r|
|00000db0| 65 76 69 65 77 20 6f 66 | 20 74 68 65 20 61 76 61 |eview of| the ava|
|00000dc0| 69 6c 61 62 6c 65 20 63 | 6f 6d 6d 61 6e 64 73 2e |ilable c|ommands.|
|00000dd0| 20 20 55 73 65 73 0a 74 | 68 65 20 6e 75 6d 62 65 | Uses.t|he numbe|
|00000de0| 72 20 7a 65 72 6f 20 5c | 2a 28 6c 71 30 5c 2a 28 |r zero \|*(lq0\*(|
|00000df0| 72 71 20 6e 6f 74 20 74 | 68 65 20 6c 65 74 74 65 |rq not t|he lette|
|00000e00| 72 20 5c 2a 28 6c 71 4f | 5c 2a 28 72 71 2e 0a 58 |r \*(lqO|\*(rq..X|
|00000e10| 2e 54 50 0a 58 2e 42 20 | 5e 41 2d 44 0a 44 69 61 |.TP.X.B |^A-D.Dia|
|00000e20| 6c 69 6e 67 20 44 69 72 | 65 63 74 6f 72 79 2e 20 |ling Dir|ectory. |
|00000e30| 20 54 68 65 20 64 69 61 | 6c 69 6e 67 20 64 69 72 | The dia|ling dir|
|00000e40| 65 63 74 6f 72 79 20 73 | 63 72 65 65 6e 20 69 73 |ectory s|creen is|
|00000e50| 20 75 73 65 64 20 74 6f | 20 64 69 73 70 6c 61 79 | used to| display|
|00000e60| 20 61 6e 64 0a 6d 61 69 | 6e 74 61 69 6e 20 74 68 | and.mai|ntain th|
|00000e70| 65 20 64 61 74 61 62 61 | 73 65 20 6f 66 20 70 68 |e databa|se of ph|
|00000e80| 6f 6e 65 20 6e 75 6d 62 | 65 72 20 65 6e 74 72 69 |one numb|er entri|
|00000e90| 65 73 2c 20 61 6e 64 20 | 74 6f 20 73 65 6c 65 63 |es, and |to selec|
|00000ea0| 74 20 61 6e 20 65 6e 74 | 72 79 0a 66 6f 72 20 64 |t an ent|ry.for d|
|00000eb0| 69 61 6c 69 6e 67 2e 20 | 20 54 6f 20 64 69 61 6c |ialing. | To dial|
|00000ec0| 20 61 6e 20 65 6e 74 72 | 79 2c 20 6a 75 73 74 20 | an entr|y, just |
|00000ed0| 65 6e 74 65 72 20 74 68 | 65 20 65 6e 74 72 79 20 |enter th|e entry |
|00000ee0| 6e 75 6d 62 65 72 20 61 | 74 20 74 68 65 0a 70 72 |number a|t the.pr|
|00000ef0| 6f 6d 70 74 2e 20 20 49 | 66 20 74 68 65 20 73 63 |ompt. I|f the sc|
|00000f00| 72 69 70 74 20 66 69 65 | 6c 64 20 63 6f 6e 74 61 |ript fie|ld conta|
|00000f10| 69 6e 73 20 76 61 6c 69 | 64 20 55 6e 69 78 20 73 |ins vali|d Unix s|
|00000f20| 68 65 6c 6c 20 73 63 72 | 69 70 74 2c 20 74 68 61 |hell scr|ipt, tha|
|00000f30| 74 20 66 69 6c 65 0a 69 | 73 20 5c 2a 28 6c 71 70 |t file.i|s \*(lqp|
|00000f40| 6c 61 79 65 64 5c 2a 28 | 72 71 2c 20 61 66 74 65 |layed\*(|rq, afte|
|00000f50| 72 20 74 68 65 20 63 6f | 6e 6e 65 63 74 69 6f 6e |r the co|nnection|
|00000f60| 20 69 73 20 6d 61 64 65 | 2c 20 74 6f 20 74 79 70 | is made|, to typ|
|00000f70| 69 63 61 6c 6c 79 20 6c | 6f 67 20 74 68 65 0a 75 |ically l|og the.u|
|00000f80| 73 65 72 20 6f 6e 20 74 | 6f 20 74 68 65 20 72 65 |ser on t|o the re|
|00000f90| 6d 6f 74 65 20 73 79 73 | 74 65 6d 2e 20 20 53 65 |mote sys|tem. Se|
|00000fa0| 65 20 74 68 65 20 50 63 | 6f 6d 6d 20 52 65 66 65 |e the Pc|omm Refe|
|00000fb0| 72 65 6e 63 65 20 4d 61 | 6e 75 61 6c 20 66 6f 72 |rence Ma|nual for|
|00000fc0| 20 74 68 65 0a 66 6f 72 | 6d 61 74 20 61 6e 64 20 | the.for|mat and |
|00000fd0| 75 73 65 20 6f 66 20 74 | 68 65 20 73 63 72 69 70 |use of t|he scrip|
|00000fe0| 74 20 66 69 6c 65 73 2e | 20 20 54 68 65 20 66 6f |t files.| The fo|
|00000ff0| 6c 6c 6f 77 69 6e 67 20 | 63 6f 6d 6d 61 6e 64 73 |llowing |commands|
|00001000| 20 61 72 65 0a 61 76 61 | 69 6c 61 62 6c 65 20 66 | are.ava|ilable f|
|00001010| 72 6f 6d 20 74 68 65 20 | 64 69 61 6c 69 6e 67 20 |rom the |dialing |
|00001020| 64 69 72 65 63 74 6f 72 | 79 3a 0a 58 2e 52 53 20 |director|y:.X.RS |
|00001030| 35 0a 58 2e 54 50 0a 58 | 2e 42 20 52 0a 52 65 76 |5.X.TP.X|.B R.Rev|
|00001040| 69 73 65 20 28 6f 72 20 | 61 64 64 29 20 61 20 64 |ise (or |add) a d|
|00001050| 69 61 6c 69 6e 67 20 64 | 69 72 65 63 74 6f 72 79 |ialing d|irectory|
|00001060| 20 65 6e 74 72 79 20 6f | 72 20 61 20 6c 6f 6e 67 | entry o|r a long|
|00001070| 20 64 69 73 74 61 6e 63 | 65 20 64 69 61 6c 69 6e | distanc|e dialin|
|00001080| 67 0a 63 6f 64 65 2e 0a | 58 2e 54 50 0a 58 2e 42 |g.code..|X.TP.X.B|
|00001090| 20 50 0a 50 72 69 6e 74 | 20 28 64 69 73 70 6c 61 | P.Print| (displa|
|000010a0| 79 29 20 74 68 65 20 6c | 6f 6e 67 20 64 69 73 74 |y) the l|ong dist|
|000010b0| 61 6e 63 65 20 64 69 61 | 6c 69 6e 67 20 63 6f 64 |ance dia|ling cod|
|000010c0| 65 73 2e 0a 58 2e 54 50 | 0a 58 2e 42 20 75 70 2f |es..X.TP|.X.B up/|
|000010d0| 64 6f 77 6e 0a 53 63 72 | 6f 6c 6c 20 74 68 65 20 |down.Scr|oll the |
|000010e0| 64 69 61 6c 69 6e 67 20 | 64 69 72 65 63 74 6f 72 |dialing |director|
|000010f0| 79 20 75 70 20 6f 72 20 | 64 6f 77 6e 20 31 30 20 |y up or |down 10 |
|00001100| 6c 69 6e 65 73 2e 20 20 | 55 73 65 73 20 74 68 65 |lines. |Uses the|
|00001110| 20 75 70 20 61 6e 64 20 | 64 6f 77 6e 0a 61 72 72 | up and |down.arr|
|00001120| 6f 77 20 6b 65 79 73 2e | 0a 58 2e 54 50 0a 58 2e |ow keys.|.X.TP.X.|
|00001130| 42 20 4d 0a 4d 61 6e 75 | 61 6c 20 64 69 61 6c 2e |B M.Manu|al dial.|
|00001140| 20 20 50 72 6f 6d 70 74 | 73 20 66 6f 72 20 61 20 | Prompt|s for a |
|00001150| 70 68 6f 6e 65 20 6e 75 | 6d 62 65 72 20 72 61 74 |phone nu|mber rat|
|00001160| 68 65 72 20 74 68 61 6e | 20 75 73 69 6e 67 20 61 |her than| using a|
|00001170| 20 6e 75 6d 62 65 72 0a | 61 6c 72 65 61 64 79 20 | number.|already |
|00001180| 69 6e 20 74 68 65 20 64 | 69 61 6c 69 6e 67 20 64 |in the d|ialing d|
|00001190| 69 72 65 63 74 6f 72 79 | 2e 0a 58 2e 54 50 0a 58 |irectory|..X.TP.X|
|000011a0| 2e 42 20 44 0a 44 65 6c | 65 74 65 20 61 6e 20 65 |.B D.Del|ete an e|
|000011b0| 6e 74 72 79 20 6f 72 20 | 61 20 72 61 6e 67 65 20 |ntry or |a range |
|000011c0| 6f 66 20 65 6e 74 72 69 | 65 73 2e 0a 58 2e 54 50 |of entri|es..X.TP|
|000011d0| 0a 58 2e 42 20 4c 0a 50 | 72 69 6e 74 2e 20 20 53 |.X.B L.P|rint. S|
|000011e0| 65 6e 64 20 74 68 65 20 | 64 69 61 6c 69 6e 67 20 |end the |dialing |
|000011f0| 64 69 72 65 63 74 6f 72 | 79 20 74 6f 20 74 68 65 |director|y to the|
|00001200| 20 70 72 69 6e 74 65 72 | 20 6f 72 20 61 20 66 69 | printer| or a fi|
|00001210| 6c 65 20 6f 66 20 79 6f | 75 72 0a 63 68 6f 69 63 |le of yo|ur.choic|
|00001220| 65 2e 0a 58 2e 52 45 0a | 58 2e 54 50 0a 58 2e 42 |e..X.RE.|X.TP.X.B|
|00001230| 20 5e 41 2d 52 0a 41 75 | 74 6f 6d 61 74 69 63 20 | ^A-R.Au|tomatic |
|00001240| 72 65 64 69 61 6c 20 6f | 66 20 73 65 6c 65 63 74 |redial o|f select|
|00001250| 65 64 20 64 69 61 6c 69 | 6e 67 20 64 69 72 65 63 |ed diali|ng direc|
|00001260| 74 6f 72 79 20 65 6e 74 | 72 69 65 73 2e 20 20 50 |tory ent|ries. P|
|00001270| 72 6f 6d 70 74 73 20 74 | 68 65 0a 75 73 65 72 20 |rompts t|he.user |
|00001280| 66 6f 72 20 61 20 6c 69 | 73 74 20 6f 66 20 64 69 |for a li|st of di|
|00001290| 72 65 63 74 6f 72 79 20 | 65 6e 74 72 69 65 73 20 |rectory |entries |
|000012a0| 74 6f 20 62 65 20 70 6c | 61 63 65 64 20 69 6e 20 |to be pl|aced in |
|000012b0| 74 68 65 20 71 75 65 75 | 65 2e 0a 58 2e 49 20 50 |the queu|e..X.I P|
|000012c0| 63 6f 6d 6d 0a 77 69 6c | 6c 20 64 69 61 6c 20 74 |comm.wil|l dial t|
|000012d0| 68 65 20 6e 75 6d 62 65 | 72 73 20 69 6e 20 61 20 |he numbe|rs in a |
|000012e0| 63 79 63 6c 65 20 75 6e | 74 69 6c 20 6f 6e 65 20 |cycle un|til one |
|000012f0| 6f 66 20 74 68 65 6d 20 | 61 6e 73 77 65 72 73 2e |of them |answers.|
|00001300| 0a 58 2e 54 50 0a 58 2e | 42 20 5e 41 2d 4d 0a 41 |.X.TP.X.|B ^A-M.A|
|00001310| 6c 6c 6f 77 73 20 74 68 | 65 20 75 73 65 72 20 74 |llows th|e user t|
|00001320| 6f 20 6d 61 69 6e 74 61 | 69 6e 20 61 20 6c 69 73 |o mainta|in a lis|
|00001330| 74 20 6f 66 20 6b 65 79 | 62 6f 61 72 64 20 6d 61 |t of key|board ma|
|00001340| 63 72 6f 73 20 61 73 73 | 69 67 6e 65 64 20 74 6f |cros ass|igned to|
|00001350| 20 74 68 65 0a 73 68 69 | 66 74 65 64 20 6e 75 6d | the.shi|fted num|
|00001360| 62 65 72 20 6b 65 79 73 | 2e 20 20 57 68 65 6e 20 |ber keys|. When |
|00001370| 70 72 65 73 73 65 64 2c | 20 74 68 65 20 73 74 72 |pressed,| the str|
|00001380| 69 6e 67 20 61 73 73 69 | 67 6e 65 64 20 74 6f 20 |ing assi|gned to |
|00001390| 74 68 61 74 20 6b 65 79 | 20 69 73 0a 73 65 6e 74 |that key| is.sent|
|000013a0| 20 74 6f 20 74 68 65 20 | 72 65 6d 6f 74 65 20 73 | to the |remote s|
|000013b0| 79 73 74 65 6d 2e 0a 58 | 2e 54 50 0a 58 2e 42 20 |ystem..X|.TP.X.B |
|000013c0| 5e 41 2d 50 0a 41 64 6a | 75 73 74 20 74 68 65 20 |^A-P.Adj|ust the |
|000013d0| 63 75 72 72 65 6e 74 20 | 63 6f 6d 6d 75 6e 69 63 |current |communic|
|000013e0| 61 74 69 6f 6e 20 6c 69 | 6e 65 20 73 65 74 74 69 |ation li|ne setti|
|000013f0| 6e 67 73 2e 20 20 44 69 | 73 70 6c 61 79 20 61 20 |ngs. Di|splay a |
|00001400| 6d 65 6e 75 20 6f 66 20 | 62 61 75 64 0a 72 61 74 |menu of |baud.rat|
|00001410| 65 2c 20 70 61 72 69 74 | 79 2c 20 64 61 74 61 20 |e, parit|y, data |
|00001420| 62 69 74 2c 20 61 6e 64 | 20 73 74 6f 70 20 62 69 |bit, and| stop bi|
|00001430| 74 20 63 68 6f 69 63 65 | 73 2e 20 20 41 6c 6c 6f |t choice|s. Allo|
|00001440| 77 73 20 74 68 65 20 6e | 65 77 20 63 68 6f 69 63 |ws the n|ew choic|
|00001450| 65 20 74 6f 0a 62 65 20 | 73 61 76 65 64 20 61 6e |e to.be |saved an|
|00001460| 64 20 62 65 63 6f 6d 65 | 20 74 68 65 20 64 65 66 |d become| the def|
|00001470| 61 75 6c 74 2e 20 20 41 | 66 74 65 72 20 64 69 61 |ault. A|fter dia|
|00001480| 6c 69 6e 67 20 61 20 72 | 65 6d 6f 74 65 2c 20 74 |ling a r|emote, t|
|00001490| 68 65 20 6c 69 6e 65 0a | 73 65 74 74 69 6e 67 73 |he line.|settings|
|000014a0| 20 69 6e 20 74 68 65 20 | 64 69 61 6c 69 6e 67 20 | in the |dialing |
|000014b0| 64 69 72 65 63 74 6f 72 | 79 20 65 6e 74 72 79 20 |director|y entry |
|000014c0| 61 72 65 20 61 75 74 6f | 6d 61 74 69 63 61 6c 6c |are auto|maticall|
|000014d0| 79 20 75 73 65 64 2e 20 | 20 54 68 65 0a 63 75 72 |y used. | The.cur|
|000014e0| 72 65 6e 74 20 6c 69 6e | 65 20 73 65 74 74 69 6e |rent lin|e settin|
|000014f0| 67 73 20 61 72 65 20 73 | 68 6f 77 6e 20 69 6e 20 |gs are s|hown in |
|00001500| 74 68 65 20 73 74 61 74 | 75 73 20 6c 69 6e 65 2e |the stat|us line.|
|00001510| 0a 58 2e 54 50 0a 58 2e | 42 20 5e 41 2d 58 0a 58 |.X.TP.X.|B ^A-X.X|
|00001520| 45 78 69 74 20 66 72 6f | 6d 0a 58 2e 49 20 50 63 |Exit fro|m.X.I Pc|
|00001530| 6f 6d 6d 2e 0a 58 2e 54 | 50 0a 58 2e 42 20 5e 41 |omm..X.T|P.X.B ^A|
|00001540| 2d 34 0a 53 70 61 77 6e | 20 61 20 55 6e 69 78 20 |-4.Spawn| a Unix |
|00001550| 73 68 65 6c 6c 20 77 68 | 69 6c 65 20 73 74 69 6c |shell wh|ile stil|
|00001560| 6c 20 63 6f 6d 6d 75 6e | 69 63 61 74 69 6e 67 20 |l commun|icating |
|00001570| 77 69 74 68 20 74 68 65 | 20 72 65 6d 6f 74 65 20 |with the| remote |
|00001580| 73 79 73 74 65 6d 2e 0a | 55 73 65 73 20 74 68 65 |system..|Uses the|
|00001590| 20 5c 2a 28 6c 71 6e 61 | 74 69 76 65 5c 2a 28 72 | \*(lqna|tive\*(r|
|000015a0| 71 20 73 68 65 6c 6c 20 | 61 73 20 64 65 73 63 72 |q shell |as descr|
|000015b0| 69 62 65 64 20 69 6e 20 | 74 68 65 20 53 48 45 4c |ibed in |the SHEL|
|000015c0| 4c 20 65 6e 76 69 72 6f | 6e 6d 65 6e 74 61 6c 0a |L enviro|nmental.|
|000015d0| 76 61 72 69 61 62 6c 65 | 2e 0a 58 2e 54 50 0a 58 |variable|..X.TP.X|
|000015e0| 2e 42 20 5e 41 2d 35 0a | 53 65 6c 65 63 74 20 61 |.B ^A-5.|Select a|
|000015f0| 20 73 63 72 69 70 74 20 | 66 69 6c 65 20 74 6f 20 | script |file to |
|00001600| 62 65 20 75 73 65 64 20 | 74 6f 20 61 75 74 6f 6d |be used |to autom|
|00001610| 61 74 65 20 63 6f 6d 6d | 6f 6e 20 6b 65 79 62 6f |ate comm|on keybo|
|00001620| 61 72 64 20 69 6e 70 75 | 74 20 61 6e 64 0a 74 6f |ard inpu|t and.to|
|00001630| 20 70 65 72 66 6f 72 6d | 20 50 63 6f 6d 6d 20 63 | perform| Pcomm c|
|00001640| 6f 6d 6d 61 6e 64 20 73 | 65 71 75 65 6e 63 65 73 |ommand s|equences|
|00001650| 2e 0a 58 2e 54 50 0a 58 | 2e 42 20 5e 41 2d 49 0a |..X.TP.X|.B ^A-I.|
|00001660| 44 69 73 70 6c 61 79 20 | 74 68 65 20 70 72 6f 67 |Display |the prog|
|00001670| 72 61 6d 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |ram info|rmation |
|00001680| 73 63 72 65 65 6e 2e 0a | 58 2e 54 50 0a 58 2e 42 |screen..|X.TP.X.B|
|00001690| 20 5e 41 2d 53 0a 44 69 | 73 70 6c 61 79 20 61 20 | ^A-S.Di|splay a |
|000016a0| 63 68 6f 69 63 65 20 6f | 66 20 73 65 74 75 70 20 |choice o|f setup |
|000016b0| 73 63 72 65 65 6e 73 2e | 20 20 54 68 65 20 66 6f |screens.| The fo|
|000016c0| 6c 6c 6f 77 69 6e 67 20 | 73 75 62 2d 6d 65 6e 75 |llowing |sub-menu|
|000016d0| 73 20 61 72 65 0a 61 76 | 61 69 6c 61 62 6c 65 3a |s are.av|ailable:|
|000016e0| 0a 58 2e 52 53 20 35 0a | 58 2e 54 50 0a 58 2e 42 |.X.RS 5.|X.TP.X.B|
|000016f0| 20 31 0a 54 54 59 20 53 | 65 74 75 70 2e 20 20 54 | 1.TTY S|etup. T|
|00001700| 68 69 73 20 73 65 74 75 | 70 20 61 73 73 69 67 6e |his setu|p assign|
|00001710| 73 20 74 68 65 20 54 54 | 59 20 70 6f 72 74 73 20 |s the TT|Y ports |
|00001720| 74 68 61 74 0a 58 2e 49 | 20 50 63 6f 6d 6d 0a 69 |that.X.I| Pcomm.i|
|00001730| 73 20 61 6c 6c 6f 77 65 | 64 20 74 6f 20 75 73 65 |s allowe|d to use|
|00001740| 2c 20 61 6e 64 20 77 68 | 61 74 20 69 73 20 61 74 |, and wh|at is at|
|00001750| 74 61 63 68 65 64 20 74 | 6f 20 65 61 63 68 20 70 |tached t|o each p|
|00001760| 6f 72 74 2e 0a 58 2e 54 | 50 0a 58 2e 42 20 32 0a |ort..X.T|P.X.B 2.|
|00001770| 4d 6f 64 65 6d 20 53 65 | 74 75 70 2e 20 20 54 68 |Modem Se|tup. Th|
|00001780| 65 20 6d 6f 64 65 6d 20 | 73 65 74 75 70 20 63 6f |e modem |setup co|
|00001790| 6e 74 61 69 6e 73 20 74 | 68 65 20 63 6f 6d 6d 61 |ntains t|he comma|
|000017a0| 6e 64 73 20 74 6f 20 6d | 61 6b 65 20 74 68 65 20 |nds to m|ake the |
|000017b0| 6d 6f 64 65 6d 0a 64 69 | 61 6c 2c 20 68 61 6e 67 |modem.di|al, hang|
|000017c0| 20 75 70 20 74 68 65 20 | 70 68 6f 6e 65 2c 20 65 | up the |phone, e|
|000017d0| 74 63 2e 0a 58 2e 54 50 | 0a 58 2e 42 20 33 0a 54 |tc..X.TP|.X.B 3.T|
|000017e0| 65 72 6d 69 6e 61 6c 20 | 53 65 74 75 70 2e 20 20 |erminal |Setup. |
|000017f0| 54 68 65 20 74 65 72 6d | 69 6e 61 6c 20 73 65 74 |The term|inal set|
|00001800| 75 70 20 63 6f 6e 74 61 | 69 6e 73 20 74 68 65 20 |up conta|ins the |
|00001810| 64 65 66 69 6e 69 74 69 | 6f 6e 20 6f 66 20 74 68 |definiti|on of th|
|00001820| 65 0a 58 5c 2a 28 6c 71 | 68 6f 74 20 6b 65 79 5c |e.X\*(lq|hot key\|
|00001830| 2a 28 72 71 20 61 6e 64 | 20 74 68 65 20 6d 61 70 |*(rq and| the map|
|00001840| 70 69 6e 67 20 6f 66 20 | 74 68 65 20 65 6e 64 2d |ping of |the end-|
|00001850| 6f 66 2d 6c 69 6e 65 20 | 63 68 61 72 61 63 74 65 |of-line |characte|
|00001860| 72 73 2e 0a 58 2e 54 50 | 0a 58 2e 42 20 34 0a 47 |rs..X.TP|.X.B 4.G|
|00001870| 65 6e 65 72 61 6c 20 53 | 65 74 75 70 2e 20 20 54 |eneral S|etup. T|
|00001880| 68 65 20 67 65 6e 65 72 | 61 6c 20 73 65 74 75 70 |he gener|al setup|
|00001890| 20 63 6f 6e 74 61 69 6e | 73 20 74 68 65 20 64 65 | contain|s the de|
|000018a0| 66 61 75 6c 74 20 6c 6f | 67 20 66 69 6c 65 20 6e |fault lo|g file n|
|000018b0| 61 6d 65 2c 0a 61 6e 64 | 20 74 68 65 20 73 65 74 |ame,.and| the set|
|000018c0| 20 6f 66 20 63 68 61 72 | 61 63 74 65 72 20 73 79 | of char|acter sy|
|000018d0| 6e 6f 6e 79 6d 73 2e 0a | 58 2e 54 50 0a 58 2e 42 |nonyms..|X.TP.X.B|
|000018e0| 20 35 0a 41 53 43 49 49 | 20 54 72 61 6e 73 66 65 | 5.ASCII| Transfe|
|000018f0| 72 20 53 65 74 75 70 2e | 20 20 54 68 69 73 20 73 |r Setup.| This s|
|00001900| 65 74 75 70 20 73 63 72 | 65 65 6e 20 63 6f 6e 74 |etup scr|een cont|
|00001910| 61 69 6e 73 20 61 64 64 | 69 74 69 6f 6e 61 6c 20 |ains add|itional |
|00001920| 63 68 61 72 61 63 74 65 | 72 0a 74 72 61 6e 73 6c |characte|r.transl|
|00001930| 61 74 69 6f 6e 73 20 61 | 6c 6c 6f 77 65 64 20 64 |ations a|llowed d|
|00001940| 75 72 69 6e 67 20 41 53 | 43 49 49 20 66 69 6c 65 |uring AS|CII file|
|00001950| 20 74 72 61 6e 73 66 65 | 72 73 2e 0a 58 2e 54 50 | transfe|rs..X.TP|
|00001960| 0a 58 2e 42 20 36 0a 58 | 45 78 74 65 72 6e 61 6c |.X.B 6.X|External|
|00001970| 20 50 72 6f 74 6f 63 6f | 6c 20 53 65 74 75 70 2e | Protoco|l Setup.|
|00001980| 20 20 54 68 69 73 20 73 | 65 74 75 70 20 73 63 72 | This s|etup scr|
|00001990| 65 65 6e 20 61 6c 6c 6f | 77 73 20 74 68 65 20 75 |een allo|ws the u|
|000019a0| 73 65 72 20 74 6f 20 65 | 6d 62 65 64 20 74 68 65 |ser to e|mbed the|
|000019b0| 0a 6e 61 6d 65 73 20 6f | 66 20 65 78 74 65 72 6e |.names o|f extern|
|000019c0| 61 6c 20 66 69 6c 65 20 | 74 72 61 6e 73 66 65 72 |al file |transfer|
|000019d0| 20 70 72 6f 67 72 61 6d | 73 20 69 6e 74 6f 20 74 | program|s into t|
|000019e0| 68 65 20 6c 69 73 74 20 | 6f 66 20 61 76 61 69 6c |he list |of avail|
|000019f0| 61 62 6c 65 0a 70 72 6f | 74 6f 63 6f 6c 73 2e 0a |able.pro|tocols..|
|00001a00| 58 2e 54 50 0a 58 2e 42 | 20 53 0a 53 61 76 65 20 |X.TP.X.B| S.Save |
|00001a10| 74 68 65 20 63 68 61 6e | 67 65 73 20 74 6f 20 64 |the chan|ges to d|
|00001a20| 69 73 6b 2e 0a 58 2e 52 | 45 0a 58 2e 54 50 0a 58 |isk..X.R|E.X.TP.X|
|00001a30| 2e 42 20 5e 41 2d 42 0a | 43 68 61 6e 67 65 20 74 |.B ^A-B.|Change t|
|00001a40| 68 65 20 63 75 72 72 65 | 6e 74 20 77 6f 72 6b 69 |he curre|nt worki|
|00001a50| 6e 67 20 64 69 72 65 63 | 74 6f 72 79 2e 0a 58 2e |ng direc|tory..X.|
|00001a60| 54 50 0a 58 2e 42 20 5e | 41 2d 43 0a 43 6c 65 61 |TP.X.B ^|A-C.Clea|
|00001a70| 72 20 74 68 65 20 6c 6f | 63 61 6c 20 73 63 72 65 |r the lo|cal scre|
|00001a80| 65 6e 20 61 6e 64 20 68 | 6f 6d 65 20 74 68 65 20 |en and h|ome the |
|00001a90| 63 75 72 73 6f 72 2e 0a | 58 2e 54 50 0a 58 2e 42 |cursor..|X.TP.X.B|
|00001aa0| 20 5e 41 2d 45 0a 54 6f | 67 67 6c 65 20 74 68 65 | ^A-E.To|ggle the|
|00001ab0| 20 64 75 70 6c 65 78 20 | 6d 6f 64 65 20 66 72 6f | duplex |mode fro|
|00001ac0| 6d 20 66 75 6c 6c 20 74 | 6f 20 68 61 6c 66 2c 20 |m full t|o half, |
|00001ad0| 6f 72 20 66 72 6f 6d 20 | 68 61 6c 66 20 74 6f 20 |or from |half to |
|00001ae0| 66 75 6c 6c 2e 20 20 54 | 68 65 0a 73 74 61 74 75 |full. T|he.statu|
|00001af0| 73 20 6c 69 6e 65 20 73 | 68 6f 77 73 20 74 68 65 |s line s|hows the|
|00001b00| 20 63 75 72 72 65 6e 74 | 20 64 75 70 6c 65 78 20 | current| duplex |
|00001b10| 6d 6f 64 65 2e 0a 58 2e | 54 50 0a 58 2e 42 20 5e |mode..X.|TP.X.B ^|
|00001b20| 41 2d 48 0a 48 61 6e 67 | 20 75 70 20 74 68 65 20 |A-H.Hang| up the |
|00001b30| 70 68 6f 6e 65 2e 20 20 | 44 69 73 63 6f 6e 6e 65 |phone. |Disconne|
|00001b40| 63 74 20 74 68 65 20 70 | 68 6f 6e 65 2c 20 62 75 |ct the p|hone, bu|
|00001b50| 74 20 72 65 6d 61 69 6e | 20 69 6e 0a 58 2e 49 20 |t remain| in.X.I |
|00001b60| 50 63 6f 6d 6d 2e 0a 58 | 2e 54 50 0a 58 2e 42 20 |Pcomm..X|.TP.X.B |
|00001b70| 5e 41 2d 4c 0a 54 6f 67 | 67 6c 65 20 74 68 65 20 |^A-L.Tog|gle the |
|00001b80| 70 72 69 6e 74 65 72 20 | 6f 6e 20 61 6e 64 20 6f |printer |on and o|
|00001b90| 66 66 2e 20 20 53 69 6e | 63 65 20 74 68 65 20 70 |ff. Sin|ce the p|
|00001ba0| 72 69 6e 74 65 72 20 69 | 73 20 61 63 63 65 73 73 |rinter i|s access|
|00001bb0| 65 64 20 74 68 72 6f 75 | 67 68 0a 74 68 65 20 6e |ed throu|gh.the n|
|00001bc0| 6f 72 6d 61 6c 20 55 6e | 69 78 20 73 70 6f 6f 6c |ormal Un|ix spool|
|00001bd0| 20 70 72 6f 67 72 61 6d | 2c 20 74 68 65 20 6f 75 | program|, the ou|
|00001be0| 74 70 75 74 20 69 73 20 | 6e 6f 74 20 73 65 6e 74 |tput is |not sent|
|00001bf0| 20 74 6f 20 74 68 65 20 | 70 72 69 6e 74 65 72 0a | to the |printer.|
|00001c00| 75 6e 74 69 6c 0a 58 2e | 42 20 61 66 74 65 72 0a |until.X.|B after.|
|00001c10| 74 68 69 73 20 66 65 61 | 74 75 72 65 20 69 73 20 |this fea|ture is |
|00001c20| 74 75 72 6e 65 64 20 6f | 66 66 2e 0a 58 2e 54 50 |turned o|ff..X.TP|
|00001c30| 0a 58 2e 42 20 5e 41 2d | 33 0a 54 6f 67 67 6c 65 |.X.B ^A-|3.Toggle|
|00001c40| 20 74 68 65 20 69 6e 63 | 6f 6d 69 6e 67 20 6c 69 | the inc|oming li|
|00001c50| 6e 65 20 74 65 72 6d 69 | 6e 61 74 69 6f 6e 20 63 |ne termi|nation c|
|00001c60| 68 61 72 61 63 74 65 72 | 73 20 62 65 74 77 65 65 |haracter|s betwee|
|00001c70| 6e 20 74 68 65 20 63 61 | 72 72 69 61 67 65 0a 72 |n the ca|rriage.r|
|00001c80| 65 74 75 72 6e 20 61 6e | 64 20 74 68 65 20 63 61 |eturn an|d the ca|
|00001c90| 72 72 69 61 67 65 20 72 | 65 74 75 72 6e 20 6c 69 |rriage r|eturn li|
|00001ca0| 6e 65 20 66 65 65 64 20 | 70 61 69 72 2e 20 20 54 |ne feed |pair. T|
|00001cb0| 68 69 73 20 61 66 66 65 | 63 74 73 20 74 68 65 0a |his affe|cts the.|
|00001cc0| 74 65 72 6d 69 6e 61 6c | 20 73 65 73 73 69 6f 6e |terminal| session|
|00001cd0| 20 6f 6e 6c 79 2c 20 6e | 6f 74 20 74 68 65 20 66 | only, n|ot the f|
|00001ce0| 69 6c 65 20 74 72 61 6e | 73 66 65 72 73 2e 20 20 |ile tran|sfers. |
|00001cf0| 54 68 65 20 63 75 72 72 | 65 6e 74 20 73 65 74 74 |The curr|ent sett|
|00001d00| 69 6e 67 73 20 61 72 65 | 0a 73 68 6f 77 6e 20 69 |ings are|.shown i|
|00001d10| 6e 20 74 68 65 20 73 74 | 61 74 75 73 20 6c 69 6e |n the st|atus lin|
|00001d20| 65 2e 0a 58 2e 54 50 0a | 58 2e 42 20 5e 41 2d 37 |e..X.TP.|X.B ^A-7|
|00001d30| 0a 53 65 6e 64 20 61 20 | 6d 6f 64 65 6d 20 62 72 |.Send a |modem br|
|00001d40| 65 61 6b 2e 20 20 54 68 | 69 73 20 69 73 0a 58 2e |eak. Th|is is.X.|
|00001d50| 42 20 6e 6f 74 0a 74 68 | 65 20 73 61 6d 65 20 61 |B not.th|e same a|
|00001d60| 73 20 74 68 65 20 62 72 | 65 61 6b 20 6b 65 79 20 |s the br|eak key |
|00001d70| 6f 6e 20 74 68 65 20 6b | 65 79 62 6f 61 72 64 2e |on the k|eyboard.|
|00001d80| 0a 58 2e 54 50 0a 58 2e | 42 20 5e 41 2d 75 70 0a |.X.TP.X.|B ^A-up.|
|00001d90| 44 69 73 70 6c 61 79 20 | 61 20 6d 65 6e 75 20 6f |Display |a menu o|
|00001da0| 66 20 66 69 6c 65 20 74 | 72 61 6e 73 66 65 72 20 |f file t|ransfer |
|00001db0| 70 72 6f 74 6f 63 6f 6c | 73 20 74 6f 20 62 65 20 |protocol|s to be |
|00001dc0| 75 73 65 64 20 74 6f 20 | 73 65 6e 64 20 66 69 6c |used to |send fil|
|00001dd0| 65 73 20 74 6f 20 61 0a | 72 65 6d 6f 74 65 20 73 |es to a.|remote s|
|00001de0| 79 73 74 65 6d 2e 20 20 | 55 73 65 73 20 74 68 65 |ystem. |Uses the|
|00001df0| 20 75 70 20 61 72 72 6f | 77 20 6b 65 79 2e 0a 58 | up arro|w key..X|
|00001e00| 2e 54 50 0a 58 2e 42 20 | 5e 41 2d 64 6f 77 6e 0a |.TP.X.B |^A-down.|
|00001e10| 44 69 73 70 6c 61 79 20 | 66 69 6c 65 20 74 72 61 |Display |file tra|
|00001e20| 6e 73 66 65 72 20 70 72 | 6f 74 6f 63 6f 6c 73 20 |nsfer pr|otocols |
|00001e30| 74 6f 20 62 65 20 75 73 | 65 64 20 74 6f 20 72 65 |to be us|ed to re|
|00001e40| 63 65 69 76 65 20 66 69 | 6c 65 73 20 66 72 6f 6d |ceive fi|les from|
|00001e50| 20 61 0a 72 65 6d 6f 74 | 65 20 73 79 73 74 65 6d | a.remot|e system|
|00001e60| 2e 20 20 55 73 65 73 20 | 74 68 65 20 64 6f 77 6e |. Uses |the down|
|00001e70| 20 61 72 72 6f 77 20 6b | 65 79 2e 0a 58 2e 54 50 | arrow k|ey..X.TP|
|00001e80| 0a 58 2e 42 20 5e 41 2d | 46 0a 44 69 73 70 6c 61 |.X.B ^A-|F.Displa|
|00001e90| 79 20 74 68 65 20 63 6f | 6e 74 65 6e 74 73 20 6f |y the co|ntents o|
|00001ea0| 66 20 61 20 55 6e 69 78 | 20 64 69 72 65 63 74 6f |f a Unix| directo|
|00001eb0| 72 79 2e 0a 58 2e 54 50 | 0a 58 2e 42 20 5e 41 2d |ry..X.TP|.X.B ^A-|
|00001ec0| 47 0a 44 75 6d 70 20 74 | 68 65 20 63 6f 6e 74 65 |G.Dump t|he conte|
|00001ed0| 6e 74 73 20 6f 66 20 74 | 68 65 20 73 63 72 65 65 |nts of t|he scree|
|00001ee0| 6e 20 74 6f 20 61 20 73 | 70 65 63 69 66 69 65 64 |n to a s|pecified|
|00001ef0| 20 66 69 6c 65 2e 20 20 | 53 70 65 63 69 61 6c 20 | file. |Special |
|00001f00| 67 72 61 70 68 69 63 73 | 0a 63 68 61 72 61 63 74 |graphics|.charact|
|00001f10| 65 72 73 20 6d 61 79 20 | 6e 6f 74 20 62 65 20 72 |ers may |not be r|
|00001f20| 65 70 72 65 73 65 6e 74 | 65 64 20 61 63 63 75 72 |epresent|ed accur|
|00001f30| 61 74 65 6c 79 20 69 6e | 20 74 68 65 20 66 69 6c |ately in| the fil|
|00001f40| 65 2e 0a 58 2e 54 50 0a | 58 2e 42 20 5e 41 2d 31 |e..X.TP.|X.B ^A-1|
|00001f50| 0a 42 65 67 69 6e 20 64 | 61 74 61 20 6c 6f 67 67 |.Begin d|ata logg|
|00001f60| 69 6e 67 2e 20 20 50 72 | 6f 6d 70 74 73 20 74 68 |ing. Pr|ompts th|
|00001f70| 65 20 75 73 65 72 20 66 | 6f 72 20 74 68 65 20 6e |e user f|or the n|
|00001f80| 61 6d 65 20 6f 66 20 74 | 68 65 20 66 69 6c 65 20 |ame of t|he file |
|00001f90| 74 68 61 74 20 77 69 6c | 6c 0a 62 65 20 75 73 65 |that wil|l.be use|
|00001fa0| 64 20 74 6f 20 63 6f 6c | 6c 65 63 74 20 61 20 63 |d to col|lect a c|
|00001fb0| 6f 6d 70 6c 65 74 65 20 | 72 65 63 6f 72 64 20 6f |omplete |record o|
|00001fc0| 66 20 74 68 65 20 74 65 | 72 6d 69 6e 61 6c 20 73 |f the te|rminal s|
|00001fd0| 65 73 73 69 6f 6e 2e 0a | 58 2e 54 50 0a 58 2e 42 |ession..|X.TP.X.B|
|00001fe0| 20 5e 41 2d 32 0a 54 6f | 67 67 6c 65 20 74 68 65 | ^A-2.To|ggle the|
|00001ff0| 20 64 61 74 61 20 6c 6f | 67 67 69 6e 67 20 6f 70 | data lo|gging op|
|00002000| 74 69 6f 6e 20 77 69 74 | 68 6f 75 74 20 70 72 6f |tion wit|hout pro|
|00002010| 6d 70 74 69 6e 67 20 66 | 6f 72 20 61 20 6e 65 77 |mpting f|or a new|
|00002020| 20 66 69 6c 65 20 6e 61 | 6d 65 2e 0a 54 68 65 20 | file na|me..The |
|00002030| 73 74 61 74 75 73 20 6c | 69 6e 65 20 73 68 6f 77 |status l|ine show|
|00002040| 73 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 64 61 |s the cu|rrent da|
|00002050| 74 61 20 6c 6f 67 67 69 | 6e 67 20 6d 6f 64 65 2e |ta loggi|ng mode.|
|00002060| 0a 58 2e 53 48 20 22 46 | 49 4c 45 20 54 52 41 4e |.X.SH "F|ILE TRAN|
|00002070| 53 46 45 52 53 22 0a 58 | 2e 49 20 50 63 6f 6d 6d |SFERS".X|.I Pcomm|
|00002080| 0a 75 6e 64 65 72 73 74 | 61 6e 64 73 20 74 68 65 |.underst|ands the|
|00002090| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 66 69 6c 65 20 | followi|ng file |
|000020a0| 74 72 61 6e 73 66 65 72 | 20 70 72 6f 74 6f 63 6f |transfer| protoco|
|000020b0| 6c 73 3a 0a 58 2e 50 50 | 0a 58 2e 52 53 20 35 0a |ls:.X.PP|.X.RS 5.|
|000020c0| 58 2e 54 53 0a 6c 20 6c | 20 6c 20 6c 20 0a 6c 20 |X.TS.l l| l l .l |
|000020d0| 6c 20 6c 20 6c 20 0a 58 | 5f 20 5f 20 5f 20 5f 0a |l l l .X|_ _ _ _.|
|000020e0| 6c 20 6c 20 6c 20 6c 2e | 0a 70 72 6f 74 6f 63 6f |l l l l.|.protoco|
|000020f0| 6c 09 70 61 63 6b 65 74 | 09 65 72 72 6f 72 09 6d |l.packet|.error.m|
|00002100| 75 6c 74 69 70 6c 65 0a | 6e 61 6d 65 09 73 69 7a |ultiple.|name.siz|
|00002110| 65 09 6d 65 74 68 6f 64 | 09 66 69 6c 65 73 3f 0a |e.method|.files?.|
|00002120| 78 6d 6f 64 65 6d 09 31 | 32 38 09 63 68 65 63 6b |xmodem.1|28.check|
|00002130| 73 75 6d 2f 43 52 43 09 | 6e 6f 0a 78 6d 6f 64 65 |sum/CRC.|no.xmode|
|00002140| 6d 2d 31 6b 09 31 32 38 | 2f 31 30 32 34 09 63 68 |m-1k.128|/1024.ch|
|00002150| 65 63 6b 73 75 6d 2f 43 | 52 43 09 6e 6f 0a 6d 6f |ecksum/C|RC.no.mo|
|00002160| 64 65 6d 37 09 31 32 38 | 09 63 68 65 63 6b 73 75 |dem7.128|.checksu|
|00002170| 6d 09 79 65 73 0a 79 6d | 6f 64 65 6d 09 31 32 38 |m.yes.ym|odem.128|
|00002180| 2f 31 30 32 34 09 43 52 | 43 09 79 65 73 0a 79 6d |/1024.CR|C.yes.ym|
|00002190| 6f 64 65 6d 2d 67 09 31 | 32 38 2f 31 30 32 34 09 |odem-g.1|28/1024.|
|000021a0| 6e 6f 6e 65 09 79 65 73 | 0a 41 53 43 49 49 09 6e |none.yes|.ASCII.n|
|000021b0| 6f 6e 65 09 6e 6f 6e 65 | 09 6e 6f 0a 7a 6d 6f 64 |one.none|.no.zmod|
|000021c0| 65 6d 09 31 32 38 2f 31 | 30 32 34 09 43 52 43 09 |em.128/1|024.CRC.|
|000021d0| 79 65 73 0a 58 28 65 78 | 74 65 72 6e 61 6c 29 09 |yes.X(ex|ternal).|
|000021e0| 3f 09 3f 09 3f 0a 58 2e | 54 45 0a 58 2e 52 45 0a |?.?.?.X.|TE.X.RE.|
|000021f0| 58 2e 50 50 0a 58 2e 49 | 20 50 63 6f 6d 6d 0a 63 |X.PP.X.I| Pcomm.c|
|00002200| 61 6e 20 75 73 65 20 61 | 6e 20 65 78 74 65 72 6e |an use a|n extern|
|00002210| 61 6c 20 70 72 6f 67 72 | 61 6d 2c 20 73 75 63 68 |al progr|am, such|
|00002220| 20 61 73 20 4b 65 72 6d | 69 74 20 6f 72 20 61 20 | as Kerm|it or a |
|00002230| 70 72 6f 70 72 69 65 74 | 61 72 79 20 70 72 6f 67 |propriet|ary prog|
|00002240| 72 61 6d 2c 20 74 6f 0a | 74 72 61 6e 73 66 65 72 |ram, to.|transfer|
|00002250| 20 66 69 6c 65 73 2e 20 | 20 43 6f 6d 6d 6f 6e 6c | files. | Commonl|
|00002260| 79 20 75 73 65 64 20 65 | 78 74 65 72 6e 61 6c 20 |y used e|xternal |
|00002270| 70 72 6f 67 72 61 6d 73 | 20 28 73 75 63 68 20 61 |programs| (such a|
|00002280| 73 20 7a 6d 6f 64 65 6d | 20 69 6e 20 74 68 65 0a |s zmodem| in the.|
|00002290| 65 78 61 6d 70 6c 65 20 | 61 62 6f 76 65 29 20 63 |example |above) c|
|000022a0| 61 6e 20 68 61 76 65 20 | 74 68 65 69 72 20 6e 61 |an have |their na|
|000022b0| 6d 65 73 20 65 6d 62 65 | 64 64 65 64 20 69 6e 74 |mes embe|dded int|
|000022c0| 6f 20 74 68 65 20 6c 69 | 73 74 20 6f 66 20 61 76 |o the li|st of av|
|000022d0| 61 69 6c 61 62 6c 65 0a | 70 72 6f 74 6f 63 6f 6c |ailable.|protocol|
|000022e0| 73 2e 0a 58 2e 50 50 0a | 58 2e 53 48 20 43 4f 4e |s..X.PP.|X.SH CON|
|000022f0| 46 49 47 55 52 41 54 49 | 4f 4e 0a 58 2e 49 20 50 |FIGURATI|ON.X.I P|
|00002300| 63 6f 6d 6d 0a 6d 75 73 | 74 20 68 61 76 65 20 61 |comm.mus|t have a|
|00002310| 63 63 65 73 73 20 74 6f | 20 74 68 65 20 74 65 72 |ccess to| the ter|
|00002320| 6d 69 6e 66 6f 20 6f 72 | 20 74 65 72 6d 63 61 70 |minfo or| termcap|
|00002330| 20 64 61 74 61 20 66 6f | 72 20 74 68 65 20 74 65 | data fo|r the te|
|00002340| 72 6d 69 6e 61 6c 20 62 | 65 69 6e 67 0a 75 73 65 |rminal b|eing.use|
|00002350| 64 2e 20 20 54 68 65 20 | 6d 69 6e 69 6d 75 6d 20 |d. The |minimum |
|00002360| 63 61 70 61 62 69 6c 69 | 74 69 65 73 20 69 6e 63 |capabili|ties inc|
|00002370| 6c 75 64 65 20 61 20 73 | 63 72 65 65 6e 20 73 69 |lude a s|creen si|
|00002380| 7a 65 20 6f 66 20 61 74 | 20 6c 65 61 73 74 20 38 |ze of at| least 8|
|00002390| 30 0a 63 6f 6c 75 6d 6e | 73 20 62 79 20 32 34 20 |0.column|s by 24 |
|000023a0| 6c 69 6e 65 73 20 61 6e | 64 20 63 75 72 73 6f 72 |lines an|d cursor|
|000023b0| 20 6d 6f 76 65 6d 65 6e | 74 20 63 61 70 61 62 69 | movemen|t capabi|
|000023c0| 6c 69 74 69 65 73 2e 20 | 20 52 75 6e 6e 69 6e 67 |lities. | Running|
|000023d0| 0a 58 2e 49 20 50 63 6f | 6d 6d 0a 66 72 6f 6d 20 |.X.I Pco|mm.from |
|000023e0| 74 65 72 6d 69 6e 61 6c | 73 20 61 74 20 72 65 6c |terminal|s at rel|
|000023f0| 61 74 69 76 65 6c 79 20 | 73 6c 6f 77 20 73 70 65 |atively |slow spe|
|00002400| 65 64 73 20 28 69 2e 65 | 2e 20 31 32 30 30 20 62 |eds (i.e|. 1200 b|
|00002410| 61 75 64 29 20 77 69 6c | 6c 20 63 61 75 73 65 20 |aud) wil|l cause |
|00002420| 74 68 65 0a 77 69 6e 64 | 6f 77 73 20 74 6f 20 61 |the.wind|ows to a|
|00002430| 70 70 65 61 72 20 73 6c | 75 67 67 69 73 68 2e 0a |ppear sl|uggish..|
|00002440| 58 2e 50 50 0a 54 65 72 | 6d 69 6e 61 6c 73 20 74 |X.PP.Ter|minals t|
|00002450| 68 61 74 20 64 6f 6e 27 | 74 20 68 61 76 65 20 61 |hat don'|t have a|
|00002460| 72 72 6f 77 20 6b 65 79 | 73 20 6f 72 20 73 79 73 |rrow key|s or sys|
|00002470| 74 65 6d 73 20 77 69 74 | 68 6f 75 74 20 74 68 65 |tems wit|hout the|
|00002480| 20 6e 65 77 65 72 0a 76 | 65 72 73 69 6f 6e 73 20 | newer.v|ersions |
|00002490| 6f 66 20 63 75 72 73 65 | 73 28 33 29 20 77 69 6c |of curse|s(3) wil|
|000024a0| 6c 20 72 65 71 75 69 72 | 65 20 74 68 65 20 75 73 |l requir|e the us|
|000024b0| 65 72 20 74 6f 20 73 75 | 62 73 74 69 74 75 74 65 |er to su|bstitute|
|000024c0| 20 74 68 65 20 6c 65 74 | 74 65 72 0a 58 5c 2a 28 | the let|ter.X\*(|
|000024d0| 6c 71 55 5c 2a 28 72 71 | 20 66 6f 72 20 5c 2a 28 |lqU\*(rq| for \*(|
|000024e0| 6c 71 75 70 20 61 72 72 | 6f 77 5c 2a 28 72 71 20 |lqup arr|ow\*(rq |
|000024f0| 61 6e 64 20 5c 2a 28 6c | 71 4e 5c 2a 28 72 71 20 |and \*(l|qN\*(rq |
|00002500| 66 6f 72 20 5c 2a 28 6c | 71 64 6f 77 6e 0a 61 72 |for \*(l|qdown.ar|
|00002510| 72 6f 77 5c 2a 28 72 71 | 2e 0a 58 2e 50 50 0a 54 |row\*(rq|..X.PP.T|
|00002520| 68 65 72 65 20 61 72 65 | 20 66 6f 75 72 20 50 63 |here are| four Pc|
|00002530| 6f 6d 6d 20 73 75 70 70 | 6f 72 74 20 66 69 6c 65 |omm supp|ort file|
|00002540| 73 20 74 68 61 74 20 63 | 6f 6e 74 61 69 6e 20 74 |s that c|ontain t|
|00002550| 68 65 20 64 69 61 6c 69 | 6e 67 20 64 69 72 65 63 |he diali|ng direc|
|00002560| 74 6f 72 79 2c 0a 74 68 | 65 20 65 78 74 65 72 6e |tory,.th|e extern|
|00002570| 61 6c 20 66 69 6c 65 20 | 74 72 61 6e 73 66 65 72 |al file |transfer|
|00002580| 20 70 72 6f 67 72 61 6d | 73 2c 20 74 68 65 20 6d | program|s, the m|
|00002590| 6f 64 65 6d 2f 54 54 59 | 20 64 61 74 61 62 61 73 |odem/TTY| databas|
|000025a0| 65 2c 20 61 6e 64 20 74 | 68 65 0a 73 74 61 72 74 |e, and t|he.start|
|000025b0| 2d 75 70 20 64 65 66 61 | 75 6c 74 20 70 61 72 61 |-up defa|ult para|
|000025c0| 6d 65 74 65 72 73 2e 20 | 20 55 73 65 72 73 20 6d |meters. | Users m|
|000025d0| 61 79 20 6d 61 69 6e 74 | 61 69 6e 20 70 72 69 76 |ay maint|ain priv|
|000025e0| 61 74 65 20 76 65 72 73 | 69 6f 6e 73 20 6f 66 0a |ate vers|ions of.|
|000025f0| 74 68 65 73 65 20 66 69 | 6c 65 73 20 69 6e 20 61 |these fi|les in a|
|00002600| 20 64 69 72 65 63 74 6f | 72 79 20 6f 66 20 74 68 | directo|ry of th|
|00002610| 65 69 72 20 63 68 6f 69 | 63 65 2e 0a 58 2e 49 20 |eir choi|ce..X.I |
|00002620| 50 63 6f 6d 6d 0a 61 6c | 73 6f 20 75 73 65 73 20 |Pcomm.al|so uses |
|00002630| 6e 6f 72 6d 61 6c 20 55 | 6e 69 78 20 73 68 65 6c |normal U|nix shel|
|00002640| 6c 20 73 63 72 69 70 74 | 73 20 74 6f 20 70 65 72 |l script|s to per|
|00002650| 66 6f 72 6d 20 74 68 65 | 20 5c 2a 28 6c 71 63 68 |form the| \*(lqch|
|00002660| 61 74 5c 2a 28 72 71 0a | 73 65 71 75 65 6e 63 65 |at\*(rq.|sequence|
|00002670| 73 20 6e 65 63 65 73 73 | 61 72 79 20 74 6f 20 61 |s necess|ary to a|
|00002680| 75 74 6f 6d 61 74 69 63 | 61 6c 6c 79 20 6c 6f 67 |utomatic|ally log|
|00002690| 20 61 20 75 73 65 72 20 | 6f 6e 74 6f 20 61 20 72 | a user |onto a r|
|000026a0| 65 6d 6f 74 65 20 73 79 | 73 74 65 6d 2e 0a 53 63 |emote sy|stem..Sc|
|000026b0| 72 69 70 74 73 20 74 68 | 61 74 20 69 6e 76 6f 6b |ripts th|at invok|
|000026c0| 65 20 50 63 6f 6d 6d 20 | 63 6f 6d 6d 61 6e 64 73 |e Pcomm |commands|
|000026d0| 20 72 65 71 75 69 72 65 | 20 74 68 65 20 75 73 65 | require| the use|
|000026e0| 20 6f 66 20 74 68 65 0a | 58 2e 49 20 50 63 6f 6d | of the.|X.I Pcom|
|000026f0| 6d 5f 63 6d 64 0a 63 6f | 6d 6d 61 6e 64 2e 20 20 |m_cmd.co|mmand. |
|00002700| 53 65 65 20 70 63 6f 6d | 6d 5f 63 6d 64 28 31 29 |See pcom|m_cmd(1)|
|00002710| 2e 0a 58 2e 49 20 50 63 | 6f 6d 6d 0a 75 73 65 73 |..X.I Pc|omm.uses|
|00002720| 20 74 68 65 20 65 6e 76 | 69 72 6f 6e 6d 65 6e 74 | the env|ironment|
|00002730| 61 6c 20 76 61 72 69 61 | 62 6c 65 20 50 43 4f 4d |al varia|ble PCOM|
|00002740| 4d 20 74 6f 20 73 65 61 | 72 63 68 20 66 6f 72 20 |M to sea|rch for |
|00002750| 74 68 65 0a 58 5c 2a 28 | 6c 71 70 72 69 76 61 74 |the.X\*(|lqprivat|
|00002760| 65 5c 2a 28 72 71 20 73 | 75 70 70 6f 72 74 20 66 |e\*(rq s|upport f|
|00002770| 69 6c 65 73 20 61 6e 64 | 20 73 63 72 69 70 74 20 |iles and| script |
|00002780| 66 69 6c 65 73 2e 20 20 | 54 68 65 20 66 6f 6c 6c |files. |The foll|
|00002790| 6f 77 69 6e 67 0a 64 69 | 72 65 63 74 6f 72 69 65 |owing.di|rectorie|
|000027a0| 73 20 61 72 65 20 73 65 | 61 72 63 68 65 64 20 74 |s are se|arched t|
|000027b0| 6f 20 66 69 6e 64 20 74 | 68 65 20 66 69 6c 65 73 |o find t|he files|
|000027c0| 3a 0a 58 2e 50 50 0a 58 | 2e 52 53 20 35 0a 58 2e |:.X.PP.X|.RS 5.X.|
|000027d0| 6e 66 0a 58 5c 28 62 75 | 20 64 69 72 65 63 74 6f |nf.X\(bu| directo|
|000027e0| 72 79 20 67 69 76 65 6e | 20 77 69 74 68 20 74 68 |ry given| with th|
|000027f0| 65 20 5c 66 49 5c 2d 64 | 5c 66 50 20 6f 70 74 69 |e \fI\-d|\fP opti|
|00002800| 6f 6e 0a 58 5c 28 62 75 | 20 64 69 72 65 63 74 6f |on.X\(bu| directo|
|00002810| 72 79 20 69 6e 20 74 68 | 65 20 50 43 4f 4d 4d 20 |ry in th|e PCOMM |
|00002820| 65 6e 76 69 72 6f 6e 6d | 65 6e 74 61 6c 20 76 61 |environm|ental va|
|00002830| 72 69 61 62 6c 65 0a 58 | 5c 28 62 75 20 63 75 72 |riable.X|\(bu cur|
|00002840| 72 65 6e 74 20 64 69 72 | 65 63 74 6f 72 79 0a 58 |rent dir|ectory.X|
|00002850| 5c 28 62 75 20 64 65 66 | 61 75 6c 74 20 64 69 72 |\(bu def|ault dir|
|00002860| 65 63 74 6f 72 79 20 28 | 63 6f 6d 70 69 6c 65 64 |ectory (|compiled|
|00002870| 20 69 6e 74 6f 20 50 63 | 6f 6d 6d 29 0a 58 2e 66 | into Pc|omm).X.f|
|00002880| 69 0a 58 2e 52 45 0a 58 | 2e 50 50 0a 54 68 65 20 |i.X.RE.X|.PP.The |
|00002890| 73 63 72 69 70 74 20 66 | 69 65 6c 64 20 69 6e 20 |script f|ield in |
|000028a0| 74 68 65 20 64 69 61 6c | 69 6e 67 20 64 69 72 65 |the dial|ing dire|
|000028b0| 63 74 6f 72 79 20 73 65 | 72 76 65 73 20 74 77 6f |ctory se|rves two|
|000028c0| 20 70 75 72 70 6f 73 65 | 73 2e 20 20 54 68 65 0a | purpose|s. The.|
|000028d0| 66 69 72 73 74 20 75 73 | 65 20 69 73 20 74 6f 20 |first us|e is to |
|000028e0| 69 64 65 6e 74 69 66 79 | 20 74 68 65 20 73 68 65 |identify| the she|
|000028f0| 6c 6c 20 73 63 72 69 70 | 74 20 74 6f 20 75 73 65 |ll scrip|t to use|
|00002900| 20 66 6f 72 20 61 75 74 | 6f 6d 61 74 69 6e 67 20 | for aut|omating |
|00002910| 63 6f 6d 6d 61 6e 64 0a | 6b 65 79 62 6f 61 72 64 |command.|keyboard|
|00002920| 20 61 6e 64 20 63 6f 6d | 6d 61 6e 64 20 73 65 71 | and com|mand seq|
|00002930| 75 65 6e 63 65 73 2e 20 | 20 54 68 65 20 73 65 63 |uences. | The sec|
|00002940| 6f 6e 64 20 75 73 65 20 | 69 73 20 74 6f 20 73 70 |ond use |is to sp|
|00002950| 65 63 69 66 79 20 61 20 | 54 54 59 20 6e 61 6d 65 |ecify a |TTY name|
|00002960| 0a 66 6f 72 20 61 20 67 | 69 76 65 6e 20 65 6e 74 |.for a g|iven ent|
|00002970| 72 79 2e 20 20 49 66 20 | 74 68 65 20 73 63 72 69 |ry. If |the scri|
|00002980| 70 74 20 69 73 20 61 20 | 76 61 6c 69 64 20 64 65 |pt is a |valid de|
|00002990| 76 69 63 65 20 6e 61 6d | 65 2c 20 74 68 61 74 20 |vice nam|e, that |
|000029a0| 64 65 76 69 63 65 20 69 | 73 0a 75 73 65 64 20 69 |device i|s.used i|
|000029b0| 6e 73 74 65 61 64 20 6f | 66 20 73 65 61 72 63 68 |nstead o|f search|
|000029c0| 69 6e 67 20 74 68 65 20 | 54 54 59 20 64 61 74 61 |ing the |TTY data|
|000029d0| 62 61 73 65 20 66 6f 72 | 20 61 20 66 72 65 65 20 |base for| a free |
|000029e0| 70 6f 72 74 2e 0a 58 2e | 53 48 20 46 49 4c 45 53 |port..X.|SH FILES|
|000029f0| 0a 58 2e 54 53 0a 6c 20 | 6c 2e 0a 70 63 6f 6d 6d |.X.TS.l |l..pcomm|
|00002a00| 2e 64 69 61 6c 5f 64 69 | 72 09 74 68 65 20 64 69 |.dial_di|r.the di|
|00002a10| 61 6c 69 6e 67 20 64 69 | 72 65 63 74 6f 72 79 0a |aling di|rectory.|
|00002a20| 70 63 6f 6d 6d 2e 65 78 | 74 72 6e 6c 09 74 68 65 |pcomm.ex|trnl.the|
|00002a30| 20 65 78 74 65 72 6e 61 | 6c 20 66 69 6c 65 20 74 | externa|l file t|
|00002a40| 72 61 6e 73 66 65 72 20 | 70 72 6f 67 72 61 6d 73 |ransfer |programs|
|00002a50| 0a 70 63 6f 6d 6d 2e 6d | 6f 64 65 6d 09 74 68 65 |.pcomm.m|odem.the|
|00002a60| 20 6d 6f 64 65 6d 2f 54 | 54 59 20 64 61 74 61 62 | modem/T|TY datab|
|00002a70| 61 73 65 0a 70 63 6f 6d | 6d 2e 70 61 72 61 6d 09 |ase.pcom|m.param.|
|00002a80| 74 68 65 20 73 74 61 72 | 74 2d 75 70 20 64 65 66 |the star|t-up def|
|00002a90| 61 75 6c 74 20 70 61 72 | 61 6d 65 74 65 72 73 0a |ault par|ameters.|
|00002aa0| 58 2e 54 45 0a 58 2e 53 | 48 20 22 53 45 45 20 41 |X.TE.X.S|H "SEE A|
|00002ab0| 4c 53 4f 22 0a 50 63 6f | 6d 6d 20 52 65 66 65 72 |LSO".Pco|mm Refer|
|00002ac0| 65 6e 63 65 20 4d 61 6e | 75 61 6c 2c 20 70 63 6f |ence Man|ual, pco|
|00002ad0| 6d 6d 5f 63 6d 64 28 31 | 29 2c 20 77 61 69 74 66 |mm_cmd(1|), waitf|
|00002ae0| 6f 72 28 31 29 2c 20 6d | 61 74 63 68 65 73 28 31 |or(1), m|atches(1|
|00002af0| 29 0a 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 0a 69 66 |).END_OF|_FILE.if|
|00002b00| 20 74 65 73 74 20 39 36 | 35 37 20 2d 6e 65 20 60 | test 96|57 -ne `|
|00002b10| 77 63 20 2d 63 20 3c 27 | 50 63 6f 6d 6d 2e 31 27 |wc -c <'|Pcomm.1'|
|00002b20| 60 3b 20 74 68 65 6e 0a | 20 20 20 20 65 63 68 6f |`; then.| echo|
|00002b30| 20 73 68 61 72 3a 20 5c | 22 27 50 63 6f 6d 6d 2e | shar: \|"'Pcomm.|
|00002b40| 31 27 5c 22 20 75 6e 70 | 61 63 6b 65 64 20 77 69 |1'\" unp|acked wi|
|00002b50| 74 68 20 77 72 6f 6e 67 | 20 73 69 7a 65 21 0a 66 |th wrong| size!.f|
|00002b60| 69 0a 23 20 65 6e 64 20 | 6f 66 20 27 50 63 6f 6d |i.# end |of 'Pcom|
|00002b70| 6d 2e 31 27 0a 66 69 0a | 69 66 20 74 65 73 74 20 |m.1'.fi.|if test |
|00002b80| 2d 66 20 27 63 75 72 73 | 65 73 2e 63 27 20 2d 61 |-f 'curs|es.c' -a|
|00002b90| 20 22 24 7b 31 7d 22 20 | 21 3d 20 22 2d 63 22 20 | "${1}" |!= "-c" |
|00002ba0| 3b 20 74 68 65 6e 20 0a | 20 20 65 63 68 6f 20 73 |; then .| echo s|
|00002bb0| 68 61 72 3a 20 57 69 6c | 6c 20 6e 6f 74 20 63 6c |har: Wil|l not cl|
|00002bc0| 6f 62 62 65 72 20 65 78 | 69 73 74 69 6e 67 20 66 |obber ex|isting f|
|00002bd0| 69 6c 65 20 5c 22 27 63 | 75 72 73 65 73 2e 63 27 |ile \"'c|urses.c'|
|00002be0| 5c 22 0a 65 6c 73 65 0a | 65 63 68 6f 20 73 68 61 |\".else.|echo sha|
|00002bf0| 72 3a 20 45 78 74 72 61 | 63 74 69 6e 67 20 5c 22 |r: Extra|cting \"|
|00002c00| 27 63 75 72 73 65 73 2e | 63 27 5c 22 20 5c 28 38 |'curses.|c'\" \(8|
|00002c10| 39 36 31 20 63 68 61 72 | 61 63 74 65 72 73 5c 29 |961 char|acters\)|
|00002c20| 0a 73 65 64 20 22 73 2f | 5e 58 2f 2f 22 20 3e 27 |.sed "s/|^X//" >'|
|00002c30| 63 75 72 73 65 73 2e 63 | 27 20 3c 3c 27 45 4e 44 |curses.c|' <<'END|
|00002c40| 5f 4f 46 5f 46 49 4c 45 | 27 0a 58 2f 2a 0a 58 20 |_OF_FILE|'.X/*.X |
|00002c50| 2a 20 4d 69 73 63 65 6c | 6c 61 6e 65 6f 75 73 20 |* Miscel|laneous |
|00002c60| 63 75 72 73 65 73 28 33 | 29 20 72 6f 75 74 69 6e |curses(3|) routin|
|00002c70| 65 73 2e 0a 58 20 2a 2f | 0a 58 0a 58 23 64 65 66 |es..X */|.X.X#def|
|00002c80| 69 6e 65 20 53 54 52 5f | 57 49 44 54 48 09 32 35 |ine STR_|WIDTH.25|
|00002c90| 36 0a 58 23 64 65 66 69 | 6e 65 20 4e 55 4d 5f 57 |6.X#defi|ne NUM_W|
|00002ca0| 49 44 54 48 09 31 36 0a | 58 0a 58 23 69 6e 63 6c |IDTH.16.|X.X#incl|
|00002cb0| 75 64 65 20 3c 73 74 64 | 69 6f 2e 68 3e 0a 58 23 |ude <std|io.h>.X#|
|00002cc0| 69 6e 63 6c 75 64 65 20 | 3c 63 75 72 73 65 73 2e |include |<curses.|
|00002cd0| 68 3e 0a 58 23 69 6e 63 | 6c 75 64 65 20 3c 73 69 |h>.X#inc|lude <si|
|00002ce0| 67 6e 61 6c 2e 68 3e 0a | 58 23 69 6e 63 6c 75 64 |gnal.h>.|X#includ|
|00002cf0| 65 20 22 63 6f 6e 66 69 | 67 2e 68 22 0a 58 23 69 |e "confi|g.h".X#i|
|00002d00| 6e 63 6c 75 64 65 20 22 | 6d 69 73 63 2e 68 22 0a |nclude "|misc.h".|
|00002d10| 58 23 69 6e 63 6c 75 64 | 65 20 22 73 74 61 74 75 |X#includ|e "statu|
|00002d20| 73 2e 68 22 0a 58 0a 58 | 23 69 66 64 65 66 20 42 |s.h".X.X|#ifdef B|
|00002d30| 53 44 0a 58 23 69 6e 63 | 6c 75 64 65 20 3c 73 65 |SD.X#inc|lude <se|
|00002d40| 74 6a 6d 70 2e 68 3e 0a | 6a 6d 70 5f 62 75 66 20 |tjmp.h>.|jmp_buf |
|00002d50| 77 6b 5f 62 75 66 3b 0a | 58 23 65 6e 64 69 66 20 |wk_buf;.|X#endif |
|00002d60| 2f 2a 20 42 53 44 20 2a | 2f 0a 58 0a 58 23 69 66 |/* BSD *|/.X.X#if|
|00002d70| 6e 64 65 66 20 4f 4c 44 | 43 55 52 53 45 53 0a 58 |ndef OLD|CURSES.X|
|00002d80| 23 69 6e 63 6c 75 64 65 | 20 3c 74 65 72 6d 2e 68 |#include| <term.h|
|00002d90| 3e 0a 58 23 65 6c 73 65 | 20 2f 2a 20 4f 4c 44 43 |>.X#else| /* OLDC|
|00002da0| 55 52 53 45 53 20 2a 2f | 0a 58 23 69 66 64 65 66 |URSES */|.X#ifdef|
|00002db0| 20 55 4e 49 58 50 43 0a | 58 23 69 6e 63 6c 75 64 | UNIXPC.|X#includ|
|00002dc0| 65 20 3c 73 67 74 74 79 | 2e 68 3e 0a 58 23 65 6e |e <sgtty|.h>.X#en|
|00002dd0| 64 69 66 20 2f 2a 20 55 | 4e 49 58 50 43 20 2a 2f |dif /* U|NIXPC */|
|00002de0| 0a 58 23 65 6e 64 69 66 | 20 2f 2a 20 4f 4c 44 43 |.X#endif| /* OLDC|
|00002df0| 55 52 53 45 53 20 2a 2f | 0a 58 0a 58 2f 2a 0a 58 |URSES */|.X.X/*.X|
|00002e00| 20 2a 20 47 65 74 20 61 | 20 73 74 72 69 6e 67 20 | * Get a| string |
|00002e10| 66 72 6f 6d 20 61 20 77 | 69 6e 64 6f 77 2e 20 20 |from a w|indow. |
|00002e20| 53 69 6d 69 6c 61 72 20 | 74 6f 20 77 67 65 74 73 |Similar |to wgets|
|00002e30| 74 72 28 29 2c 20 65 78 | 63 65 70 74 20 77 65 20 |tr(), ex|cept we |
|00002e40| 6c 69 6d 69 74 0a 58 20 | 2a 20 74 68 65 20 6c 65 |limit.X |* the le|
|00002e50| 6e 67 74 68 2c 20 72 65 | 74 75 72 6e 20 61 20 4e |ngth, re|turn a N|
|00002e60| 55 4c 4c 20 28 6e 6f 74 | 20 70 6f 69 6e 74 65 72 |ULL (not| pointer|
|00002e70| 20 74 6f 20 4e 55 4c 4c | 29 20 6f 6e 20 3c 45 53 | to NULL|) on <ES|
|00002e80| 43 3e 20 6b 65 79 2c 20 | 62 65 65 70 0a 58 20 2a |C> key, |beep.X *|
|00002e90| 20 61 74 20 61 6e 79 20 | 63 68 61 72 61 63 74 65 | at any |characte|
|00002ea0| 72 20 69 6e 20 22 64 69 | 73 61 6c 6c 6f 77 22 20 |r in "di|sallow" |
|00002eb0| 73 74 72 69 6e 67 2c 20 | 61 6e 64 20 62 65 65 70 |string, |and beep|
|00002ec0| 20 61 74 20 61 6e 79 20 | 63 68 61 72 61 63 74 65 | at any |characte|
|00002ed0| 72 20 6e 6f 74 0a 58 20 | 2a 20 69 6e 20 22 61 6c |r not.X |* in "al|
|00002ee0| 6c 6f 77 22 2e 20 28 49 | 74 20 64 6f 65 73 6e 27 |low". (I|t doesn'|
|00002ef0| 74 20 6d 61 6b 65 20 73 | 65 6e 73 65 20 74 6f 20 |t make s|ense to |
|00002f00| 75 73 65 20 62 6f 74 68 | 20 22 61 6c 6c 6f 77 22 |use both| "allow"|
|00002f10| 20 61 6e 64 20 22 64 69 | 73 61 6c 6c 6f 77 22 0a | and "di|sallow".|
|00002f20| 58 20 2a 20 61 74 20 74 | 68 65 20 73 61 6d 65 20 |X * at t|he same |
|00002f30| 74 69 6d 65 29 2e 20 20 | 52 65 74 75 72 6e 73 20 |time). |Returns |
|00002f40| 61 20 70 6f 69 6e 74 65 | 72 20 74 6f 20 61 20 73 |a pointe|r to a s|
|00002f50| 74 61 74 69 63 20 61 72 | 65 61 2e 0a 58 20 2a 2f |tatic ar|ea..X */|
|00002f60| 0a 58 0a 63 68 61 72 20 | 2a 0a 67 65 74 5f 73 74 |.X.char |*.get_st|
|00002f70| 72 28 77 69 6e 2c 20 6e | 75 6d 2c 20 61 6c 6c 6f |r(win, n|um, allo|
|00002f80| 77 2c 20 64 69 73 61 6c | 6c 6f 77 29 0a 57 49 4e |w, disal|low).WIN|
|00002f90| 44 4f 57 20 2a 77 69 6e | 3b 0a 69 6e 74 20 6e 75 |DOW *win|;.int nu|
|00002fa0| 6d 3b 0a 63 68 61 72 20 | 2a 61 6c 6c 6f 77 2c 20 |m;.char |*allow, |
|00002fb0| 2a 64 69 73 61 6c 6c 6f | 77 3b 0a 58 7b 0a 58 09 |*disallo|w;.X{.X.|
|00002fc0| 69 6e 74 20 63 6f 75 6e | 74 2c 20 78 2c 20 79 3b |int coun|t, x, y;|
|00002fd0| 0a 58 09 63 68 61 72 20 | 61 6e 73 2c 20 2a 73 74 |.X.char |ans, *st|
|00002fe0| 72 63 68 72 28 29 3b 0a | 58 09 73 74 61 74 69 63 |rchr();.|X.static|
|00002ff0| 20 63 68 61 72 20 62 75 | 66 5b 53 54 52 5f 57 49 | char bu|f[STR_WI|
|00003000| 44 54 48 5d 3b 0a 58 0a | 58 09 63 6f 75 6e 74 20 |DTH];.X.|X.count |
|00003010| 3d 20 30 3b 0a 58 09 77 | 68 69 6c 65 20 28 28 61 |= 0;.X.w|hile ((a|
|00003020| 6e 73 20 3d 20 77 67 65 | 74 63 68 28 77 69 6e 29 |ns = wge|tch(win)|
|00003030| 29 20 21 3d 20 27 5c 72 | 27 29 20 7b 0a 58 09 09 |) != '\r|') {.X..|
|00003040| 09 09 09 2f 2a 20 64 6f | 20 6f 75 72 20 6f 77 6e |.../* do| our own|
|00003050| 20 62 61 63 6b 73 70 61 | 63 65 20 2a 2f 0a 58 09 | backspa|ce */.X.|
|00003060| 09 69 66 20 28 61 6e 73 | 20 3d 3d 20 42 53 20 7c |.if (ans| == BS ||
|00003070| 7c 20 61 6e 73 20 3d 3d | 20 44 45 4c 29 20 7b 0a || ans ==| DEL) {.|
|00003080| 58 09 09 09 69 66 20 28 | 21 63 6f 75 6e 74 29 20 |X...if (|!count) |
|00003090| 7b 0a 58 09 09 09 09 62 | 65 65 70 28 29 3b 0a 58 |{.X....b|eep();.X|
|000030a0| 09 09 09 09 63 6f 6e 74 | 69 6e 75 65 3b 0a 58 09 |....cont|inue;.X.|
|000030b0| 09 09 7d 0a 58 09 09 09 | 63 6f 75 6e 74 2d 2d 3b |..}.X...|count--;|
|000030c0| 0a 58 09 09 09 62 75 66 | 5b 63 6f 75 6e 74 5d 20 |.X...buf|[count] |
|000030d0| 3d 20 27 5c 30 27 3b 0a | 58 09 09 09 67 65 74 79 |= '\0';.|X...gety|
|000030e0| 78 28 77 69 6e 2c 20 79 | 2c 20 78 29 3b 0a 58 09 |x(win, y|, x);.X.|
|000030f0| 09 09 78 2d 2d 3b 0a 58 | 09 09 09 77 6d 6f 76 65 |..x--;.X|...wmove|
|00003100| 28 77 69 6e 2c 20 79 2c | 20 78 29 3b 0a 58 09 09 |(win, y,| x);.X..|
|00003110| 09 77 61 64 64 63 68 28 | 77 69 6e 2c 20 28 63 68 |.waddch(|win, (ch|
|00003120| 74 79 70 65 29 20 27 20 | 27 29 3b 0a 58 09 09 09 |type) ' |');.X...|
|00003130| 77 6d 6f 76 65 28 77 69 | 6e 2c 20 79 2c 20 78 29 |wmove(wi|n, y, x)|
|00003140| 3b 0a 58 09 09 09 77 72 | 65 66 72 65 73 68 28 77 |;.X...wr|efresh(w|
|00003150| 69 6e 29 3b 0a 58 09 09 | 09 63 6f 6e 74 69 6e 75 |in);.X..|.continu|
|00003160| 65 3b 0a 58 09 09 7d 0a | 58 09 09 09 09 09 2f 2a |e;.X..}.|X...../*|
|00003170| 20 61 6e 20 3c 45 53 43 | 3e 20 61 6e 79 77 68 65 | an <ESC|> anywhe|
|00003180| 72 65 20 69 6e 20 74 68 | 65 20 73 74 72 69 6e 67 |re in th|e string|
|00003190| 20 2a 2f 0a 58 09 09 69 | 66 20 28 61 6e 73 20 3d | */.X..i|f (ans =|
|000031a0| 3d 20 45 53 43 29 0a 58 | 09 09 09 72 65 74 75 72 |= ESC).X|...retur|
|000031b0| 6e 28 4e 55 4c 4c 29 3b | 0a 58 0a 58 09 09 09 09 |n(NULL);|.X.X....|
|000031c0| 09 2f 2a 20 69 6c 6c 65 | 67 61 6c 20 63 68 61 72 |./* ille|gal char|
|000031d0| 61 63 74 65 72 3f 20 2a | 2f 0a 58 09 09 69 66 20 |acter? *|/.X..if |
|000031e0| 28 2a 64 69 73 61 6c 6c | 6f 77 20 21 3d 20 27 5c |(*disall|ow != '\|
|000031f0| 30 27 20 26 26 20 73 74 | 72 63 68 72 28 64 69 73 |0' && st|rchr(dis|
|00003200| 61 6c 6c 6f 77 2c 20 61 | 6e 73 29 29 20 7b 0a 58 |allow, a|ns)) {.X|
|00003210| 09 09 09 62 65 65 70 28 | 29 3b 0a 58 09 09 09 63 |...beep(|);.X...c|
|00003220| 6f 6e 74 69 6e 75 65 3b | 0a 58 09 09 7d 0a 58 09 |ontinue;|.X..}.X.|
|00003230| 09 69 66 20 28 2a 61 6c | 6c 6f 77 20 21 3d 20 27 |.if (*al|low != '|
|00003240| 5c 30 27 20 26 26 20 21 | 73 74 72 63 68 72 28 61 |\0' && !|strchr(a|
|00003250| 6c 6c 6f 77 2c 20 61 6e | 73 29 29 20 7b 0a 58 09 |llow, an|s)) {.X.|
|00003260| 09 09 62 65 65 70 28 29 | 3b 0a 58 09 09 09 63 6f |..beep()|;.X...co|
|00003270| 6e 74 69 6e 75 65 3b 0a | 58 09 09 7d 0a 58 09 09 |ntinue;.|X..}.X..|
|00003280| 09 09 09 2f 2a 20 65 78 | 63 65 65 64 65 64 20 74 |.../* ex|ceeded t|
|00003290| 68 65 20 6d 61 78 3f 20 | 2a 2f 0a 58 09 09 69 66 |he max? |*/.X..if|
|000032a0| 20 28 63 6f 75 6e 74 20 | 3e 3d 20 6e 75 6d 20 7c | (count |>= num ||
|000032b0| 7c 20 63 6f 75 6e 74 20 | 3e 3d 20 53 54 52 5f 57 || count |>= STR_W|
|000032c0| 49 44 54 48 29 20 7b 0a | 58 09 09 09 62 65 65 70 |IDTH) {.|X...beep|
|000032d0| 28 29 3b 0a 58 09 09 09 | 63 6f 6e 74 69 6e 75 65 |();.X...|continue|
|000032e0| 3b 0a 58 09 09 7d 0a 58 | 0a 58 09 09 62 75 66 5b |;.X..}.X|.X..buf[|
|000032f0| 63 6f 75 6e 74 5d 20 3d | 20 61 6e 73 3b 0a 58 09 |count] =| ans;.X.|
|00003300| 09 77 61 64 64 63 68 28 | 77 69 6e 2c 20 28 63 68 |.waddch(|win, (ch|
|00003310| 74 79 70 65 29 20 61 6e | 73 29 3b 0a 58 09 09 77 |type) an|s);.X..w|
|00003320| 72 65 66 72 65 73 68 28 | 77 69 6e 29 3b 0a 58 09 |refresh(|win);.X.|
|00003330| 09 63 6f 75 6e 74 2b 2b | 3b 0a 58 09 7d 0a 58 09 |.count++|;.X.}.X.|
|00003340| 62 75 66 5b 63 6f 75 6e | 74 5d 20 3d 20 27 5c 30 |buf[coun|t] = '\0|
|00003350| 27 3b 0a 58 09 72 65 74 | 75 72 6e 28 62 75 66 29 |';.X.ret|urn(buf)|
|00003360| 3b 0a 58 7d 0a 58 0a 58 | 2f 2a 0a 58 20 2a 20 47 |;.X}.X.X|/*.X * G|
|00003370| 65 74 20 61 20 6e 75 6d | 62 65 72 20 66 72 6f 6d |et a num|ber from|
|00003380| 20 61 20 77 69 6e 64 6f | 77 2e 20 20 57 65 20 6c | a windo|w. We l|
|00003390| 69 6d 69 74 20 74 68 65 | 20 6c 65 6e 67 74 68 20 |imit the| length |
|000033a0| 61 6e 64 20 72 65 74 75 | 72 6e 20 61 20 2d 31 0a |and retu|rn a -1.|
|000033b0| 58 20 2a 20 6f 6e 20 3c | 45 53 43 3e 20 6b 65 79 |X * on <|ESC> key|
|000033c0| 2e 0a 58 20 2a 2f 0a 58 | 0a 69 6e 74 0a 67 65 74 |..X */.X|.int.get|
|000033d0| 5f 6e 75 6d 28 77 69 6e | 2c 20 6e 75 6d 29 0a 57 |_num(win|, num).W|
|000033e0| 49 4e 44 4f 57 20 2a 77 | 69 6e 3b 0a 69 6e 74 20 |INDOW *w|in;.int |
|000033f0| 6e 75 6d 3b 0a 58 7b 0a | 58 09 69 6e 74 20 63 6f |num;.X{.|X.int co|
|00003400| 75 6e 74 2c 20 78 2c 20 | 79 2c 20 6e 75 6d 62 65 |unt, x, |y, numbe|
|00003410| 72 3b 0a 58 09 63 68 61 | 72 20 61 6e 73 2c 20 62 |r;.X.cha|r ans, b|
|00003420| 75 66 5b 4e 55 4d 5f 57 | 49 44 54 48 5d 3b 0a 58 |uf[NUM_W|IDTH];.X|
|00003430| 0a 58 09 63 6f 75 6e 74 | 20 3d 20 30 3b 0a 58 09 |.X.count| = 0;.X.|
|00003440| 77 68 69 6c 65 20 28 28 | 61 6e 73 20 3d 20 77 67 |while ((|ans = wg|
|00003450| 65 74 63 68 28 77 69 6e | 29 29 20 21 3d 20 27 5c |etch(win|)) != '\|
|00003460| 72 27 29 20 7b 0a 58 09 | 09 09 09 09 2f 2a 20 64 |r') {.X.|..../* d|
|00003470| 6f 20 6f 75 72 20 6f 77 | 6e 20 62 61 63 6b 73 70 |o our ow|n backsp|
|00003480| 61 63 65 20 2a 2f 0a 58 | 09 09 69 66 20 28 61 6e |ace */.X|..if (an|
|00003490| 73 20 3d 3d 20 42 53 20 | 7c 7c 20 61 6e 73 20 3d |s == BS ||| ans =|
|000034a0| 3d 20 44 45 4c 29 20 7b | 0a 58 09 09 09 69 66 20 |= DEL) {|.X...if |
|000034b0| 28 21 63 6f 75 6e 74 29 | 20 7b 0a 58 09 09 09 09 |(!count)| {.X....|
|000034c0| 62 65 65 70 28 29 3b 0a | 58 09 09 09 09 63 6f 6e |beep();.|X....con|
|000034d0| 74 69 6e 75 65 3b 0a 58 | 09 09 09 7d 0a 58 09 09 |tinue;.X|...}.X..|
|000034e0| 09 63 6f 75 6e 74 2d 2d | 3b 0a 58 09 09 09 62 75 |.count--|;.X...bu|
|000034f0| 66 5b 63 6f 75 6e 74 5d | 20 3d 20 27 5c 30 27 3b |f[count]| = '\0';|
|00003500| 0a 58 09 09 09 67 65 74 | 79 78 28 77 69 6e 2c 20 |.X...get|yx(win, |
|00003510| 79 2c 20 78 29 3b 0a 58 | 09 09 09 78 2d 2d 3b 0a |y, x);.X|...x--;.|
|00003520| 58 09 09 09 77 6d 6f 76 | 65 28 77 69 6e 2c 20 79 |X...wmov|e(win, y|
|00003530| 2c 20 78 29 3b 0a 58 09 | 09 09 77 61 64 64 63 68 |, x);.X.|..waddch|
|00003540| 28 77 69 6e 2c 20 28 63 | 68 74 79 70 65 29 20 27 |(win, (c|htype) '|
|00003550| 20 27 29 3b 0a 58 09 09 | 09 77 6d 6f 76 65 28 77 | ');.X..|.wmove(w|
|00003560| 69 6e 2c 20 79 2c 20 78 | 29 3b 0a 58 09 09 09 77 |in, y, x|);.X...w|
|00003570| 72 65 66 72 65 73 68 28 | 77 69 6e 29 3b 0a 58 09 |refresh(|win);.X.|
|00003580| 09 09 63 6f 6e 74 69 6e | 75 65 3b 0a 58 09 09 7d |..contin|ue;.X..}|
|00003590| 0a 58 09 09 09 09 09 2f | 2a 20 61 6e 20 3c 45 53 |.X...../|* an <ES|
|000035a0| 43 3e 20 61 6e 79 77 68 | 65 72 65 20 69 6e 20 74 |C> anywh|ere in t|
|000035b0| 68 65 20 73 74 72 69 6e | 67 20 2a 2f 0a 58 09 09 |he strin|g */.X..|
|000035c0| 69 66 20 28 61 6e 73 20 | 3d 3d 20 45 53 43 29 0a |if (ans |== ESC).|
|000035d0| 58 09 09 09 72 65 74 75 | 72 6e 28 2d 31 29 3b 0a |X...retu|rn(-1);.|
|000035e0| 58 09 09 09 09 09 2f 2a | 20 6f 6e 6c 79 20 64 69 |X...../*| only di|
|000035f0| 67 69 74 73 20 61 72 65 | 20 61 6c 6c 6f 77 65 64 |gits are| allowed|
|00003600| 20 2a 2f 0a 58 09 09 69 | 66 20 28 61 6e 73 20 3c | */.X..i|f (ans <|
|00003610| 20 27 30 27 20 7c 7c 20 | 61 6e 73 20 3e 20 27 39 | '0' || |ans > '9|
|00003620| 27 29 20 7b 0a 58 09 09 | 09 62 65 65 70 28 29 3b |') {.X..|.beep();|
|00003630| 0a 58 09 09 09 63 6f 6e | 74 69 6e 75 65 3b 0a 58 |.X...con|tinue;.X|
|00003640| 09 09 7d 0a 58 09 09 09 | 09 09 2f 2a 20 65 78 63 |..}.X...|../* exc|
|00003650| 65 65 64 65 64 20 74 68 | 65 20 6d 61 78 3f 20 2a |eeded th|e max? *|
|00003660| 2f 0a 58 09 09 69 66 20 | 28 63 6f 75 6e 74 20 3e |/.X..if |(count >|
|00003670| 3d 20 6e 75 6d 20 7c 7c | 20 63 6f 75 6e 74 20 3e |= num ||| count >|
|00003680| 3d 20 4e 55 4d 5f 57 49 | 44 54 48 29 20 7b 0a 58 |= NUM_WI|DTH) {.X|
|00003690| 09 09 09 62 65 65 70 28 | 29 3b 0a 58 09 09 09 63 |...beep(|);.X...c|
|000036a0| 6f 6e 74 69 6e 75 65 3b | 0a 58 09 09 7d 0a 58 0a |ontinue;|.X..}.X.|
|000036b0| 58 09 09 62 75 66 5b 63 | 6f 75 6e 74 5d 20 3d 20 |X..buf[c|ount] = |
|000036c0| 61 6e 73 3b 0a 58 09 09 | 77 61 64 64 63 68 28 77 |ans;.X..|waddch(w|
|000036d0| 69 6e 2c 20 28 63 68 74 | 79 70 65 29 20 61 6e 73 |in, (cht|ype) ans|
|000036e0| 29 3b 0a 58 09 09 77 72 | 65 66 72 65 73 68 28 77 |);.X..wr|efresh(w|
|000036f0| 69 6e 29 3b 0a 58 09 09 | 63 6f 75 6e 74 2b 2b 3b |in);.X..|count++;|
|00003700| 0a 58 09 7d 0a 58 09 62 | 75 66 5b 63 6f 75 6e 74 |.X.}.X.b|uf[count|
|00003710| 5d 20 3d 20 27 5c 30 27 | 3b 0a 58 09 6e 75 6d 62 |] = '\0'|;.X.numb|
|00003720| 65 72 20 3d 20 61 74 6f | 69 28 62 75 66 29 3b 0a |er = ato|i(buf);.|
|00003730| 58 09 72 65 74 75 72 6e | 28 6e 75 6d 62 65 72 29 |X.return|(number)|
|00003740| 3b 0a 58 7d 0a 58 0a 58 | 2f 2a 0a 58 20 2a 20 43 |;.X}.X.X|/*.X * C|
|00003750| 68 61 6e 67 65 20 76 69 | 64 65 6f 20 61 74 74 72 |hange vi|deo attr|
|00003760| 69 62 75 74 65 73 20 77 | 68 69 6c 65 20 70 72 69 |ibutes w|hile pri|
|00003770| 6e 74 69 6e 67 20 61 20 | 73 74 72 69 6e 67 2e 20 |nting a |string. |
|00003780| 20 54 68 65 20 75 73 65 | 20 6f 66 20 74 68 65 0a | The use| of the.|
|00003790| 58 20 2a 20 70 72 65 2d | 70 72 6f 63 65 73 73 6f |X * pre-|processo|
|000037a0| 72 20 64 65 66 69 6e 69 | 74 69 6f 6e 20 4e 4f 50 |r defini|tion NOP|
|000037b0| 52 4f 4d 4f 54 45 20 28 | 6c 6f 63 61 74 65 64 20 |ROMOTE (|located |
|000037c0| 69 6e 20 63 6f 6e 66 69 | 67 2e 68 29 20 6d 65 61 |in confi|g.h) mea|
|000037d0| 6e 73 20 74 68 61 74 0a | 58 20 2a 20 73 74 72 69 |ns that.|X * stri|
|000037e0| 6e 67 73 20 77 69 6c 6c | 20 62 65 20 70 72 69 6e |ngs will| be prin|
|000037f0| 74 65 64 20 77 69 74 68 | 6f 75 74 20 61 6e 79 20 |ted with|out any |
|00003800| 73 70 65 63 69 61 6c 20 | 76 69 64 65 6f 20 61 74 |special |video at|
|00003810| 74 72 69 62 75 74 65 20 | 69 66 20 74 68 65 0a 58 |tribute |if the.X|
|00003820| 20 2a 20 72 65 71 75 65 | 73 74 65 64 20 63 61 70 | * reque|sted cap|
|00003830| 61 62 69 6c 69 74 79 20 | 64 6f 65 73 6e 27 74 20 |ability |doesn't |
|00003840| 65 78 69 73 74 2e 0a 58 | 20 2a 2f 0a 58 0a 77 61 |exist..X| */.X.wa|
|00003850| 74 74 72 73 74 72 28 77 | 69 6e 2c 20 61 74 74 72 |ttrstr(w|in, attr|
|00003860| 2c 20 73 74 72 29 0a 57 | 49 4e 44 4f 57 20 2a 77 |, str).W|INDOW *w|
|00003870| 69 6e 3b 0a 63 68 74 79 | 70 65 20 61 74 74 72 3b |in;.chty|pe attr;|
|00003880| 0a 63 68 61 72 20 2a 73 | 74 72 3b 0a 58 7b 0a 58 |.char *s|tr;.X{.X|
|00003890| 09 69 6e 74 20 64 6f 5f | 69 74 3b 0a 58 09 09 09 |.int do_|it;.X...|
|000038a0| 09 09 2f 2a 20 69 66 20 | 6e 6f 74 68 69 6e 67 2c |../* if |nothing,|
|000038b0| 20 64 6f 20 6e 6f 74 68 | 69 6e 67 20 2a 2f 0a 58 | do noth|ing */.X|
|000038c0| 09 69 66 20 28 73 74 72 | 20 3d 3d 20 4e 55 4c 4c |.if (str| == NULL|
|000038d0| 20 7c 7c 20 2a 73 74 72 | 20 3d 3d 20 27 5c 30 27 | || *str| == '\0'|
|000038e0| 29 0a 58 09 09 72 65 74 | 75 72 6e 28 30 29 3b 0a |).X..ret|urn(0);.|
|000038f0| 58 0a 58 23 69 66 64 65 | 66 20 4f 4c 44 43 55 52 |X.X#ifde|f OLDCUR|
|00003900| 53 45 53 0a 58 09 69 66 | 20 28 61 74 74 72 29 0a |SES.X.if| (attr).|
|00003910| 58 09 09 77 73 74 61 6e | 64 6f 75 74 28 77 69 6e |X..wstan|dout(win|
|00003920| 29 3b 0a 58 09 77 61 64 | 64 73 74 72 28 77 69 6e |);.X.wad|dstr(win|
|00003930| 2c 20 73 74 72 29 3b 0a | 58 09 69 66 20 28 61 74 |, str);.|X.if (at|
|00003940| 74 72 29 0a 58 09 09 77 | 73 74 61 6e 64 65 6e 64 |tr).X..w|standend|
|00003950| 28 77 69 6e 29 3b 0a 58 | 23 65 6c 73 65 20 2f 2a |(win);.X|#else /*|
|00003960| 20 4f 4c 44 43 55 52 53 | 45 53 20 2a 2f 0a 58 0a | OLDCURS|ES */.X.|
|00003970| 58 23 69 66 64 65 66 20 | 4e 4f 50 52 4f 4d 4f 54 |X#ifdef |NOPROMOT|
|00003980| 45 0a 58 09 09 09 09 09 | 2f 2a 20 64 6f 65 73 20 |E.X.....|/* does |
|00003990| 74 68 65 20 63 61 70 61 | 62 69 6c 69 74 79 20 65 |the capa|bility e|
|000039a0| 78 69 73 74 3f 20 2a 2f | 0a 58 09 64 6f 5f 69 74 |xist? */|.X.do_it|
|000039b0| 20 3d 20 30 3b 0a 58 09 | 69 66 20 28 28 61 74 74 | = 0;.X.|if ((att|
|000039c0| 72 20 26 20 41 5f 53 54 | 41 4e 44 4f 55 54 29 20 |r & A_ST|ANDOUT) |
|000039d0| 26 26 20 65 6e 74 65 72 | 5f 73 74 61 6e 64 6f 75 |&& enter|_standou|
|000039e0| 74 5f 6d 6f 64 65 29 0a | 58 09 09 64 6f 5f 69 74 |t_mode).|X..do_it|
|000039f0| 2b 2b 3b 0a 58 09 69 66 | 20 28 28 61 74 74 72 20 |++;.X.if| ((attr |
|00003a00| 26 20 41 5f 55 4e 44 45 | 52 4c 49 4e 45 29 20 26 |& A_UNDE|RLINE) &|
|00003a10| 26 20 65 6e 74 65 72 5f | 75 6e 64 65 72 6c 69 6e |& enter_|underlin|
|00003a20| 65 5f 6d 6f 64 65 29 0a | 58 09 09 64 6f 5f 69 74 |e_mode).|X..do_it|
|00003a30| 2b 2b 3b 0a 58 09 69 66 | 20 28 28 61 74 74 72 20 |++;.X.if| ((attr |
|00003a40| 26 20 41 5f 52 45 56 45 | 52 53 45 29 20 26 26 20 |& A_REVE|RSE) && |
|00003a50| 28 65 6e 74 65 72 5f 72 | 65 76 65 72 73 65 5f 6d |(enter_r|everse_m|
|00003a60| 6f 64 65 20 7c 7c 20 65 | 6e 74 65 72 5f 73 74 61 |ode || e|nter_sta|
|00003a70| 6e 64 6f 75 74 5f 6d 6f | 64 65 29 29 0a 58 09 09 |ndout_mo|de)).X..|
|00003a80| 64 6f 5f 69 74 2b 2b 3b | 0a 58 09 69 66 20 28 28 |do_it++;|.X.if ((|
|00003a90| 61 74 74 72 20 26 20 41 | 5f 42 4c 49 4e 4b 29 20 |attr & A|_BLINK) |
|00003aa0| 26 26 20 65 6e 74 65 72 | 5f 62 6c 69 6e 6b 5f 6d |&& enter|_blink_m|
|00003ab0| 6f 64 65 29 0a 58 09 09 | 64 6f 5f 69 74 2b 2b 3b |ode).X..|do_it++;|
|00003ac0| 0a 58 09 69 66 20 28 28 | 61 74 74 72 20 26 20 41 |.X.if ((|attr & A|
|00003ad0| 5f 42 4f 4c 44 29 20 26 | 26 20 65 6e 74 65 72 5f |_BOLD) &|& enter_|
|00003ae0| 62 6f 6c 64 5f 6d 6f 64 | 65 29 0a 58 09 09 64 6f |bold_mod|e).X..do|
|00003af0| 5f 69 74 2b 2b 3b 0a 58 | 09 69 66 20 28 28 61 74 |_it++;.X|.if ((at|
|00003b00| 74 72 20 26 20 41 5f 44 | 49 4d 29 20 26 26 20 65 |tr & A_D|IM) && e|
|00003b10| 6e 74 65 72 5f 64 69 6d | 5f 6d 6f 64 65 29 0a 58 |nter_dim|_mode).X|
|00003b20| 09 09 64 6f 5f 69 74 2b | 2b 3b 0a 58 23 65 6c 73 |..do_it+|+;.X#els|
|00003b30| 65 20 2f 2a 20 4e 4f 50 | 52 4f 4d 4f 54 45 20 2a |e /* NOP|ROMOTE *|
|00003b40| 2f 0a 58 09 64 6f 5f 69 | 74 20 3d 20 31 3b 0a 58 |/.X.do_i|t = 1;.X|
|00003b50| 23 65 6e 64 69 66 20 2f | 2a 20 4e 4f 50 52 4f 4d |#endif /|* NOPROM|
|00003b60| 4f 54 45 20 2a 2f 0a 58 | 0a 58 09 69 66 20 28 64 |OTE */.X|.X.if (d|
|00003b70| 6f 5f 69 74 29 0a 58 09 | 09 77 61 74 74 72 6f 6e |o_it).X.|.wattron|
|00003b80| 28 77 69 6e 2c 20 61 74 | 74 72 29 3b 0a 58 09 09 |(win, at|tr);.X..|
|00003b90| 09 09 09 2f 2a 20 70 72 | 69 6e 74 20 74 68 65 20 |.../* pr|int the |
|00003ba0| 73 74 72 69 6e 67 20 2a | 2f 0a 58 09 77 61 64 64 |string *|/.X.wadd|
|00003bb0| 73 74 72 28 77 69 6e 2c | 20 73 74 72 29 3b 0a 58 |str(win,| str);.X|
|00003bc0| 09 69 66 20 28 64 6f 5f | 69 74 29 0a 58 09 09 77 |.if (do_|it).X..w|
|00003bd0| 61 74 74 72 6f 66 66 28 | 77 69 6e 2c 20 61 74 74 |attroff(|win, att|
|00003be0| 72 29 3b 0a 58 23 65 6e | 64 69 66 20 2f 2a 20 4f |r);.X#en|dif /* O|
|00003bf0| 4c 44 43 55 52 53 45 53 | 20 2a 2f 0a 58 09 72 65 |LDCURSES| */.X.re|
|00003c00| 74 75 72 6e 28 30 29 3b | 0a 58 7d 0a 58 0a 58 2f |turn(0);|.X}.X.X/|
|00003c10| 2a 0a 58 20 2a 20 43 68 | 61 6e 67 65 20 76 69 64 |*.X * Ch|ange vid|
|00003c20| 65 6f 20 61 74 74 72 69 | 62 75 74 65 73 20 77 68 |eo attri|butes wh|
|00003c30| 69 6c 65 20 70 72 69 6e | 74 69 6e 67 20 61 20 63 |ile prin|ting a c|
|00003c40| 68 61 72 61 63 74 65 72 | 2e 0a 58 20 2a 2f 0a 58 |haracter|..X */.X|
|00003c50| 0a 77 61 74 74 72 63 68 | 28 77 69 6e 2c 20 61 74 |.wattrch|(win, at|
|00003c60| 74 72 2c 20 63 29 0a 57 | 49 4e 44 4f 57 20 2a 77 |tr, c).W|INDOW *w|
|00003c70| 69 6e 3b 0a 63 68 74 79 | 70 65 20 61 74 74 72 3b |in;.chty|pe attr;|
|00003c80| 0a 63 68 61 72 20 63 3b | 0a 58 7b 0a 58 09 69 6e |.char c;|.X{.X.in|
|00003c90| 74 20 64 6f 5f 69 74 3b | 0a 58 0a 58 09 69 66 20 |t do_it;|.X.X.if |
|00003ca0| 28 63 20 3d 3d 20 27 5c | 30 27 29 0a 58 09 09 72 |(c == '\|0').X..r|
|00003cb0| 65 74 75 72 6e 28 30 29 | 3b 0a 58 23 69 66 64 65 |eturn(0)|;.X#ifde|
|00003cc0| 66 20 4f 4c 44 43 55 52 | 53 45 53 0a 58 09 69 66 |f OLDCUR|SES.X.if|
|00003cd0| 20 28 61 74 74 72 29 0a | 58 09 09 77 73 74 61 6e | (attr).|X..wstan|
|00003ce0| 64 6f 75 74 28 77 69 6e | 29 3b 0a 58 09 77 61 64 |dout(win|);.X.wad|
|00003cf0| 64 63 68 28 77 69 6e 2c | 20 28 63 68 74 79 70 65 |dch(win,| (chtype|
|00003d00| 29 20 63 29 3b 0a 58 09 | 69 66 20 28 61 74 74 72 |) c);.X.|if (attr|
|00003d10| 29 0a 58 09 09 77 73 74 | 61 6e 64 65 6e 64 28 77 |).X..wst|andend(w|
|00003d20| 69 6e 29 3b 0a 58 23 65 | 6c 73 65 20 2f 2a 20 4f |in);.X#e|lse /* O|
|00003d30| 4c 44 43 55 52 53 45 53 | 20 2a 2f 0a 58 0a 58 23 |LDCURSES| */.X.X#|
|00003d40| 69 66 64 65 66 20 4e 4f | 50 52 4f 4d 4f 54 45 0a |ifdef NO|PROMOTE.|
|00003d50| 58 09 09 09 09 09 2f 2a | 20 64 6f 65 73 20 74 68 |X...../*| does th|
|00003d60| 65 20 63 61 70 61 62 69 | 6c 69 74 79 20 65 78 69 |e capabi|lity exi|
|00003d70| 73 74 3f 20 2a 2f 0a 58 | 09 64 6f 5f 69 74 20 3d |st? */.X|.do_it =|
|00003d80| 20 30 3b 0a 58 09 69 66 | 20 28 28 61 74 74 72 20 | 0;.X.if| ((attr |
|00003d90| 26 20 41 5f 53 54 41 4e | 44 4f 55 54 29 20 26 26 |& A_STAN|DOUT) &&|
|00003da0| 20 65 6e 74 65 72 5f 73 | 74 61 6e 64 6f 75 74 5f | enter_s|tandout_|
|00003db0| 6d 6f 64 65 29 0a 58 09 | 09 64 6f 5f 69 74 2b 2b |mode).X.|.do_it++|
|00003dc0| 3b 0a 58 09 69 66 20 28 | 28 61 74 74 72 20 26 20 |;.X.if (|(attr & |
|00003dd0| 41 5f 55 4e 44 45 52 4c | 49 4e 45 29 20 26 26 20 |A_UNDERL|INE) && |
|00003de0| 65 6e 74 65 72 5f 75 6e | 64 65 72 6c 69 6e 65 5f |enter_un|derline_|
|00003df0| 6d 6f 64 65 29 0a 58 09 | 09 64 6f 5f 69 74 2b 2b |mode).X.|.do_it++|
|00003e00| 3b 0a 58 09 69 66 20 28 | 28 61 74 74 72 20 26 20 |;.X.if (|(attr & |
|00003e10| 41 5f 52 45 56 45 52 53 | 45 29 20 26 26 20 28 65 |A_REVERS|E) && (e|
|00003e20| 6e 74 65 72 5f 72 65 76 | 65 72 73 65 5f 6d 6f 64 |nter_rev|erse_mod|
|00003e30| 65 20 7c 7c 20 65 6e 74 | 65 72 5f 73 74 61 6e 64 |e || ent|er_stand|
|00003e40| 6f 75 74 5f 6d 6f 64 65 | 29 29 0a 58 09 09 64 6f |out_mode|)).X..do|
|00003e50| 5f 69 74 2b 2b 3b 0a 58 | 09 69 66 20 28 28 61 74 |_it++;.X|.if ((at|
|00003e60| 74 72 20 26 20 41 5f 42 | 4c 49 4e 4b 29 20 26 26 |tr & A_B|LINK) &&|
|00003e70| 20 65 6e 74 65 72 5f 62 | 6c 69 6e 6b 5f 6d 6f 64 | enter_b|link_mod|
|00003e80| 65 29 0a 58 09 09 64 6f | 5f 69 74 2b 2b 3b 0a 58 |e).X..do|_it++;.X|
|00003e90| 09 69 66 20 28 28 61 74 | 74 72 20 26 20 41 5f 42 |.if ((at|tr & A_B|
|00003ea0| 4f 4c 44 29 20 26 26 20 | 65 6e 74 65 72 5f 62 6f |OLD) && |enter_bo|
|00003eb0| 6c 64 5f 6d 6f 64 65 29 | 0a 58 09 09 64 6f 5f 69 |ld_mode)|.X..do_i|
|00003ec0| 74 2b 2b 3b 0a 58 09 69 | 66 20 28 28 61 74 74 72 |t++;.X.i|f ((attr|
|00003ed0| 20 26 20 41 5f 44 49 4d | 29 20 26 26 20 65 6e 74 | & A_DIM|) && ent|
|00003ee0| 65 72 5f 64 69 6d 5f 6d | 6f 64 65 29 0a 58 09 09 |er_dim_m|ode).X..|
|00003ef0| 64 6f 5f 69 74 2b 2b 3b | 0a 58 23 65 6c 73 65 20 |do_it++;|.X#else |
|00003f00| 2f 2a 20 4e 4f 50 52 4f | 4d 4f 54 45 20 2a 2f 0a |/* NOPRO|MOTE */.|
|00003f10| 58 09 64 6f 5f 69 74 20 | 3d 20 31 3b 0a 58 23 65 |X.do_it |= 1;.X#e|
|00003f20| 6e 64 69 66 20 2f 2a 20 | 4e 4f 50 52 4f 4d 4f 54 |ndif /* |NOPROMOT|
|00003f30| 45 20 2a 2f 0a 58 0a 58 | 09 69 66 20 28 64 6f 5f |E */.X.X|.if (do_|
|00003f40| 69 74 29 0a 58 09 09 77 | 61 74 74 72 6f 6e 28 77 |it).X..w|attron(w|
|00003f50| 69 6e 2c 20 61 74 74 72 | 29 3b 0a 58 09 09 09 09 |in, attr|);.X....|
|00003f60| 09 2f 2a 20 70 72 69 6e | 74 20 74 68 65 20 63 68 |./* prin|t the ch|
|00003f70| 61 72 61 63 74 65 72 20 | 2a 2f 0a 58 09 77 61 64 |aracter |*/.X.wad|
|00003f80| 64 63 68 28 77 69 6e 2c | 20 28 63 68 74 79 70 65 |dch(win,| (chtype|
|00003f90| 29 20 63 29 3b 0a 58 09 | 69 66 20 28 64 6f 5f 69 |) c);.X.|if (do_i|
|00003fa0| 74 29 0a 58 09 09 77 61 | 74 74 72 6f 66 66 28 77 |t).X..wa|ttroff(w|
|00003fb0| 69 6e 2c 20 61 74 74 72 | 29 3b 0a 58 23 65 6e 64 |in, attr|);.X#end|
|00003fc0| 69 66 20 2f 2a 20 4f 4c | 44 43 55 52 53 45 53 20 |if /* OL|DCURSES |
|00003fd0| 2a 2f 0a 58 09 72 65 74 | 75 72 6e 28 30 29 3b 0a |*/.X.ret|urn(0);.|
|00003fe0| 58 7d 0a 58 0a 58 0a 58 | 2f 2a 0a 58 20 2a 20 43 |X}.X.X.X|/*.X * C|
|00003ff0| 68 61 6e 67 65 20 76 69 | 64 65 6f 20 61 74 74 72 |hange vi|deo attr|
|00004000| 69 62 75 74 65 73 20 77 | 68 69 6c 65 20 70 72 69 |ibutes w|hile pri|
|00004010| 6e 74 69 6e 67 20 61 20 | 6e 75 6d 62 65 72 2e 0a |nting a |number..|
|00004020| 58 20 2a 2f 0a 58 0a 77 | 61 74 74 72 6e 75 6d 28 |X */.X.w|attrnum(|
|00004030| 77 69 6e 2c 20 61 74 74 | 72 2c 20 6e 75 6d 29 0a |win, att|r, num).|
|00004040| 57 49 4e 44 4f 57 20 2a | 77 69 6e 3b 0a 63 68 74 |WINDOW *|win;.cht|
|00004050| 79 70 65 20 61 74 74 72 | 3b 0a 69 6e 74 20 6e 75 |ype attr|;.int nu|
|00004060| 6d 3b 0a 58 7b 0a 58 09 | 69 6e 74 20 64 6f 5f 69 |m;.X{.X.|int do_i|
|00004070| 74 3b 0a 58 09 63 68 61 | 72 20 62 75 66 5b 34 30 |t;.X.cha|r buf[40|
|00004080| 5d 3b 0a 58 0a 58 09 73 | 70 72 69 6e 74 66 28 62 |];.X.X.s|printf(b|
|00004090| 75 66 2c 20 22 25 64 22 | 2c 20 6e 75 6d 29 3b 0a |uf, "%d"|, num);.|
|000040a0| 58 0a 58 23 69 66 64 65 | 66 20 4f 4c 44 43 55 52 |X.X#ifde|f OLDCUR|
|000040b0| 53 45 53 0a 58 09 69 66 | 20 28 61 74 74 72 29 0a |SES.X.if| (attr).|
|000040c0| 58 09 09 77 73 74 61 6e | 64 6f 75 74 28 77 69 6e |X..wstan|dout(win|
|000040d0| 29 3b 0a 58 09 77 61 64 | 64 73 74 72 28 77 69 6e |);.X.wad|dstr(win|
|000040e0| 2c 20 62 75 66 29 3b 0a | 58 09 69 66 20 28 61 74 |, buf);.|X.if (at|
|000040f0| 74 72 29 0a 58 09 09 77 | 73 74 61 6e 64 65 6e 64 |tr).X..w|standend|
|00004100| 28 77 69 6e 29 3b 0a 58 | 23 65 6c 73 65 20 2f 2a |(win);.X|#else /*|
|00004110| 20 4f 4c 44 43 55 52 53 | 45 53 20 2a 2f 0a 58 0a | OLDCURS|ES */.X.|
|00004120| 58 23 69 66 64 65 66 20 | 4e 4f 50 52 4f 4d 4f 54 |X#ifdef |NOPROMOT|
|00004130| 45 0a 58 09 09 09 09 09 | 2f 2a 20 64 6f 65 73 20 |E.X.....|/* does |
|00004140| 74 68 65 20 63 61 70 61 | 62 69 6c 69 74 79 20 65 |the capa|bility e|
|00004150| 78 69 73 74 3f 20 2a 2f | 0a 58 09 64 6f 5f 69 74 |xist? */|.X.do_it|
|00004160| 20 3d 20 30 3b 0a 58 09 | 69 66 20 28 28 61 74 74 | = 0;.X.|if ((att|
|00004170| 72 20 26 20 41 5f 53 54 | 41 4e 44 4f 55 54 29 20 |r & A_ST|ANDOUT) |
|00004180| 26 26 20 65 6e 74 65 72 | 5f 73 74 61 6e 64 6f 75 |&& enter|_standou|
|00004190| 74 5f 6d 6f 64 65 29 0a | 58 09 09 64 6f 5f 69 74 |t_mode).|X..do_it|
|000041a0| 2b 2b 3b 0a 58 09 69 66 | 20 28 28 61 74 74 72 20 |++;.X.if| ((attr |
|000041b0| 26 20 41 5f 55 4e 44 45 | 52 4c 49 4e 45 29 20 26 |& A_UNDE|RLINE) &|
|000041c0| 26 20 65 6e 74 65 72 5f | 75 6e 64 65 72 6c 69 6e |& enter_|underlin|
|000041d0| 65 5f 6d 6f 64 65 29 0a | 58 09 09 64 6f 5f 69 74 |e_mode).|X..do_it|
|000041e0| 2b 2b 3b 0a 58 09 69 66 | 20 28 28 61 74 74 72 20 |++;.X.if| ((attr |
|000041f0| 26 20 41 5f 52 45 56 45 | 52 53 45 29 20 26 26 20 |& A_REVE|RSE) && |
|00004200| 28 65 6e 74 65 72 5f 72 | 65 76 65 72 73 65 5f 6d |(enter_r|everse_m|
|00004210| 6f 64 65 20 7c 7c 20 65 | 6e 74 65 72 5f 73 74 61 |ode || e|nter_sta|
|00004220| 6e 64 6f 75 74 5f 6d 6f | 64 65 29 29 0a 58 09 09 |ndout_mo|de)).X..|
|00004230| 64 6f 5f 69 74 2b 2b 3b | 0a 58 09 69 66 20 28 28 |do_it++;|.X.if ((|
|00004240| 61 74 74 72 20 26 20 41 | 5f 42 4c 49 4e 4b 29 20 |attr & A|_BLINK) |
|00004250| 26 26 20 65 6e 74 65 72 | 5f 62 6c 69 6e 6b 5f 6d |&& enter|_blink_m|
|00004260| 6f 64 65 29 0a 58 09 09 | 64 6f 5f 69 74 2b 2b 3b |ode).X..|do_it++;|
|00004270| 0a 58 09 69 66 20 28 28 | 61 74 74 72 20 26 20 41 |.X.if ((|attr & A|
|00004280| 5f 42 4f 4c 44 29 20 26 | 26 20 65 6e 74 65 72 5f |_BOLD) &|& enter_|
|00004290| 62 6f 6c 64 5f 6d 6f 64 | 65 29 0a 58 09 09 64 6f |bold_mod|e).X..do|
|000042a0| 5f 69 74 2b 2b 3b 0a 58 | 09 69 66 20 28 28 61 74 |_it++;.X|.if ((at|
|000042b0| 74 72 20 26 20 41 5f 44 | 49 4d 29 20 26 26 20 65 |tr & A_D|IM) && e|
|000042c0| 6e 74 65 72 5f 64 69 6d | 5f 6d 6f 64 65 29 0a 58 |nter_dim|_mode).X|
|000042d0| 09 09 64 6f 5f 69 74 2b | 2b 3b 0a 58 23 65 6c 73 |..do_it+|+;.X#els|
|000042e0| 65 20 2f 2a 20 4e 4f 50 | 52 4f 4d 4f 54 45 20 2a |e /* NOP|ROMOTE *|
|000042f0| 2f 0a 58 09 64 6f 5f 69 | 74 20 3d 20 31 3b 0a 58 |/.X.do_i|t = 1;.X|
|00004300| 23 65 6e 64 69 66 20 2f | 2a 20 4e 4f 50 52 4f 4d |#endif /|* NOPROM|
|00004310| 4f 54 45 20 2a 2f 0a 58 | 0a 58 09 69 66 20 28 64 |OTE */.X|.X.if (d|
|00004320| 6f 5f 69 74 29 0a 58 09 | 09 77 61 74 74 72 6f 6e |o_it).X.|.wattron|
|00004330| 28 77 69 6e 2c 20 61 74 | 74 72 29 3b 0a 58 09 09 |(win, at|tr);.X..|
|00004340| 09 09 09 2f 2a 20 70 72 | 69 6e 74 20 74 68 65 20 |.../* pr|int the |
|00004350| 63 68 61 72 61 63 74 65 | 72 20 2a 2f 0a 58 09 77 |characte|r */.X.w|
|00004360| 61 64 64 73 74 72 28 77 | 69 6e 2c 20 62 75 66 29 |addstr(w|in, buf)|
|00004370| 3b 0a 58 09 69 66 20 28 | 64 6f 5f 69 74 29 0a 58 |;.X.if (|do_it).X|
|00004380| 09 09 77 61 74 74 72 6f | 66 66 28 77 69 6e 2c 20 |..wattro|ff(win, |
|00004390| 61 74 74 72 29 3b 0a 58 | 23 65 6e 64 69 66 20 2f |attr);.X|#endif /|
|000043a0| 2a 20 4f 4c 44 43 55 52 | 53 45 53 20 2a 2f 0a 58 |* OLDCUR|SES */.X|
|000043b0| 09 72 65 74 75 72 6e 28 | 30 29 3b 0a 58 7d 0a 58 |.return(|0);.X}.X|
|000043c0| 0a 58 2f 2a 0a 58 20 2a | 20 50 72 6f 6d 70 74 20 |.X/*.X *| Prompt |
|000043d0| 66 6f 72 20 61 20 59 65 | 73 20 6f 72 20 4e 6f 20 |for a Ye|s or No |
|000043e0| 61 6e 73 77 65 72 2e 20 | 20 45 63 68 6f 20 74 68 |answer. | Echo th|
|000043f0| 65 20 73 69 6e 67 6c 65 | 20 6b 65 79 20 69 6e 70 |e single| key inp|
|00004400| 75 74 20 61 73 20 77 6f | 72 64 73 2e 0a 58 20 2a |ut as wo|rds..X *|
|00004410| 20 48 61 6e 64 6c 65 20 | 74 68 65 20 66 75 6e 6e | Handle |the funn|
|00004420| 79 20 63 75 72 73 6f 72 | 20 6d 6f 76 65 6d 65 6e |y cursor| movemen|
|00004430| 74 20 70 72 6f 62 6c 65 | 6d 73 20 77 69 74 68 20 |t proble|ms with |
|00004440| 6d 61 67 69 63 20 63 6f | 6f 6b 69 65 20 74 65 72 |magic co|okie ter|
|00004450| 6d 69 6e 61 6c 73 2e 0a | 58 20 2a 20 52 65 74 75 |minals..|X * Retu|
|00004460| 72 6e 73 20 61 20 31 20 | 6f 6e 20 79 65 73 2e 0a |rns a 1 |on yes..|
|00004470| 58 20 2a 2f 0a 58 0a 69 | 6e 74 0a 79 65 73 5f 70 |X */.X.i|nt.yes_p|
|00004480| 72 6f 6d 70 74 28 77 69 | 6e 2c 20 79 2c 20 78 2c |rompt(wi|n, y, x,|
|00004490| 20 61 74 74 72 2c 20 73 | 74 72 29 0a 57 49 4e 44 | attr, s|tr).WIND|
|000044a0| 4f 57 20 2a 77 69 6e 3b | 0a 69 6e 74 20 79 2c 20 |OW *win;|.int y, |
|000044b0| 78 3b 0a 63 68 74 79 70 | 65 20 61 74 74 72 3b 0a |x;.chtyp|e attr;.|
|000044c0| 63 68 61 72 20 2a 73 74 | 72 3b 0a 58 7b 0a 58 09 |char *st|r;.X{.X.|
|000044d0| 69 6e 74 20 72 65 74 5f | 63 6f 64 65 2c 20 61 6e |int ret_|code, an|
|000044e0| 73 3b 0a 58 09 63 68 61 | 72 20 6e 65 77 5f 73 74 |s;.X.cha|r new_st|
|000044f0| 72 5b 38 30 5d 2c 20 2a | 73 74 72 63 70 79 28 29 |r[80], *|strcpy()|
|00004500| 2c 20 2a 73 74 72 63 61 | 74 28 29 3b 0a 58 09 09 |, *strca|t();.X..|
|00004510| 09 09 09 2f 2a 20 73 61 | 6e 69 74 79 20 63 68 65 |.../* sa|nity che|
|00004520| 63 6b 69 6e 67 20 2a 2f | 0a 58 09 69 66 20 28 73 |cking */|.X.if (s|
|00004530| 74 72 6c 65 6e 28 73 74 | 72 29 20 3e 20 37 31 29 |trlen(st|r) > 71)|
|00004540| 0a 58 09 09 2a 28 73 74 | 72 2b 37 31 29 20 3d 20 |.X..*(st|r+71) = |
|00004550| 27 5c 30 27 3b 0a 58 09 | 09 09 09 09 2f 2a 20 62 |'\0';.X.|..../* b|
|00004560| 75 69 6c 64 20 61 6e 64 | 20 64 69 73 70 6c 61 79 |uild and| display|
|00004570| 20 74 68 65 20 70 72 6f | 6d 70 74 20 2a 2f 0a 58 | the pro|mpt */.X|
|00004580| 09 73 74 72 63 70 79 28 | 6e 65 77 5f 73 74 72 2c |.strcpy(|new_str,|
|00004590| 20 73 74 72 29 3b 0a 58 | 09 73 74 72 63 61 74 28 | str);.X|.strcat(|
|000045a0| 6e 65 77 5f 73 74 72 2c | 20 22 3f 20 28 79 2f 6e |new_str,| "? (y/n|
|000045b0| 29 3a 22 29 3b 0a 58 09 | 6d 76 77 61 74 74 72 73 |):");.X.|mvwattrs|
|000045c0| 74 72 28 77 69 6e 2c 20 | 79 2c 20 78 2c 20 61 74 |tr(win, |y, x, at|
|000045d0| 74 72 2c 20 6e 65 77 5f | 73 74 72 29 3b 0a 58 09 |tr, new_|str);.X.|
|000045e0| 77 6d 6f 76 65 28 77 69 | 6e 2c 20 79 2c 20 73 74 |wmove(wi|n, y, st|
|000045f0| 72 6c 65 6e 28 6e 65 77 | 5f 73 74 72 29 2b 78 2b |rlen(new|_str)+x+|
|00004600| 32 29 3b 0a 58 09 77 72 | 65 66 72 65 73 68 28 77 |2);.X.wr|efresh(w|
|00004610| 69 6e 29 3b 0a 58 09 09 | 0a 58 09 72 65 74 5f 63 |in);.X..|.X.ret_c|
|00004620| 6f 64 65 20 3d 20 2d 31 | 3b 0a 58 09 77 68 69 6c |ode = -1|;.X.whil|
|00004630| 65 20 28 72 65 74 5f 63 | 6f 64 65 20 3d 3d 20 2d |e (ret_c|ode == -|
|00004640| 31 29 20 7b 0a 58 09 09 | 09 09 09 2f 2a 20 69 66 |1) {.X..|.../* if|
|00004650| 20 69 6e 73 69 64 65 20 | 61 20 73 63 72 69 70 74 | inside |a script|
|00004660| 20 2a 2f 0a 58 09 09 69 | 66 20 28 73 74 61 74 75 | */.X..i|f (statu|
|00004670| 73 2d 3e 64 75 70 5f 66 | 64 20 21 3d 20 2d 31 29 |s->dup_f|d != -1)|
|00004680| 0a 58 09 09 09 61 6e 73 | 20 3d 20 77 61 69 74 5f |.X...ans| = wait_|
|00004690| 6b 65 79 28 77 69 6e 2c | 20 35 29 3b 0a 58 09 09 |key(win,| 5);.X..|
|000046a0| 65 6c 73 65 0a 58 09 09 | 09 61 6e 73 20 3d 20 77 |else.X..|.ans = w|
|000046b0| 67 65 74 63 68 28 77 69 | 6e 29 3b 0a 58 0a 58 09 |getch(wi|n);.X.X.|
|000046c0| 09 73 77 69 74 63 68 20 | 28 61 6e 73 29 20 7b 0a |.switch |(ans) {.|
|000046d0| 58 09 09 09 63 61 73 65 | 20 2d 31 3a 0a 58 09 09 |X...case| -1:.X..|
|000046e0| 09 63 61 73 65 20 27 79 | 27 3a 0a 58 09 09 09 63 |.case 'y|':.X...c|
|000046f0| 61 73 65 20 27 59 27 3a | 0a 58 09 09 09 09 77 61 |ase 'Y':|.X....wa|
|00004700| 64 64 73 74 72 28 77 69 | 6e 2c 20 22 59 65 73 22 |ddstr(wi|n, "Yes"|
|00004710| 29 3b 0a 58 09 09 09 09 | 72 65 74 5f 63 6f 64 65 |);.X....|ret_code|
|00004720| 20 3d 20 31 3b 0a 58 09 | 09 09 09 62 72 65 61 6b | = 1;.X.|...break|
|00004730| 3b 0a 58 09 09 09 63 61 | 73 65 20 27 6e 27 3a 0a |;.X...ca|se 'n':.|
|00004740| 58 09 09 09 63 61 73 65 | 20 27 4e 27 3a 0a 58 09 |X...case| 'N':.X.|
|00004750| 09 09 63 61 73 65 20 45 | 53 43 3a 0a 58 09 09 09 |..case E|SC:.X...|
|00004760| 09 77 61 64 64 73 74 72 | 28 77 69 6e 2c 20 22 4e |.waddstr|(win, "N|
|00004770| 6f 22 29 3b 0a 58 09 09 | 09 09 72 65 74 5f 63 6f |o");.X..|..ret_co|
|00004780| 64 65 20 3d 20 30 3b 0a | 58 09 09 09 09 62 72 65 |de = 0;.|X....bre|
|00004790| 61 6b 3b 0a 58 09 09 09 | 64 65 66 61 75 6c 74 3a |ak;.X...|default:|
|000047a0| 0a 58 09 09 09 09 62 65 | 65 70 28 29 3b 0a 58 0a |.X....be|ep();.X.|
|000047b0| 58 09 09 7d 0a 58 09 7d | 0a 58 09 77 72 65 66 72 |X..}.X.}|.X.wrefr|
|000047c0| 65 73 68 28 77 69 6e 29 | 3b 0a 58 09 72 65 74 75 |esh(win)|;.X.retu|
|000047d0| 72 6e 28 72 65 74 5f 63 | 6f 64 65 29 3b 0a 58 7d |rn(ret_c|ode);.X}|
|000047e0| 0a 58 0a 58 2f 2a 0a 58 | 20 2a 20 48 61 6e 64 79 |.X.X/*.X| * Handy|
|000047f0| 20 72 6f 75 74 69 6e 65 | 20 66 6f 72 20 63 6c 65 | routine| for cle|
|00004800| 61 72 2d 74 6f 2d 65 6e | 64 2d 6f 66 2d 6c 69 6e |ar-to-en|d-of-lin|
|00004810| 65 2e 20 20 46 69 78 65 | 73 20 75 70 20 74 68 65 |e. Fixe|s up the|
|00004820| 20 62 6f 78 20 69 66 20 | 72 65 71 75 65 73 74 65 | box if |requeste|
|00004830| 64 2e 0a 58 20 2a 2f 0a | 58 0a 69 6e 74 0a 63 6c |d..X */.|X.int.cl|
|00004840| 65 61 72 5f 6c 69 6e 65 | 28 77 69 6e 2c 20 79 2c |ear_line|(win, y,|
|00004850| 20 78 2c 20 72 65 5f 62 | 6f 78 29 0a 57 49 4e 44 | x, re_b|ox).WIND|
|00004860| 4f 57 20 2a 77 69 6e 3b | 0a 69 6e 74 20 79 2c 20 |OW *win;|.int y, |
|00004870| 78 2c 20 72 65 5f 62 6f | 78 3b 0a 58 7b 0a 58 09 |x, re_bo|x;.X{.X.|
|00004880| 69 66 20 28 77 6d 6f 76 | 65 28 77 69 6e 2c 20 79 |if (wmov|e(win, y|
|00004890| 2c 20 78 29 20 3d 3d 20 | 45 52 52 29 0a 58 09 09 |, x) == |ERR).X..|
|000048a0| 72 65 74 75 72 6e 28 45 | 52 52 29 3b 0a 58 0a 58 |return(E|RR);.X.X|
|000048b0| 09 77 63 6c 72 74 6f 65 | 6f 6c 28 77 69 6e 29 3b |.wclrtoe|ol(win);|
|000048c0| 0a 58 0a 58 09 69 66 20 | 28 72 65 5f 62 6f 78 29 |.X.X.if |(re_box)|
|000048d0| 20 7b 0a 58 09 09 6d 76 | 77 61 64 64 63 68 28 77 | {.X..mv|waddch(w|
|000048e0| 69 6e 2c 20 79 2c 20 77 | 69 6e 2d 3e 5f 6d 61 78 |in, y, w|in->_max|
|000048f0| 78 2d 31 2c 20 28 63 68 | 74 79 70 65 29 20 41 43 |x-1, (ch|type) AC|
|00004900| 53 5f 56 4c 49 4e 45 29 | 3b 0a 58 09 09 77 6d 6f |S_VLINE)|;.X..wmo|
|00004910| 76 65 28 77 69 6e 2c 20 | 79 2c 20 78 29 3b 0a 58 |ve(win, |y, x);.X|
|00004920| 09 7d 0a 58 09 72 65 74 | 75 72 6e 28 30 29 3b 0a |.}.X.ret|urn(0);.|
|00004930| 58 7d 0a 58 0a 58 2f 2a | 0a 58 20 2a 20 52 6f 75 |X}.X.X/*|.X * Rou|
|00004940| 74 69 6e 65 20 74 6f 20 | 6d 61 6b 65 20 61 20 68 |tine to |make a h|
|00004950| 6f 72 69 7a 6f 6e 74 61 | 6c 20 6c 69 6e 65 2e 20 |orizonta|l line. |
|00004960| 20 44 6f 65 73 20 4e 4f | 54 20 64 6f 20 61 20 77 | Does NO|T do a w|
|00004970| 72 65 66 72 65 73 68 28 | 29 2e 0a 58 20 2a 2f 0a |refresh(|)..X */.|
|00004980| 58 0a 69 6e 74 0a 68 6f | 72 69 7a 6f 6e 74 61 6c |X.int.ho|rizontal|
|00004990| 28 77 69 6e 2c 20 78 2c | 20 79 2c 20 6c 65 6e 29 |(win, x,| y, len)|
|000049a0| 0a 57 49 4e 44 4f 57 20 | 2a 77 69 6e 3b 0a 69 6e |.WINDOW |*win;.in|
|000049b0| 74 20 78 2c 20 79 2c 20 | 6c 65 6e 3b 0a 58 7b 0a |t x, y, |len;.X{.|
|000049c0| 58 09 77 6d 6f 76 65 28 | 77 69 6e 2c 20 78 2c 20 |X.wmove(|win, x, |
|000049d0| 79 29 3b 0a 58 0a 58 09 | 77 68 69 6c 65 20 28 6c |y);.X.X.|while (l|
|000049e0| 65 6e 2d 2d 29 0a 58 09 | 09 77 61 64 64 63 68 28 |en--).X.|.waddch(|
|000049f0| 77 69 6e 2c 20 41 43 53 | 5f 48 4c 49 4e 45 29 3b |win, ACS|_HLINE);|
|00004a00| 0a 58 0a 58 09 72 65 74 | 75 72 6e 28 30 29 3b 0a |.X.X.ret|urn(0);.|
|00004a10| 58 7d 0a 58 0a 58 2f 2a | 0a 58 20 2a 20 57 61 69 |X}.X.X/*|.X * Wai|
|00004a20| 74 20 66 6f 72 20 61 20 | 6b 65 79 20 6f 72 20 74 |t for a |key or t|
|00004a30| 69 6d 65 20 6f 75 74 2e | 20 20 52 65 74 75 72 6e |ime out.| Return|
|00004a40| 73 20 61 20 2d 31 20 6f | 6e 20 74 69 6d 65 6f 75 |s a -1 o|n timeou|
|00004a50| 74 2e 20 20 54 68 69 73 | 20 69 73 20 73 69 6d 69 |t. This| is simi|
|00004a60| 6c 61 72 0a 58 20 2a 20 | 74 6f 20 74 68 65 20 68 |lar.X * |to the h|
|00004a70| 61 6c 66 2d 64 65 6c 61 | 79 20 6d 6f 64 65 20 69 |alf-dela|y mode i|
|00004a80| 6e 20 74 68 65 20 6e 65 | 77 65 72 20 76 65 72 73 |n the ne|wer vers|
|00004a90| 69 6f 6e 73 20 6f 66 20 | 63 75 72 73 65 73 28 33 |ions of |curses(3|
|00004aa0| 29 2e 0a 58 20 2a 2f 0a | 58 0a 73 74 61 74 69 63 |)..X */.|X.static|
|00004ab0| 20 69 6e 74 20 77 6b 5f | 66 6c 61 67 3b 0a 73 74 | int wk_|flag;.st|
|00004ac0| 61 74 69 63 20 69 6e 74 | 20 77 6b 5f 66 6f 72 63 |atic int| wk_forc|
|00004ad0| 65 28 29 3b 0a 58 0a 58 | 2f 2a 20 41 52 47 53 55 |e();.X.X|/* ARGSU|
|00004ae0| 53 45 44 20 2a 2f 0a 69 | 6e 74 0a 77 61 69 74 5f |SED */.i|nt.wait_|
|00004af0| 6b 65 79 28 77 69 6e 2c | 20 73 65 63 29 0a 57 49 |key(win,| sec).WI|
|00004b00| 4e 44 4f 57 20 2a 77 69 | 6e 3b 0a 75 6e 73 69 67 |NDOW *wi|n;.unsig|
|00004b10| 6e 65 64 20 69 6e 74 20 | 73 65 63 3b 0a 58 7b 0a |ned int |sec;.X{.|
|00004b20| 58 09 69 6e 74 20 6b 65 | 79 3b 0a 58 09 75 6e 73 |X.int ke|y;.X.uns|
|00004b30| 69 67 6e 65 64 20 69 6e | 74 20 61 6c 61 72 6d 28 |igned in|t alarm(|
|00004b40| 29 3b 0a 58 23 69 66 64 | 65 66 20 57 47 45 54 43 |);.X#ifd|ef WGETC|
|00004b50| 48 5f 42 52 4f 4b 45 0a | 58 09 63 68 61 72 20 63 |H_BROKE.|X.char c|
|00004b60| 3b 0a 58 23 65 6e 64 69 | 66 20 2f 2a 20 57 47 45 |;.X#endi|f /* WGE|
|00004b70| 54 43 48 5f 42 52 4f 4b | 45 20 2a 2f 0a 58 0a 58 |TCH_BROK|E */.X.X|
|00004b80| 09 73 69 67 6e 61 6c 28 | 53 49 47 41 4c 52 4d 2c |.signal(|SIGALRM,|
|00004b90| 20 28 53 49 47 5f 54 59 | 50 45 28 2a 29 20 28 29 | (SIG_TY|PE(*) ()|
|00004ba0| 29 20 77 6b 5f 66 6f 72 | 63 65 29 3b 0a 58 09 77 |) wk_for|ce);.X.w|
|00004bb0| 6b 5f 66 6c 61 67 20 3d | 20 30 3b 0a 58 0a 58 09 |k_flag =| 0;.X.X.|
|00004bc0| 61 6c 61 72 6d 28 73 65 | 63 29 3b 0a 58 0a 58 23 |alarm(se|c);.X.X#|
|00004bd0| 69 66 64 65 66 20 42 53 | 44 0a 58 09 69 66 20 28 |ifdef BS|D.X.if (|
|00004be0| 73 65 74 6a 6d 70 28 77 | 6b 5f 62 75 66 29 29 0a |setjmp(w|k_buf)).|
|00004bf0| 58 09 09 72 65 74 75 72 | 6e 28 2d 31 29 3b 0a 58 |X..retur|n(-1);.X|
|00004c00| 23 65 6e 64 69 66 20 2f | 2a 20 42 53 44 20 2a 2f |#endif /|* BSD */|
|00004c10| 0a 58 0a 58 23 69 66 64 | 65 66 20 57 47 45 54 43 |.X.X#ifd|ef WGETC|
|00004c20| 48 5f 42 52 4f 4b 45 0a | 58 09 72 65 61 64 28 30 |H_BROKE.|X.read(0|
|00004c30| 2c 20 26 63 2c 20 31 29 | 3b 0a 58 09 6b 65 79 20 |, &c, 1)|;.X.key |
|00004c40| 3d 20 63 20 26 20 30 78 | 37 66 3b 0a 58 23 65 6c |= c & 0x|7f;.X#el|
|00004c50| 73 65 20 2f 2a 20 57 47 | 45 54 43 48 5f 42 52 4f |se /* WG|ETCH_BRO|
|00004c60| 4b 45 20 2a 2f 0a 58 09 | 6b 65 79 20 3d 20 77 67 |KE */.X.|key = wg|
|00004c70| 65 74 63 68 28 77 69 6e | 29 3b 0a 58 23 65 6e 64 |etch(win|);.X#end|
|00004c80| 69 66 20 2f 2a 20 57 47 | 45 54 43 48 5f 42 52 4f |if /* WG|ETCH_BRO|
|00004c90| 4b 45 20 2a 2f 0a 58 0a | 58 09 69 66 20 28 77 6b |KE */.X.|X.if (wk|
|00004ca0| 5f 66 6c 61 67 29 0a 58 | 09 09 72 65 74 75 72 6e |_flag).X|..return|
|00004cb0| 28 2d 31 29 3b 0a 58 09 | 61 6c 61 72 6d 28 30 29 |(-1);.X.|alarm(0)|
|00004cc0| 3b 0a 58 09 72 65 74 75 | 72 6e 28 6b 65 79 29 3b |;.X.retu|rn(key);|
|00004cd0| 0a 58 7d 0a 58 0a 58 2f | 2a 20 41 52 47 53 55 53 |.X}.X.X/|* ARGSUS|
|00004ce0| 45 44 20 2a 2f 0a 73 74 | 61 74 69 63 20 69 6e 74 |ED */.st|atic int|
|00004cf0| 0a 77 6b 5f 66 6f 72 63 | 65 28 64 75 6d 6d 79 29 |.wk_forc|e(dummy)|
|00004d00| 0a 69 6e 74 20 64 75 6d | 6d 79 3b 0a 58 7b 0a 58 |.int dum|my;.X{.X|
|00004d10| 23 69 66 64 65 66 20 42 | 53 44 0a 58 09 6c 6f 6e |#ifdef B|SD.X.lon|
|00004d20| 67 6a 6d 70 28 77 6b 5f | 62 75 66 2c 20 31 29 3b |gjmp(wk_|buf, 1);|
|00004d30| 0a 58 23 65 6c 73 65 20 | 2f 2a 20 42 53 44 20 2a |.X#else |/* BSD *|
|00004d40| 2f 0a 58 09 73 69 67 6e | 61 6c 28 53 49 47 41 4c |/.X.sign|al(SIGAL|
|00004d50| 52 4d 2c 20 28 53 49 47 | 5f 54 59 50 45 28 2a 29 |RM, (SIG|_TYPE(*)|
|00004d60| 20 28 29 29 20 77 6b 5f | 66 6f 72 63 65 29 3b 0a | ()) wk_|force);.|
|00004d70| 58 09 77 6b 5f 66 6c 61 | 67 20 3d 20 31 3b 0a 58 |X.wk_fla|g = 1;.X|
|00004d80| 09 72 65 74 75 72 6e 28 | 30 29 3b 0a 58 23 65 6e |.return(|0);.X#en|
|00004d90| 64 69 66 20 2f 2a 20 42 | 53 44 20 2a 2f 0a 58 7d |dif /* B|SD */.X}|
|00004da0| 0a 58 0a 58 2f 2a 0a 58 | 20 2a 20 48 65 72 65 20 |.X.X/*.X| * Here |
|00004db0| 61 72 65 20 73 6f 6d 65 | 20 72 6f 75 74 69 6e 65 |are some| routine|
|00004dc0| 73 20 74 68 61 74 20 61 | 72 65 20 70 72 6f 62 61 |s that a|re proba|
|00004dd0| 62 6c 79 20 6d 69 73 73 | 69 6e 67 20 66 72 6f 6d |bly miss|ing from|
|00004de0| 20 74 68 65 20 6f 6c 64 | 65 72 0a 58 20 2a 20 66 | the old|er.X * f|
|00004df0| 6c 61 76 6f 72 73 20 6f | 66 20 63 75 72 73 65 73 |lavors o|f curses|
|00004e00| 28 33 29 2e 0a 58 20 2a | 2f 0a 58 0a 58 23 69 66 |(3)..X *|/.X.X#if|
|00004e10| 64 65 66 20 4f 4c 44 43 | 55 52 53 45 53 0a 58 2f |def OLDC|URSES.X/|
|00004e20| 2a 0a 58 20 2a 20 4d 61 | 6b 65 20 74 68 65 20 74 |*.X * Ma|ke the t|
|00004e30| 65 72 6d 69 6e 61 6c 20 | 62 65 6c 6c 20 67 6f 20 |erminal |bell go |
|00004e40| 6f 66 66 0a 58 20 2a 2f | 0a 58 0a 69 6e 74 0a 62 |off.X */|.X.int.b|
|00004e50| 65 65 70 28 29 0a 58 7b | 0a 58 09 66 70 75 74 63 |eep().X{|.X.fputc|
|00004e60| 28 42 45 4c 2c 20 73 74 | 64 65 72 72 29 3b 0a 58 |(BEL, st|derr);.X|
|00004e70| 09 72 65 74 75 72 6e 28 | 30 29 3b 0a 58 7d 0a 58 |.return(|0);.X}.X|
|00004e80| 0a 58 2f 2a 0a 58 20 2a | 20 54 61 6b 65 20 74 68 |.X/*.X *| Take th|
|00004e90| 65 20 74 65 72 6d 69 6e | 61 6c 20 6f 75 74 20 6f |e termin|al out o|
|00004ea0| 66 20 74 68 65 20 22 63 | 75 72 73 65 73 20 6d 6f |f the "c|urses mo|
|00004eb0| 64 65 22 2e 20 20 54 68 | 65 20 74 5f 6d 6f 64 65 |de". Th|e t_mode|
|00004ec0| 20 73 74 72 75 63 74 75 | 72 65 20 77 61 73 20 0a | structu|re was .|
|00004ed0| 58 20 2a 20 63 61 70 74 | 75 72 65 64 20 62 65 66 |X * capt|ured bef|
|00004ee0| 6f 72 65 20 77 65 20 69 | 6e 69 74 69 61 6c 69 7a |ore we i|nitializ|
|00004ef0| 65 64 20 74 68 65 20 63 | 75 72 73 65 73 20 6d 6f |ed the c|urses mo|
|00004f00| 64 65 2e 0a 58 20 2a 2f | 0a 58 0a 69 6e 74 0a 72 |de..X */|.X.int.r|
|00004f10| 65 73 65 74 74 65 72 6d | 28 29 0a 58 7b 0a 58 09 |esetterm|().X{.X.|
|00004f20| 65 78 74 65 72 6e 20 63 | 68 61 72 20 5f 70 75 74 |extern c|har _put|
|00004f30| 63 68 61 72 28 29 3b 0a | 58 09 65 78 74 65 72 6e |char();.|X.extern|
|00004f40| 20 73 74 72 75 63 74 20 | 73 67 74 74 79 62 20 74 | struct |sgttyb t|
|00004f50| 5f 6d 6f 64 65 3b 0a 58 | 0a 58 09 69 6f 63 74 6c |_mode;.X|.X.ioctl|
|00004f60| 28 30 2c 20 54 49 4f 43 | 53 45 54 50 2c 20 26 74 |(0, TIOC|SETP, &t|
|00004f70| 5f 6d 6f 64 65 29 3b 0a | 58 09 74 70 75 74 73 28 |_mode);.|X.tputs(|
|00004f80| 54 45 2c 20 31 2c 20 5f | 70 75 74 63 68 61 72 29 |TE, 1, _|putchar)|
|00004f90| 3b 0a 58 09 74 70 75 74 | 73 28 56 45 2c 20 31 2c |;.X.tput|s(VE, 1,|
|00004fa0| 20 5f 70 75 74 63 68 61 | 72 29 3b 0a 58 09 72 65 | _putcha|r);.X.re|
|00004fb0| 74 75 72 6e 28 30 29 3b | 0a 58 7d 0a 58 0a 58 2f |turn(0);|.X}.X.X/|
|00004fc0| 2a 0a 58 20 2a 20 50 75 | 74 20 74 68 65 20 74 65 |*.X * Pu|t the te|
|00004fd0| 72 6d 69 6e 61 6c 20 62 | 61 63 6b 20 69 6e 74 6f |rminal b|ack into|
|00004fe0| 20 74 68 65 20 22 63 75 | 72 73 65 73 20 6d 6f 64 | the "cu|rses mod|
|00004ff0| 65 22 2e 20 20 54 68 65 | 20 63 5f 6d 6f 64 65 20 |e". The| c_mode |
|00005000| 73 74 72 75 63 74 75 72 | 65 20 77 61 73 0a 58 20 |structur|e was.X |
|00005010| 2a 20 63 61 70 74 75 72 | 65 64 20 61 66 74 65 72 |* captur|ed after|
|00005020| 20 77 65 20 69 6e 69 74 | 69 61 6c 69 7a 65 64 20 | we init|ialized |
|00005030| 74 68 65 20 63 75 72 73 | 65 73 20 6d 6f 64 65 2e |the curs|es mode.|
|00005040| 0a 58 20 2a 2f 0a 58 0a | 69 6e 74 0a 66 69 78 74 |.X */.X.|int.fixt|
|00005050| 65 72 6d 28 29 0a 58 7b | 0a 58 09 65 78 74 65 72 |erm().X{|.X.exter|
|00005060| 6e 20 63 68 61 72 20 5f | 70 75 74 63 68 61 72 28 |n char _|putchar(|
|00005070| 29 3b 0a 58 09 65 78 74 | 65 72 6e 20 73 74 72 75 |);.X.ext|ern stru|
|00005080| 63 74 20 73 67 74 74 79 | 62 20 63 5f 6d 6f 64 65 |ct sgtty|b c_mode|
|00005090| 3b 0a 58 0a 58 09 69 6f | 63 74 6c 28 30 2c 20 54 |;.X.X.io|ctl(0, T|
|000050a0| 49 4f 43 53 45 54 50 2c | 20 26 63 5f 6d 6f 64 65 |IOCSETP,| &c_mode|
|000050b0| 29 3b 0a 58 09 74 70 75 | 74 73 28 54 49 2c 20 31 |);.X.tpu|ts(TI, 1|
|000050c0| 2c 20 5f 70 75 74 63 68 | 61 72 29 3b 0a 58 09 74 |, _putch|ar);.X.t|
|000050d0| 70 75 74 73 28 56 53 2c | 20 31 2c 20 5f 70 75 74 |puts(VS,| 1, _put|
|000050e0| 63 68 61 72 29 3b 0a 58 | 09 72 65 74 75 72 6e 28 |char);.X|.return(|
|000050f0| 30 29 3b 0a 58 7d 0a 58 | 23 65 6e 64 69 66 20 2f |0);.X}.X|#endif /|
|00005100| 2a 20 4f 4c 44 43 55 52 | 53 45 53 20 2a 2f 0a 45 |* OLDCUR|SES */.E|
|00005110| 4e 44 5f 4f 46 5f 46 49 | 4c 45 0a 69 66 20 74 65 |ND_OF_FI|LE.if te|
|00005120| 73 74 20 38 39 36 31 20 | 2d 6e 65 20 60 77 63 20 |st 8961 |-ne `wc |
|00005130| 2d 63 20 3c 27 63 75 72 | 73 65 73 2e 63 27 60 3b |-c <'cur|ses.c'`;|
|00005140| 20 74 68 65 6e 0a 20 20 | 20 20 65 63 68 6f 20 73 | then. | echo s|
|00005150| 68 61 72 3a 20 5c 22 27 | 63 75 72 73 65 73 2e 63 |har: \"'|curses.c|
|00005160| 27 5c 22 20 75 6e 70 61 | 63 6b 65 64 20 77 69 74 |'\" unpa|cked wit|
|00005170| 68 20 77 72 6f 6e 67 20 | 73 69 7a 65 21 0a 66 69 |h wrong |size!.fi|
|00005180| 0a 23 20 65 6e 64 20 6f | 66 20 27 63 75 72 73 65 |.# end o|f 'curse|
|00005190| 73 2e 63 27 0a 66 69 0a | 69 66 20 74 65 73 74 20 |s.c'.fi.|if test |
|000051a0| 2d 66 20 27 64 69 5f 77 | 69 6e 2e 63 27 20 2d 61 |-f 'di_w|in.c' -a|
|000051b0| 20 22 24 7b 31 7d 22 20 | 21 3d 20 22 2d 63 22 20 | "${1}" |!= "-c" |
|000051c0| 3b 20 74 68 65 6e 20 0a | 20 20 65 63 68 6f 20 73 |; then .| echo s|
|000051d0| 68 61 72 3a 20 57 69 6c | 6c 20 6e 6f 74 20 63 6c |har: Wil|l not cl|
|000051e0| 6f 62 62 65 72 20 65 78 | 69 73 74 69 6e 67 20 66 |obber ex|isting f|
|000051f0| 69 6c 65 20 5c 22 27 64 | 69 5f 77 69 6e 2e 63 27 |ile \"'d|i_win.c'|
|00005200| 5c 22 0a 65 6c 73 65 0a | 65 63 68 6f 20 73 68 61 |\".else.|echo sha|
|00005210| 72 3a 20 45 78 74 72 61 | 63 74 69 6e 67 20 5c 22 |r: Extra|cting \"|
|00005220| 27 64 69 5f 77 69 6e 2e | 63 27 5c 22 20 5c 28 39 |'di_win.|c'\" \(9|
|00005230| 37 38 31 20 63 68 61 72 | 61 63 74 65 72 73 5c 29 |781 char|acters\)|
|00005240| 0a 73 65 64 20 22 73 2f | 5e 58 2f 2f 22 20 3e 27 |.sed "s/|^X//" >'|
|00005250| 64 69 5f 77 69 6e 2e 63 | 27 20 3c 3c 27 45 4e 44 |di_win.c|' <<'END|
|00005260| 5f 4f 46 5f 46 49 4c 45 | 27 0a 58 2f 2a 0a 58 20 |_OF_FILE|'.X/*.X |
|00005270| 2a 20 54 68 65 20 64 69 | 61 6c 69 6e 67 20 77 69 |* The di|aling wi|
|00005280| 6e 64 6f 77 20 72 6f 75 | 74 69 6e 65 73 2e 0a 58 |ndow rou|tines..X|
|00005290| 20 2a 2f 0a 58 0a 58 23 | 69 6e 63 6c 75 64 65 20 | */.X.X#|include |
|000052a0| 3c 73 74 64 69 6f 2e 68 | 3e 0a 58 23 69 6e 63 6c |<stdio.h|>.X#incl|
|000052b0| 75 64 65 20 3c 63 75 72 | 73 65 73 2e 68 3e 0a 58 |ude <cur|ses.h>.X|
|000052c0| 23 69 6e 63 6c 75 64 65 | 20 22 64 69 61 6c 5f 64 |#include| "dial_d|
|000052d0| 69 72 2e 68 22 0a 58 23 | 69 6e 63 6c 75 64 65 20 |ir.h".X#|include |
|000052e0| 22 6d 69 73 63 2e 68 22 | 0a 58 23 69 6e 63 6c 75 |"misc.h"|.X#inclu|
|000052f0| 64 65 20 22 6d 6f 64 65 | 6d 2e 68 22 0a 58 23 69 |de "mode|m.h".X#i|
|00005300| 6e 63 6c 75 64 65 20 22 | 70 61 72 61 6d 2e 68 22 |nclude "|param.h"|
|00005310| 0a 58 23 69 6e 63 6c 75 | 64 65 20 22 73 74 61 74 |.X#inclu|de "stat|
|00005320| 75 73 2e 68 22 0a 58 0a | 73 74 61 74 69 63 20 69 |us.h".X.|static i|
|00005330| 6e 74 20 63 61 6e 5f 73 | 79 6e 63 28 29 3b 0a 73 |nt can_s|ync();.s|
|00005340| 74 61 74 69 63 20 76 6f | 69 64 20 64 69 73 70 5f |tatic vo|id disp_|
|00005350| 71 75 65 75 65 28 29 3b | 0a 58 0a 58 2f 2a 0a 58 |queue();|.X.X/*.X|
|00005360| 20 2a 20 54 68 65 20 64 | 69 61 6c 69 6e 67 20 77 | * The d|ialing w|
|00005370| 69 6e 64 6f 77 2e 20 20 | 49 74 73 20 6a 6f 62 20 |indow. |Its job |
|00005380| 69 73 20 74 6f 20 67 65 | 74 20 61 20 70 6f 72 74 |is to ge|t a port|
|00005390| 2c 20 63 79 63 6c 65 20 | 74 68 72 75 20 74 68 65 |, cycle |thru the|
|000053a0| 20 65 6e 74 72 69 65 73 | 0a 58 20 2a 20 69 6e 20 | entries|.X * in |
|000053b0| 74 68 65 20 71 75 65 75 | 65 2c 20 77 68 69 6c 65 |the queu|e, while|
|000053c0| 20 69 6e 74 65 72 70 72 | 65 74 69 6e 67 20 62 6f | interpr|eting bo|
|000053d0| 74 68 20 74 68 65 20 75 | 73 65 72 27 73 20 72 65 |th the u|ser's re|
|000053e0| 71 75 65 73 74 73 20 61 | 6e 64 20 74 68 65 0a 58 |quests a|nd the.X|
|000053f0| 20 2a 20 6d 6f 64 65 6d | 27 73 20 72 65 73 70 6f | * modem|'s respo|
|00005400| 6e 73 65 73 2e 20 20 41 | 20 6e 6f 6e 2d 7a 65 72 |nses. A| non-zer|
|00005410| 6f 20 72 65 74 75 72 6e | 20 63 6f 64 65 20 6d 65 |o return| code me|
|00005420| 61 6e 73 20 77 65 20 66 | 61 69 6c 65 64 20 74 6f |ans we f|ailed to|
|00005430| 20 63 6f 6e 6e 65 63 74 | 2e 0a 58 20 2a 2f 0a 58 | connect|..X */.X|
|00005440| 0a 69 6e 74 0a 64 69 61 | 6c 5f 77 69 6e 28 72 65 |.int.dia|l_win(re|
|00005450| 70 65 61 74 29 0a 69 6e | 74 20 72 65 70 65 61 74 |peat).in|t repeat|
|00005460| 3b 0a 58 7b 0a 58 09 65 | 78 74 65 72 6e 20 69 6e |;.X{.X.e|xtern in|
|00005470| 74 20 66 64 3b 0a 58 09 | 57 49 4e 44 4f 57 20 2a |t fd;.X.|WINDOW *|
|00005480| 64 69 5f 77 69 6e 2c 20 | 2a 6e 65 77 77 69 6e 28 |di_win, |*newwin(|
|00005490| 29 3b 0a 58 09 69 6e 74 | 20 69 2c 20 6a 2c 20 6b |);.X.int| i, j, k|
|000054a0| 65 79 2c 20 77 61 6e 74 | 5f 6f 75 74 2c 20 70 61 |ey, want|_out, pa|
|000054b0| 73 73 2c 20 74 69 63 3b | 0a 58 09 6c 6f 6e 67 20 |ss, tic;|.X.long |
|000054c0| 6e 6f 77 2c 20 74 69 6d | 65 28 29 3b 0a 58 09 63 |now, tim|e();.X.c|
|000054d0| 68 61 72 20 2a 74 62 75 | 66 2c 20 2a 63 74 69 6d |har *tbu|f, *ctim|
|000054e0| 65 28 29 2c 20 2a 73 74 | 72 2c 20 63 72 3d 31 33 |e(), *st|r, cr=13|
|000054f0| 2c 20 2a 72 65 61 64 5f | 63 6f 64 65 73 28 29 3b |, *read_|codes();|
|00005500| 0a 58 09 76 6f 69 64 20 | 64 69 61 6c 5f 69 74 28 |.X.void |dial_it(|
|00005510| 29 2c 20 64 65 6c 61 79 | 5f 74 69 6d 65 73 28 29 |), delay|_times()|
|00005520| 3b 0a 58 09 76 6f 69 64 | 20 65 72 72 6f 72 5f 77 |;.X.void| error_w|
|00005530| 69 6e 28 29 2c 20 6c 69 | 6e 65 5f 73 65 74 28 29 |in(), li|ne_set()|
|00005540| 2c 20 68 61 6e 67 5f 75 | 70 28 29 2c 20 76 73 5f |, hang_u|p(), vs_|
|00005550| 63 6c 65 61 72 28 29 2c | 20 6c 6f 67 5f 63 61 6c |clear(),| log_cal|
|00005560| 6c 73 28 29 3b 0a 58 09 | 75 6e 73 69 67 6e 65 64 |ls();.X.|unsigned|
|00005570| 20 69 6e 74 20 62 61 75 | 64 2c 20 73 6c 65 65 70 | int bau|d, sleep|
|00005580| 28 29 3b 0a 58 09 09 09 | 09 09 2f 2a 20 61 72 65 |();.X...|../* are|
|00005590| 20 77 65 20 61 6c 72 65 | 61 64 79 20 74 61 6c 6b | we alre|ady talk|
|000055a0| 69 6e 67 3f 20 2a 2f 0a | 58 09 68 61 6e 67 5f 75 |ing? */.|X.hang_u|
|000055b0| 70 28 56 45 52 42 4f 53 | 45 29 3b 0a 58 0a 58 09 |p(VERBOS|E);.X.X.|
|000055c0| 74 6f 75 63 68 77 69 6e | 28 73 74 64 73 63 72 29 |touchwin|(stdscr)|
|000055d0| 3b 0a 58 09 72 65 66 72 | 65 73 68 28 29 3b 0a 58 |;.X.refr|esh();.X|
|000055e0| 0a 58 09 2f 2a 0a 58 09 | 20 2a 20 49 66 20 74 68 |.X./*.X.| * If th|
|000055f0| 65 20 70 68 6f 6e 65 20 | 6e 75 6d 62 65 72 20 70 |e phone |number p|
|00005600| 6f 69 6e 74 73 20 74 6f | 20 4e 55 4c 4c 2c 20 74 |oints to| NULL, t|
|00005610| 68 65 6e 20 65 69 74 68 | 65 72 20 79 6f 75 27 72 |hen eith|er you'r|
|00005620| 65 20 6f 6e 20 61 0a 58 | 09 20 2a 20 64 69 72 65 |e on a.X|. * dire|
|00005630| 63 74 20 6c 69 6e 65 2c | 20 6f 72 20 79 6f 75 20 |ct line,| or you |
|00005640| 77 61 6e 74 20 74 6f 20 | 64 6f 20 74 68 65 20 64 |want to |do the d|
|00005650| 69 61 6c 69 6e 67 20 79 | 6f 75 72 73 65 6c 66 2e |ialing y|ourself.|
|00005660| 0a 58 09 20 2a 2f 0a 58 | 09 64 69 72 2d 3e 64 5f |.X. */.X|.dir->d_|
|00005670| 63 75 72 20 3d 20 64 69 | 72 2d 3e 71 5f 6e 75 6d |cur = di|r->q_num|
|00005680| 5b 30 5d 3b 0a 58 09 69 | 66 20 28 2a 64 69 72 2d |[0];.X.i|f (*dir-|
|00005690| 3e 6e 75 6d 62 65 72 5b | 64 69 72 2d 3e 64 5f 63 |>number[|dir->d_c|
|000056a0| 75 72 5d 20 3d 3d 20 27 | 5c 30 27 29 20 7b 0a 58 |ur] == '|\0') {.X|
|000056b0| 09 09 09 09 09 2f 2a 20 | 63 68 65 63 6b 20 4c 44 |...../* |check LD|
|000056c0| 20 70 65 72 6d 69 73 73 | 69 6f 6e 20 2a 2f 0a 58 | permiss|ion */.X|
|000056d0| 09 09 69 66 20 28 6c 69 | 6d 69 74 5f 6c 64 28 30 |..if (li|mit_ld(0|
|000056e0| 29 29 0a 58 09 09 09 72 | 65 74 75 72 6e 28 31 29 |)).X...r|eturn(1)|
|000056f0| 3b 0a 58 0a 58 09 09 69 | 66 20 28 67 65 74 5f 70 |;.X.X..i|f (get_p|
|00005700| 6f 72 74 28 29 29 0a 58 | 09 09 09 72 65 74 75 72 |ort()).X|...retur|
|00005710| 6e 28 31 29 3b 0a 58 09 | 09 09 09 09 2f 2a 20 63 |n(1);.X.|..../* c|
|00005720| 61 6e 27 74 20 74 61 6c | 6b 20 64 69 72 65 63 74 |an't tal|k direct|
|00005730| 6c 79 20 74 6f 20 4f 42 | 4d 20 2a 2f 0a 58 09 09 |ly to OB|M */.X..|
|00005740| 69 66 20 28 21 73 74 72 | 63 6d 70 28 6d 6f 64 65 |if (!str|cmp(mode|
|00005750| 6d 2d 3e 6d 6e 61 6d 65 | 5b 6d 6f 64 65 6d 2d 3e |m->mname|[modem->|
|00005760| 6d 5f 63 75 72 5d 2c 20 | 22 4f 42 4d 22 29 29 20 |m_cur], |"OBM")) |
|00005770| 7b 0a 58 09 09 09 65 72 | 72 6f 72 5f 77 69 6e 28 |{.X...er|ror_win(|
|00005780| 30 2c 20 22 43 61 6e 27 | 74 20 61 63 63 65 73 73 |0, "Can'|t access|
|00005790| 20 74 68 65 20 4f 6e 20 | 42 6f 61 72 64 20 4d 6f | the On |Board Mo|
|000057a0| 64 65 6d 20 64 69 72 65 | 63 74 6c 79 22 2c 0a 58 |dem dire|ctly",.X|
|000057b0| 09 09 09 20 22 59 6f 75 | 20 6d 75 73 74 20 75 73 |... "You| must us|
|000057c0| 65 20 74 68 65 20 61 75 | 74 6f 6d 61 74 69 63 20 |e the au|tomatic |
|000057d0| 64 69 61 6c 69 6e 67 20 | 66 65 61 74 75 72 65 22 |dialing |feature"|
|000057e0| 29 3b 0a 58 09 09 09 72 | 65 74 75 72 6e 28 31 29 |);.X...r|eturn(1)|
|000057f0| 3b 0a 58 09 09 7d 0a 58 | 0a 58 09 09 76 73 5f 63 |;.X..}.X|.X..vs_c|
|00005800| 6c 65 61 72 28 31 29 3b | 0a 58 09 09 74 6f 75 63 |lear(1);|.X..touc|
|00005810| 68 77 69 6e 28 73 74 64 | 73 63 72 29 3b 0a 58 09 |hwin(std|scr);.X.|
|00005820| 09 63 6c 65 61 72 28 29 | 3b 0a 58 09 09 70 72 69 |.clear()|;.X..pri|
|00005830| 6e 74 77 28 22 43 6f 6e | 6e 65 63 74 65 64 20 74 |ntw("Con|nected t|
|00005840| 6f 20 2f 64 65 76 2f 25 | 73 20 61 74 20 25 64 20 |o /dev/%|s at %d |
|00005850| 62 61 75 64 2e 2e 2e 5c | 6e 22 2c 20 6d 6f 64 65 |baud...\|n", mode|
|00005860| 6d 2d 3e 74 74 79 5b 6d | 6f 64 65 6d 2d 3e 74 5f |m->tty[m|odem->t_|
|00005870| 63 75 72 5d 2c 20 64 69 | 72 2d 3e 62 61 75 64 5b |cur], di|r->baud[|
|00005880| 30 5d 29 3b 0a 58 09 09 | 72 65 66 72 65 73 68 28 |0]);.X..|refresh(|
|00005890| 29 3b 0a 58 09 09 09 09 | 09 2f 2a 20 57 65 20 68 |);.X....|./* We h|
|000058a0| 61 76 65 20 74 6f 20 61 | 73 73 75 6d 65 2e 2e 2e |ave to a|ssume...|
|000058b0| 20 2a 2f 0a 58 09 09 73 | 74 61 74 75 73 2d 3e 63 | */.X..s|tatus->c|
|000058c0| 6f 6e 6e 65 63 74 65 64 | 20 3d 20 31 3b 0a 58 09 |onnected| = 1;.X.|
|000058d0| 09 72 65 74 75 72 6e 28 | 30 29 3b 0a 58 09 7d 0a |.return(|0);.X.}.|
|000058e0| 58 0a 58 09 64 69 5f 77 | 69 6e 20 3d 20 6e 65 77 |X.X.di_w|in = new|
|000058f0| 77 69 6e 28 31 37 2c 20 | 37 30 2c 20 33 2c 20 35 |win(17, |70, 3, 5|
|00005900| 29 3b 0a 58 09 09 09 09 | 09 2f 2a 20 74 68 65 20 |);.X....|./* the |
|00005910| 62 61 73 69 63 20 77 69 | 6e 64 6f 77 20 2a 2f 0a |basic wi|ndow */.|
|00005920| 58 09 6d 76 77 61 74 74 | 72 73 74 72 28 64 69 5f |X.mvwatt|rstr(di_|
|00005930| 77 69 6e 2c 20 31 2c 20 | 32 30 2c 20 41 5f 42 4f |win, 1, |20, A_BO|
|00005940| 4c 44 2c 20 22 44 20 49 | 20 41 20 4c 20 49 20 4e |LD, "D I| A L I N|
|00005950| 20 47 20 20 20 20 20 20 | 20 57 20 49 20 4e 20 44 | G | W I N D|
|00005960| 20 4f 20 57 22 29 3b 0a | 58 09 68 6f 72 69 7a 6f | O W");.|X.horizo|
|00005970| 6e 74 61 6c 28 64 69 5f | 77 69 6e 2c 20 32 2c 20 |ntal(di_|win, 2, |
|00005980| 30 2c 20 37 30 29 3b 0a | 58 09 6d 76 77 61 64 64 |0, 70);.|X.mvwadd|
|00005990| 73 74 72 28 64 69 5f 77 | 69 6e 2c 20 34 2c 20 32 |str(di_w|in, 4, 2|
|000059a0| 33 2c 20 22 53 79 73 74 | 65 6d 20 6e 61 6d 65 3a |3, "Syst|em name:|
|000059b0| 22 29 3b 0a 58 09 6d 76 | 77 61 64 64 73 74 72 28 |");.X.mv|waddstr(|
|000059c0| 64 69 5f 77 69 6e 2c 20 | 35 2c 20 32 33 2c 20 22 |di_win, |5, 23, "|
|000059d0| 50 61 73 73 20 6e 75 6d | 62 65 72 3a 22 29 3b 0a |Pass num|ber:");.|
|000059e0| 58 09 6d 76 77 61 64 64 | 73 74 72 28 64 69 5f 77 |X.mvwadd|str(di_w|
|000059f0| 69 6e 2c 20 36 2c 20 31 | 34 2c 20 22 45 6c 61 70 |in, 6, 1|4, "Elap|
|00005a00| 73 65 20 74 69 6d 65 20 | 74 68 69 73 20 74 72 79 |se time |this try|
|00005a10| 3a 22 29 3b 0a 58 09 6d | 76 77 61 64 64 73 74 72 |:");.X.m|vwaddstr|
|00005a20| 28 64 69 5f 77 69 6e 2c | 20 37 2c 20 31 33 2c 20 |(di_win,| 7, 13, |
|00005a30| 22 54 69 6d 65 20 61 74 | 20 73 74 61 72 74 20 6f |"Time at| start o|
|00005a40| 66 20 64 69 61 6c 3a 22 | 29 3b 0a 58 09 6d 76 77 |f dial:"|);.X.mvw|
|00005a50| 61 64 64 73 74 72 28 64 | 69 5f 77 69 6e 2c 20 38 |addstr(d|i_win, 8|
|00005a60| 2c 20 39 2c 20 22 54 69 | 6d 65 20 61 74 20 73 74 |, 9, "Ti|me at st|
|00005a70| 61 72 74 20 6f 66 20 74 | 68 69 73 20 74 72 79 3a |art of t|his try:|
|00005a80| 22 29 3b 0a 58 09 6d 76 | 77 61 64 64 73 74 72 28 |");.X.mv|waddstr(|
|00005a90| 64 69 5f 77 69 6e 2c 20 | 39 2c 20 31 36 2c 20 22 |di_win, |9, 16, "|
|00005aa0| 43 6f 6e 6e 65 63 74 20 | 64 65 6c 61 79 20 74 69 |Connect |delay ti|
|00005ab0| 6d 65 3a 22 29 3b 0a 58 | 09 6d 76 77 61 64 64 73 |me:");.X|.mvwadds|
|00005ac0| 74 72 28 64 69 5f 77 69 | 6e 2c 20 31 30 2c 20 31 |tr(di_wi|n, 10, 1|
|00005ad0| 37 2c 20 22 52 65 64 69 | 61 6c 20 64 65 6c 61 79 |7, "Redi|al delay|
|00005ae0| 20 74 69 6d 65 3a 22 29 | 3b 0a 58 09 6d 76 77 61 | time:")|;.X.mvwa|
|00005af0| 64 64 73 74 72 28 64 69 | 5f 77 69 6e 2c 20 31 31 |ddstr(di|_win, 11|
|00005b00| 2c 20 32 35 2c 20 22 41 | 75 78 69 6c 69 61 72 79 |, 25, "A|uxiliary|
|00005b10| 3a 22 29 3b 0a 58 09 6d | 76 77 61 64 64 73 74 72 |:");.X.m|vwaddstr|
|00005b20| 28 64 69 5f 77 69 6e 2c | 20 31 32 2c 20 31 36 2c |(di_win,| 12, 16,|
|00005b30| 20 22 52 65 73 75 6c 74 | 20 6f 66 20 6c 61 73 74 | "Result| of last|
|00005b40| 20 74 72 79 3a 22 29 3b | 0a 58 0a 58 09 6d 76 77 | try:");|.X.X.mvw|
|00005b50| 61 64 64 73 74 72 28 64 | 69 5f 77 69 6e 2c 20 31 |addstr(d|i_win, 1|
|00005b60| 34 2c 20 33 2c 20 22 3c | 53 50 41 43 45 3e 3a 20 |4, 3, "<|SPACE>: |
|00005b70| 52 65 63 79 63 6c 65 22 | 29 3b 0a 58 09 6d 76 77 |Recycle"|);.X.mvw|
|00005b80| 61 64 64 73 74 72 28 64 | 69 5f 77 69 6e 2c 20 31 |addstr(d|i_win, 1|
|00005b90| 34 2c 20 32 32 2c 20 22 | 3c 44 45 4c 3e 3a 20 52 |4, 22, "|<DEL>: R|
|00005ba0| 65 6d 6f 76 65 20 66 72 | 6f 6d 20 71 75 65 75 65 |emove fr|om queue|
|00005bb0| 22 29 3b 0a 58 09 6d 76 | 77 61 64 64 73 74 72 28 |");.X.mv|waddstr(|
|00005bc0| 64 69 5f 77 69 6e 2c 20 | 31 34 2c 20 34 39 2c 20 |di_win, |14, 49, |
|00005bd0| 22 45 3a 20 43 68 61 6e | 67 65 20 64 65 6c 61 79 |"E: Chan|ge delay|
|00005be0| 73 22 29 3b 0a 58 0a 58 | 09 09 09 09 09 2f 2a 20 |s");.X.X|...../* |
|00005bf0| 74 68 65 20 73 74 61 72 | 74 20 74 69 6d 65 20 2a |the star|t time *|
|00005c00| 2f 0a 58 09 74 69 6d 65 | 28 26 6e 6f 77 29 3b 0a |/.X.time|(&now);.|
|00005c10| 58 09 74 62 75 66 20 3d | 20 63 74 69 6d 65 28 26 |X.tbuf =| ctime(&|
|00005c20| 6e 6f 77 29 3b 0a 58 09 | 74 62 75 66 5b 31 39 5d |now);.X.|tbuf[19]|
|00005c30| 20 3d 20 27 5c 30 27 3b | 0a 58 09 6d 76 77 61 64 | = '\0';|.X.mvwad|
|00005c40| 64 73 74 72 28 64 69 5f | 77 69 6e 2c 20 37 2c 20 |dstr(di_|win, 7, |
|00005c50| 33 36 2c 20 26 74 62 75 | 66 5b 31 31 5d 29 3b 0a |36, &tbu|f[11]);.|
|00005c60| 58 0a 58 09 6d 76 77 70 | 72 69 6e 74 77 28 64 69 |X.X.mvwp|rintw(di|
|00005c70| 5f 77 69 6e 2c 20 39 2c | 20 33 36 2c 20 22 25 2d |_win, 9,| 36, "%-|
|00005c80| 34 64 22 2c 20 70 61 72 | 61 6d 2d 3e 63 5f 64 65 |4d", par|am->c_de|
|00005c90| 6c 61 79 29 3b 0a 58 09 | 6d 76 77 70 72 69 6e 74 |lay);.X.|mvwprint|
|00005ca0| 77 28 64 69 5f 77 69 6e | 2c 20 31 30 2c 20 33 36 |w(di_win|, 10, 36|
|00005cb0| 2c 20 22 25 2d 34 64 22 | 2c 20 70 61 72 61 6d 2d |, "%-4d"|, param-|
|00005cc0| 3e 72 5f 64 65 6c 61 79 | 29 3b 0a 58 0a 58 09 62 |>r_delay|);.X.X.b|
|00005cd0| 6f 78 28 64 69 5f 77 69 | 6e 2c 20 56 45 52 54 2c |ox(di_wi|n, VERT,|
|00005ce0| 20 48 4f 52 5a 29 3b 0a | 58 09 6d 76 77 61 64 64 | HORZ);.|X.mvwadd|
|00005cf0| 73 74 72 28 64 69 5f 77 | 69 6e 2c 20 31 36 2c 20 |str(di_w|in, 16, |
|00005d00| 32 34 2c 20 22 20 50 72 | 65 73 73 20 3c 45 53 43 |24, " Pr|ess <ESC|
|00005d10| 3e 20 74 6f 20 61 62 6f | 72 74 20 22 29 3b 0a 58 |> to abo|rt ");.X|
|00005d20| 0a 58 09 70 61 73 73 20 | 3d 20 30 3b 0a 58 09 69 |.X.pass |= 0;.X.i|
|00005d30| 20 3d 20 30 3b 0a 58 09 | 77 61 6e 74 5f 6f 75 74 | = 0;.X.|want_out|
|00005d40| 20 3d 20 30 3b 0a 58 09 | 77 68 69 6c 65 20 28 21 | = 0;.X.|while (!|
|00005d50| 77 61 6e 74 5f 6f 75 74 | 20 26 26 20 70 61 73 73 |want_out| && pass|
|00005d60| 20 3c 3d 20 72 65 70 65 | 61 74 29 20 7b 0a 58 09 | <= repe|at) {.X.|
|00005d70| 09 6b 65 79 20 3d 20 2d | 31 3b 0a 58 09 09 70 61 |.key = -|1;.X..pa|
|00005d80| 73 73 2b 2b 3b 0a 58 09 | 09 09 09 09 2f 2a 20 63 |ss++;.X.|..../* c|
|00005d90| 68 65 63 6b 20 4c 44 20 | 70 65 72 6d 69 73 73 69 |heck LD |permissi|
|00005da0| 6f 6e 20 2a 2f 0a 58 09 | 09 69 66 20 28 6c 69 6d |on */.X.|.if (lim|
|00005db0| 69 74 5f 6c 64 28 69 29 | 29 20 7b 0a 58 09 09 09 |it_ld(i)|) {.X...|
|00005dc0| 77 61 6e 74 5f 6f 75 74 | 2b 2b 3b 0a 58 09 09 09 |want_out|++;.X...|
|00005dd0| 62 72 65 61 6b 3b 0a 58 | 09 09 7d 0a 58 09 09 09 |break;.X|..}.X...|
|00005de0| 09 09 2f 2a 20 75 70 64 | 61 74 65 20 74 68 65 20 |../* upd|ate the |
|00005df0| 64 5f 63 75 72 20 76 61 | 72 69 61 62 6c 65 20 2a |d_cur va|riable *|
|00005e00| 2f 0a 58 09 09 64 69 72 | 2d 3e 64 5f 63 75 72 20 |/.X..dir|->d_cur |
|00005e10| 3d 20 64 69 72 2d 3e 71 | 5f 6e 75 6d 5b 69 5d 3b |= dir->q|_num[i];|
|00005e20| 0a 58 0a 58 09 09 09 09 | 09 2f 2a 20 67 65 74 20 |.X.X....|./* get |
|00005e30| 61 20 70 6f 72 74 20 2a | 2f 0a 58 09 09 69 66 20 |a port *|/.X..if |
|00005e40| 28 67 65 74 5f 70 6f 72 | 74 28 29 29 20 7b 0a 58 |(get_por|t()) {.X|
|00005e50| 09 09 09 77 61 6e 74 5f | 6f 75 74 2b 2b 3b 0a 58 |...want_|out++;.X|
|00005e60| 09 09 09 62 72 65 61 6b | 3b 0a 58 09 09 7d 0a 58 |...break|;.X..}.X|
|00005e70| 09 09 09 09 09 2f 2a 20 | 66 69 6c 6c 20 69 6e 20 |...../* |fill in |
|00005e80| 74 68 65 20 77 69 6e 64 | 6f 77 20 2a 2f 0a 58 09 |the wind|ow */.X.|
|00005e90| 09 64 69 73 70 5f 71 75 | 65 75 65 28 64 69 5f 77 |.disp_qu|eue(di_w|
|00005ea0| 69 6e 2c 20 64 69 72 2d | 3e 64 5f 63 75 72 2c 20 |in, dir-|>d_cur, |
|00005eb0| 70 61 73 73 2c 20 6e 6f | 77 29 3b 0a 58 09 09 6e |pass, no|w);.X..n|
|00005ec0| 6f 77 20 3d 20 30 4c 3b | 0a 58 0a 58 09 09 2f 2a |ow = 0L;|.X.X../*|
|00005ed0| 0a 58 09 09 20 2a 20 54 | 68 65 20 61 63 74 75 61 |.X.. * T|he actua|
|00005ee0| 6c 20 64 69 61 6c 20 72 | 6f 75 74 69 6e 65 2e 20 |l dial r|outine. |
|00005ef0| 20 54 68 65 20 22 69 22 | 20 69 73 20 74 68 65 20 | The "i"| is the |
|00005f00| 69 6e 64 65 78 20 69 6e | 74 6f 20 74 68 65 0a 58 |index in|to the.X|
|00005f10| 09 09 20 2a 20 71 75 65 | 75 65 2c 20 6e 6f 74 20 |.. * que|ue, not |
|00005f20| 74 68 65 20 65 6e 74 72 | 79 20 6e 75 6d 62 65 72 |the entr|y number|
|00005f30| 2e 20 20 52 65 74 75 72 | 6e 73 20 69 6d 6d 65 64 |. Retur|ns immed|
|00005f40| 69 61 74 65 6c 79 20 77 | 69 74 68 6f 75 74 0a 58 |iately w|ithout.X|
|00005f50| 09 09 20 2a 20 77 61 69 | 74 69 6e 67 20 66 6f 72 |.. * wai|ting for|
|00005f60| 20 61 20 63 61 72 72 69 | 65 72 2e 0a 58 09 09 20 | a carri|er..X.. |
|00005f70| 2a 2f 0a 58 09 09 64 69 | 61 6c 5f 69 74 28 69 29 |*/.X..di|al_it(i)|
|00005f80| 3b 0a 58 09 09 74 74 79 | 5f 66 6c 75 73 68 28 66 |;.X..tty|_flush(f|
|00005f90| 64 2c 20 30 29 3b 0a 58 | 0a 58 09 09 2f 2a 0a 58 |d, 0);.X|.X../*.X|
|00005fa0| 09 09 20 2a 20 48 65 72 | 65 20 77 65 20 64 6f 20 |.. * Her|e we do |
|00005fb0| 61 20 74 69 6d 65 2d 73 | 6c 69 63 65 20 62 65 74 |a time-s|lice bet|
|00005fc0| 77 65 65 6e 20 72 65 61 | 64 69 6e 67 20 74 68 65 |ween rea|ding the|
|00005fd0| 20 72 65 73 75 6c 74 20 | 63 6f 64 65 73 0a 58 09 | result |codes.X.|
|00005fe0| 09 20 2a 20 66 72 6f 6d | 20 74 68 65 20 6d 6f 64 |. * from| the mod|
|00005ff0| 65 6d 20 61 6e 64 20 72 | 65 61 64 69 6e 67 20 74 |em and r|eading t|
|00006000| 68 65 20 6b 65 79 62 6f | 61 72 64 2e 20 20 54 68 |he keybo|ard. Th|
|00006010| 65 20 6f 6e 65 20 73 65 | 63 6f 6e 64 0a 58 09 09 |e one se|cond.X..|
|00006020| 20 2a 20 67 72 61 6e 75 | 6c 61 72 69 74 79 20 77 | * granu|larity w|
|00006030| 6f 6e 27 74 20 62 65 20 | 74 6f 6f 20 61 63 63 75 |on't be |too accu|
|00006040| 72 61 74 65 2c 20 62 75 | 74 20 77 68 6f 20 63 61 |rate, bu|t who ca|
|00006050| 72 65 73 3f 0a 58 09 09 | 20 2a 2f 0a 58 09 09 74 |res?.X..| */.X..t|
|00006060| 69 63 20 3d 20 30 3b 0a | 58 09 09 77 68 69 6c 65 |ic = 0;.|X..while|
|00006070| 20 28 74 69 63 20 3c 20 | 70 61 72 61 6d 2d 3e 63 | (tic < |param->c|
|00006080| 5f 64 65 6c 61 79 29 20 | 7b 0a 58 09 09 09 69 66 |_delay) |{.X...if|
|00006090| 20 28 28 73 74 72 20 3d | 20 72 65 61 64 5f 63 6f | ((str =| read_co|
|000060a0| 64 65 73 28 74 69 63 29 | 29 20 3d 3d 20 4e 55 4c |des(tic)|) == NUL|
|000060b0| 4c 29 20 7b 0a 58 09 09 | 09 09 6d 76 77 70 72 69 |L) {.X..|..mvwpri|
|000060c0| 6e 74 77 28 64 69 5f 77 | 69 6e 2c 20 36 2c 20 33 |ntw(di_w|in, 6, 3|
|000060d0| 36 2c 20 22 25 2d 34 64 | 22 2c 20 2b 2b 74 69 63 |6, "%-4d|", ++tic|
|000060e0| 29 3b 0a 58 09 09 09 09 | 77 72 65 66 72 65 73 68 |);.X....|wrefresh|
|000060f0| 28 64 69 5f 77 69 6e 29 | 3b 0a 58 09 09 09 7d 0a |(di_win)|;.X...}.|
|00006100| 58 09 09 09 65 6c 73 65 | 20 7b 0a 58 09 09 09 09 |X...else| {.X....|
|00006110| 2f 2a 0a 58 09 09 09 09 | 20 2a 20 41 20 72 65 74 |/*.X....| * A ret|
|00006120| 75 72 6e 20 63 6f 64 65 | 20 74 68 61 74 20 63 6f |urn code| that co|
|00006130| 6e 76 65 72 74 73 20 74 | 6f 20 61 6e 20 6e 75 6d |nverts t|o an num|
|00006140| 62 65 72 0a 58 09 09 09 | 09 20 2a 20 74 68 61 74 |ber.X...|. * that|
|00006150| 20 69 73 20 6c 65 73 73 | 20 74 68 61 6e 20 33 30 | is less| than 30|
|00006160| 30 20 69 73 20 70 72 6f | 62 61 62 6c 79 20 61 6e |0 is pro|bably an|
|00006170| 20 65 72 72 6f 72 0a 58 | 09 09 09 09 20 2a 20 6d | error.X|.... * m|
|00006180| 65 73 73 61 67 65 2e 0a | 58 09 09 09 09 20 2a 2f |essage..|X.... */|
|00006190| 0a 58 09 09 09 09 62 61 | 75 64 20 3d 20 28 75 6e |.X....ba|ud = (un|
|000061a0| 73 69 67 6e 65 64 20 69 | 6e 74 29 20 61 74 6f 69 |signed i|nt) atoi|
|000061b0| 28 73 74 72 29 3b 0a 58 | 09 09 09 09 69 66 20 28 |(str);.X|....if (|
|000061c0| 62 61 75 64 20 3c 20 33 | 30 30 29 20 7b 0a 58 09 |baud < 3|00) {.X.|
|000061d0| 09 09 09 09 6d 76 77 70 | 72 69 6e 74 77 28 64 69 |....mvwp|rintw(di|
|000061e0| 5f 77 69 6e 2c 20 31 32 | 2c 20 33 36 2c 20 22 25 |_win, 12|, 36, "%|
|000061f0| 2d 32 30 2e 32 30 73 22 | 2c 20 73 74 72 29 3b 0a |-20.20s"|, str);.|
|00006200| 58 09 09 09 09 09 77 6d | 6f 76 65 28 64 69 5f 77 |X.....wm|ove(di_w|
|00006210| 69 6e 2c 20 31 32 2c 20 | 33 36 29 3b 0a 58 09 09 |in, 12, |36);.X..|
|00006220| 09 09 09 77 72 65 66 72 | 65 73 68 28 64 69 5f 77 |...wrefr|esh(di_w|
|00006230| 69 6e 29 3b 0a 58 09 09 | 09 09 09 62 72 65 61 6b |in);.X..|...break|
|00006240| 3b 0a 58 09 09 09 09 7d | 0a 58 09 09 09 09 09 2f |;.X....}|.X...../|
|00006250| 2a 20 77 65 27 72 65 20 | 63 6f 6e 6e 65 63 74 65 |* we're |connecte|
|00006260| 64 20 2a 2f 0a 58 09 09 | 09 09 62 65 65 70 28 29 |d */.X..|..beep()|
|00006270| 3b 0a 58 09 09 09 09 63 | 6c 65 61 72 5f 6c 69 6e |;.X....c|lear_lin|
|00006280| 65 28 64 69 5f 77 69 6e | 2c 20 31 32 2c 20 33 36 |e(di_win|, 12, 36|
|00006290| 2c 20 54 52 55 45 29 3b | 0a 58 09 09 09 09 77 61 |, TRUE);|.X....wa|
|000062a0| 74 74 72 73 74 72 28 64 | 69 5f 77 69 6e 2c 20 41 |ttrstr(d|i_win, A|
|000062b0| 5f 42 4c 49 4e 4b 2c 20 | 22 43 4f 4e 4e 45 43 54 |_BLINK, |"CONNECT|
|000062c0| 45 44 22 29 3b 0a 58 09 | 09 09 09 77 6d 6f 76 65 |ED");.X.|...wmove|
|000062d0| 28 64 69 5f 77 69 6e 2c | 20 31 32 2c 20 33 36 29 |(di_win,| 12, 36)|
|000062e0| 3b 0a 58 09 09 09 09 77 | 72 65 66 72 65 73 68 28 |;.X....w|refresh(|
|000062f0| 64 69 5f 77 69 6e 29 3b | 0a 58 09 09 09 09 77 61 |di_win);|.X....wa|
|00006300| 69 74 5f 6b 65 79 28 64 | 69 5f 77 69 6e 2c 20 32 |it_key(d|i_win, 2|
|00006310| 29 3b 0a 58 09 09 09 09 | 64 65 6c 77 69 6e 28 64 |);.X....|delwin(d|
|00006320| 69 5f 77 69 6e 29 3b 0a | 58 0a 58 09 09 09 09 2f |i_win);.|X.X..../|
|00006330| 2a 0a 58 09 09 09 09 20 | 2a 20 44 69 64 20 74 68 |*.X.... |* Did th|
|00006340| 65 20 6d 6f 64 65 6d 20 | 73 79 6e 63 20 61 74 20 |e modem |sync at |
|00006350| 61 20 64 69 66 66 65 72 | 65 6e 74 20 62 61 75 64 |a differ|ent baud|
|00006360| 0a 58 09 09 09 09 20 2a | 20 72 61 74 65 20 74 68 |.X.... *| rate th|
|00006370| 61 6e 20 77 68 61 74 20 | 77 65 20 65 78 70 65 63 |an what |we expec|
|00006380| 74 65 64 3f 0a 58 09 09 | 09 09 20 2a 2f 0a 58 09 |ted?.X..|.. */.X.|
|00006390| 09 09 09 69 66 20 28 64 | 69 72 2d 3e 62 61 75 64 |...if (d|ir->baud|
|000063a0| 5b 30 5d 20 21 3d 20 62 | 61 75 64 29 20 7b 0a 58 |[0] != b|aud) {.X|
|000063b0| 09 09 09 09 09 69 66 20 | 28 63 61 6e 5f 73 79 6e |.....if |(can_syn|
|000063c0| 63 28 62 61 75 64 29 29 | 20 7b 0a 58 09 09 09 09 |c(baud))| {.X....|
|000063d0| 09 09 64 69 72 2d 3e 62 | 61 75 64 5b 30 5d 20 3d |..dir->b|aud[0] =|
|000063e0| 20 62 61 75 64 3b 0a 58 | 09 09 09 09 09 09 6c 69 | baud;.X|......li|
|000063f0| 6e 65 5f 73 65 74 28 29 | 3b 0a 58 09 09 09 09 09 |ne_set()|;.X.....|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.