home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume4 / se / part1 next >
SHell self-extracting ARchive  |  1986-11-30  |  26.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


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

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert SHell self-extracting ARchive (archive/shar) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news or mail text default
99% file C source text default
98% file C source, ASCII text default
100% TrID E-Mail message (Var. 2) 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)
100% xdgMime message/rfc822 default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 3a 20 4a 65 | 66 66 20 4c 65 65 20 3c |From: Je|ff Lee <|
|00000010| 74 61 6c 63 6f 74 74 21 | 73 65 69 73 6d 6f 21 67 |talcott!|seismo!g|
|00000020| 61 74 65 63 68 21 6a 65 | 66 66 3e 0a 53 75 62 6a |atech!je|ff>.Subj|
|00000030| 65 63 74 3a 20 47 65 6f | 72 67 69 61 20 54 65 63 |ect: Geo|rgia Tec|
|00000040| 68 20 27 73 65 27 20 73 | 63 72 65 65 6e 20 65 64 |h 'se' s|creen ed|
|00000050| 69 74 6f 72 20 28 50 61 | 72 74 20 31 20 6f 66 20 |itor (Pa|rt 1 of |
|00000060| 38 29 0a 4b 65 79 77 6f | 72 64 73 3a 20 53 6f 66 |8).Keywo|rds: Sof|
|00000070| 74 77 61 72 65 20 54 6f | 6f 6c 73 2c 20 59 65 74 |tware To|ols, Yet|
|00000080| 20 41 6e 6f 74 68 65 72 | 20 53 63 72 65 65 6e 20 | Another| Screen |
|00000090| 45 64 69 74 6f 72 2c 20 | 42 6f 74 68 20 42 53 44 |Editor, |Both BSD|
|000000a0| 20 61 6e 64 20 55 53 47 | 0a 4e 65 77 73 67 72 6f | and USG|.Newsgro|
|000000b0| 75 70 73 3a 20 6d 6f 64 | 2e 73 6f 75 72 63 65 73 |ups: mod|.sources|
|000000c0| 0a 41 70 70 72 6f 76 65 | 64 3a 20 6a 70 6e 40 70 |.Approve|d: jpn@p|
|000000d0| 61 6e 64 61 2e 55 55 43 | 50 0a 0a 4d 6f 64 2e 73 |anda.UUC|P..Mod.s|
|000000e0| 6f 75 72 63 65 73 3a 20 | 20 56 6f 6c 75 6d 65 20 |ources: | Volume |
|000000f0| 34 2c 20 49 73 73 75 65 | 20 38 32 0a 53 75 62 6d |4, Issue| 82.Subm|
|00000100| 69 74 74 65 64 20 62 79 | 3a 20 4a 65 66 66 20 4c |itted by|: Jeff L|
|00000110| 65 65 20 3c 73 65 69 73 | 6d 6f 21 67 61 74 65 63 |ee <seis|mo!gatec|
|00000120| 68 21 6a 65 66 66 3e 0a | 0a 23 21 20 2f 62 69 6e |h!jeff>.|.#! /bin|
|00000130| 2f 73 68 0a 23 20 54 68 | 69 73 20 69 73 20 61 20 |/sh.# Th|is is a |
|00000140| 73 68 65 6c 6c 20 61 72 | 63 68 69 76 65 2c 20 6d |shell ar|chive, m|
|00000150| 65 61 6e 69 6e 67 3a 0a | 23 20 31 2e 20 52 65 6d |eaning:.|# 1. Rem|
|00000160| 6f 76 65 20 65 76 65 72 | 79 74 68 69 6e 67 20 61 |ove ever|ything a|
|00000170| 62 6f 76 65 20 74 68 65 | 20 23 21 20 2f 62 69 6e |bove the| #! /bin|
|00000180| 2f 73 68 20 6c 69 6e 65 | 2e 0a 23 20 32 2e 20 53 |/sh line|..# 2. S|
|00000190| 61 76 65 20 74 68 65 20 | 72 65 73 75 6c 74 69 6e |ave the |resultin|
|000001a0| 67 20 74 65 78 74 20 69 | 6e 20 61 20 66 69 6c 65 |g text i|n a file|
|000001b0| 2e 0a 23 20 33 2e 20 45 | 78 65 63 75 74 65 20 74 |..# 3. E|xecute t|
|000001c0| 68 65 20 66 69 6c 65 20 | 77 69 74 68 20 2f 62 69 |he file |with /bi|
|000001d0| 6e 2f 73 68 20 28 6e 6f | 74 20 63 73 68 29 20 74 |n/sh (no|t csh) t|
|000001e0| 6f 20 63 72 65 61 74 65 | 3a 0a 23 09 52 45 41 44 |o create|:.#.READ|
|000001f0| 4d 45 0a 23 09 61 73 63 | 69 69 2e 68 0a 23 09 63 |ME.#.asc|ii.h.#.c|
|00000200| 6f 6e 73 74 64 65 66 73 | 2e 68 0a 23 09 64 65 62 |onstdefs|.h.#.deb|
|00000210| 75 67 2e 68 0a 23 09 65 | 78 74 65 72 6e 2e 68 0a |ug.h.#.e|xtern.h.|
|00000220| 23 09 73 65 2e 68 0a 23 | 09 6d 34 6d 75 6e 67 65 |#.se.h.#|.m4munge|
|00000230| 0a 23 09 77 68 65 72 65 | 0a 23 09 6d 61 6b 65 66 |.#.where|.#.makef|
|00000240| 69 6c 65 0a 23 20 54 68 | 69 73 20 61 72 63 68 69 |ile.# Th|is archi|
|00000250| 76 65 20 63 72 65 61 74 | 65 64 3a 20 54 75 65 20 |ve creat|ed: Tue |
|00000260| 41 70 72 20 32 39 20 31 | 30 3a 34 35 3a 32 35 20 |Apr 29 1|0:45:25 |
|00000270| 31 39 38 36 0a 65 78 70 | 6f 72 74 20 50 41 54 48 |1986.exp|ort PATH|
|00000280| 3b 20 50 41 54 48 3d 2f | 62 69 6e 3a 2f 75 73 72 |; PATH=/|bin:/usr|
|00000290| 2f 62 69 6e 3a 24 50 41 | 54 48 0a 65 63 68 6f 20 |/bin:$PA|TH.echo |
|000002a0| 73 68 61 72 3a 20 22 65 | 78 74 72 61 63 74 69 6e |shar: "e|xtractin|
|000002b0| 67 20 27 52 45 41 44 4d | 45 27 22 20 27 28 35 37 |g 'READM|E'" '(57|
|000002c0| 35 35 20 63 68 61 72 61 | 63 74 65 72 73 29 27 0a |55 chara|cters)'.|
|000002d0| 69 66 20 74 65 73 74 20 | 2d 66 20 27 52 45 41 44 |if test |-f 'READ|
|000002e0| 4d 45 27 0a 74 68 65 6e | 0a 09 65 63 68 6f 20 73 |ME'.then|..echo s|
|000002f0| 68 61 72 3a 20 22 77 69 | 6c 6c 20 6e 6f 74 20 6f |har: "wi|ll not o|
|00000300| 76 65 72 2d 77 72 69 74 | 65 20 65 78 69 73 74 69 |ver-writ|e existi|
|00000310| 6e 67 20 66 69 6c 65 20 | 27 52 45 41 44 4d 45 27 |ng file |'README'|
|00000320| 22 0a 65 6c 73 65 0a 63 | 61 74 20 3c 3c 20 5c 53 |".else.c|at << \S|
|00000330| 48 41 52 5f 45 4f 46 20 | 3e 20 27 52 45 41 44 4d |HAR_EOF |> 'READM|
|00000340| 45 27 0a 52 45 41 44 4d | 45 3a 0a 0a 54 68 69 73 |E'.READM|E:..This|
|00000350| 20 64 69 72 65 63 74 6f | 72 79 20 63 6f 6e 74 61 | directo|ry conta|
|00000360| 69 6e 73 20 74 68 65 20 | 73 6f 75 72 63 65 20 66 |ins the |source f|
|00000370| 69 6c 65 73 20 66 6f 72 | 20 74 68 65 20 56 61 78 |iles for| the Vax|
|00000380| 20 76 65 72 73 69 6f 6e | 20 6f 66 20 74 68 65 20 | version| of the |
|00000390| 47 65 6f 72 67 69 61 0a | 54 65 63 68 20 53 63 72 |Georgia.|Tech Scr|
|000003a0| 65 65 6e 20 45 64 69 74 | 6f 72 20 22 53 65 22 2e |een Edit|or "Se".|
|000003b0| 20 20 49 74 20 68 61 73 | 20 74 68 72 65 65 20 73 | It has| three s|
|000003c0| 75 62 64 69 72 65 63 74 | 6f 72 69 65 73 20 77 68 |ubdirect|ories wh|
|000003d0| 69 63 68 20 63 6f 6e 74 | 61 69 6e 20 74 68 69 6e |ich cont|ain thin|
|000003e0| 67 73 0a 74 68 61 74 20 | 73 65 20 6e 65 65 64 73 |gs.that |se needs|
|000003f0| 2e 20 48 65 72 65 20 69 | 73 20 61 20 72 75 6e 64 |. Here i|s a rund|
|00000400| 6f 77 6e 20 6f 66 20 74 | 68 65 20 76 61 72 69 6f |own of t|he vario|
|00000410| 75 73 20 66 69 6c 65 73 | 2e 0a 0a 46 69 6c 65 73 |us files|...Files|
|00000420| 20 63 6f 6e 74 61 69 6e | 69 6e 67 20 64 6f 63 75 | contain|ing docu|
|00000430| 6d 65 6e 74 61 74 69 6f | 6e 20 61 72 65 3a 0a 0a |mentatio|n are:..|
|00000440| 52 45 41 44 4d 45 09 09 | 2d 2d 20 74 68 69 73 20 |README..|-- this |
|00000450| 66 69 6c 65 2e 0a 73 65 | 2e 6d 34 09 09 2d 2d 20 |file..se|.m4..-- |
|00000460| 6e 72 6f 66 66 20 6d 61 | 6e 75 61 6c 20 70 61 67 |nroff ma|nual pag|
|00000470| 65 20 66 6f 72 20 73 65 | 20 28 68 61 73 20 74 6f |e for se| (has to|
|00000480| 20 62 65 20 6d 75 6e 67 | 65 64 20 74 6f 20 63 72 | be mung|ed to cr|
|00000490| 65 61 74 65 20 73 65 2e | 31 29 2e 0a 73 63 72 69 |eate se.|1)..scri|
|000004a0| 70 74 73 65 2e 31 09 2d | 2d 20 6e 72 6f 66 66 20 |ptse.1.-|- nroff |
|000004b0| 6d 61 6e 75 61 6c 20 70 | 61 67 65 20 66 6f 72 20 |manual p|age for |
|000004c0| 73 63 72 69 70 74 73 65 | 2e 0a 0a 54 68 65 20 68 |scriptse|...The h|
|000004d0| 65 61 64 65 72 20 66 69 | 6c 65 73 20 61 72 65 3a |eader fi|les are:|
|000004e0| 0a 0a 61 73 63 69 69 2e | 68 09 09 2d 2d 20 64 65 |..ascii.|h..-- de|
|000004f0| 66 69 6e 69 74 69 6f 6e | 20 6f 66 20 41 53 43 49 |finition| of ASCI|
|00000500| 49 20 6d 6e 65 6d 6f 6e | 69 63 73 20 61 6e 64 20 |I mnemon|ics and |
|00000510| 63 6f 6e 74 72 6f 6c 20 | 63 68 61 72 61 63 74 65 |control |characte|
|00000520| 72 73 2e 0a 65 78 74 65 | 72 6e 2e 68 09 2d 2d 20 |rs..exte|rn.h.-- |
|00000530| 65 78 74 65 72 6e 61 6c | 20 64 61 74 61 20 64 65 |external| data de|
|00000540| 66 69 6e 69 74 69 6f 6e | 73 20 66 6f 72 20 74 68 |finition|s for th|
|00000550| 65 20 73 63 72 65 65 6e | 20 65 64 69 74 6f 72 2e |e screen| editor.|
|00000560| 0a 73 65 2e 68 09 09 2d | 2d 20 67 6c 6f 62 61 6c |.se.h..-|- global|
|00000570| 20 23 64 65 66 69 6e 65 | 27 73 20 66 6f 72 20 74 | #define|'s for t|
|00000580| 68 65 20 73 63 72 65 65 | 6e 20 65 64 69 74 6f 72 |he scree|n editor|
|00000590| 2e 0a 63 6f 6e 73 74 64 | 65 66 73 2e 68 09 2d 2d |..constd|efs.h.--|
|000005a0| 20 67 6c 6f 62 61 6c 20 | 63 6f 6e 73 74 61 6e 74 | global |constant|
|000005b0| 73 2c 20 61 6c 73 6f 20 | 75 73 65 64 20 62 79 20 |s, also |used by |
|000005c0| 66 69 6c 65 73 20 69 6e | 20 73 75 62 64 69 72 65 |files in| subdire|
|000005d0| 63 74 6f 72 69 65 73 2e | 0a 0a 54 68 65 20 43 20 |ctories.|..The C |
|000005e0| 73 6f 75 72 63 65 20 66 | 69 6c 65 73 20 61 72 65 |source f|iles are|
|000005f0| 3a 0a 0a 6d 61 69 6e 2e | 63 09 09 2d 2d 20 6d 61 |:..main.|c..-- ma|
|00000600| 69 6e 20 70 72 6f 67 72 | 61 6d 20 61 6e 64 20 64 |in progr|am and d|
|00000610| 65 63 6c 61 72 61 74 69 | 6f 6e 20 6f 66 20 67 6c |eclarati|on of gl|
|00000620| 6f 62 61 6c 73 2c 20 69 | 6e 69 74 69 61 6c 69 7a |obals, i|nitializ|
|00000630| 61 74 69 6f 6e 2e 0a 65 | 64 69 74 2e 63 09 09 2d |ation..e|dit.c..-|
|00000640| 2d 20 6d 61 69 6e 20 63 | 6f 6d 6d 61 6e 64 20 6c |- main c|ommand l|
|00000650| 6f 6f 70 20 74 6f 20 67 | 65 74 20 61 6e 64 20 65 |oop to g|et and e|
|00000660| 78 65 63 75 74 65 20 63 | 6f 6d 6d 61 6e 64 73 2c |xecute c|ommands,|
|00000670| 20 66 69 6c 65 20 68 61 | 6e 64 6c 69 6e 67 2e 0a | file ha|ndling..|
|00000680| 64 6f 63 6d 64 31 2e 63 | 09 2d 2d 20 63 6f 6d 6d |docmd1.c|.-- comm|
|00000690| 61 6e 64 20 64 65 63 6f | 64 65 72 20 61 6e 64 20 |and deco|der and |
|000006a0| 66 75 6e 63 74 69 6f 6e | 73 20 66 6f 72 20 6d 6f |function|s for mo|
|000006b0| 73 74 20 63 6f 6d 6d 61 | 6e 64 73 2e 0a 64 6f 63 |st comma|nds..doc|
|000006c0| 6d 64 32 2e 63 09 2d 2d | 20 66 75 6e 63 74 69 6f |md2.c.--| functio|
|000006d0| 6e 73 20 66 6f 72 20 74 | 68 65 20 72 65 73 74 20 |ns for t|he rest |
|000006e0| 6f 66 20 74 68 65 20 63 | 6f 6d 6d 61 6e 64 73 2e |of the c|ommands.|
|000006f0| 0a 6d 69 73 63 2e 63 09 | 09 2d 2d 20 6d 69 73 63 |.misc.c.|.-- misc|
|00000700| 65 6c 6c 61 6e 69 6f 75 | 73 20 66 75 6e 63 74 69 |ellaniou|s functi|
|00000710| 6f 6e 73 2e 0a 73 63 72 | 61 74 63 68 2e 63 09 2d |ons..scr|atch.c.-|
|00000720| 2d 20 73 63 72 61 74 63 | 68 20 66 69 6c 65 20 6d |- scratc|h file m|
|00000730| 61 6e 69 70 75 6c 61 74 | 69 6e 67 20 66 75 6e 63 |anipulat|ing func|
|00000740| 74 69 6f 6e 73 2e 0a 73 | 63 72 65 65 6e 2e 63 09 |tions..s|creen.c.|
|00000750| 2d 2d 20 72 6f 75 74 69 | 6e 65 73 20 74 6f 20 6b |-- routi|nes to k|
|00000760| 65 65 70 20 74 72 61 63 | 6b 20 6f 66 20 74 68 65 |eep trac|k of the|
|00000770| 20 73 63 72 65 65 6e 20 | 63 6f 6e 74 65 6e 74 73 | screen |contents|
|00000780| 2e 0a 74 65 72 6d 2e 63 | 09 09 2d 2d 20 72 6f 75 |..term.c|..-- rou|
|00000790| 74 69 6e 65 73 20 66 6f | 72 20 63 68 61 6e 67 69 |tines fo|r changi|
|000007a0| 6e 67 20 74 68 65 20 74 | 65 72 6d 69 6e 61 6c 2e |ng the t|erminal.|
|000007b0| 0a 0a 54 68 65 20 73 75 | 62 64 69 72 65 63 74 6f |..The su|bdirecto|
|000007c0| 72 69 65 73 20 61 72 65 | 3a 0a 0a 6c 69 62 63 68 |ries are|:..libch|
|000007d0| 61 6e 67 65 74 74 79 09 | 2d 2d 20 72 6f 75 74 69 |angetty.|-- routi|
|000007e0| 6e 65 73 20 74 6f 20 63 | 68 61 6e 67 65 20 74 68 |nes to c|hange th|
|000007f0| 65 20 74 65 72 6d 69 6e | 61 6c 20 64 72 69 76 65 |e termin|al drive|
|00000800| 72 20 62 61 63 6b 20 61 | 6e 64 20 66 6f 72 74 68 |r back a|nd forth|
|00000810| 2e 0a 70 61 74 09 09 2d | 2d 20 70 61 74 74 65 72 |..pat..-|- patter|
|00000820| 6e 20 6d 61 74 63 68 69 | 6e 67 20 72 6f 75 74 69 |n matchi|ng routi|
|00000830| 6e 65 73 2e 0a 73 65 5f | 68 09 09 2d 2d 20 63 6f |nes..se_|h..-- co|
|00000840| 6e 74 61 69 6e 73 20 68 | 65 6c 70 20 73 63 72 69 |ntains h|elp scri|
|00000850| 70 74 73 20 66 6f 72 20 | 61 6c 6c 20 63 6f 6d 6d |pts for |all comm|
|00000860| 61 6e 64 73 20 69 6e 20 | 73 65 2e 0a 0a 4d 69 73 |ands in |se...Mis|
|00000870| 63 65 6c 6c 61 6e 69 6f | 75 73 20 66 69 6c 65 73 |cellanio|us files|
|00000880| 3a 0a 0a 77 68 65 72 65 | 09 09 2d 2d 20 73 68 65 |:..where|..-- she|
|00000890| 6c 6c 20 66 69 6c 65 20 | 74 6f 20 64 65 74 65 72 |ll file |to deter|
|000008a0| 6d 69 6e 65 20 53 79 73 | 74 65 6d 20 56 20 28 52 |mine Sys|tem V (R|
|000008b0| 20 31 20 6f 72 20 32 29 | 2c 20 34 2e 31 2c 20 6f | 1 or 2)|, 4.1, o|
|000008c0| 72 20 34 2e 32 20 42 53 | 44 2e 0a 6d 34 6d 75 6e |r 4.2 BS|D..m4mun|
|000008d0| 67 65 09 09 2d 2d 20 6d | 61 6e 69 70 75 6c 61 74 |ge..-- m|anipulat|
|000008e0| 65 20 6f 75 74 70 75 74 | 20 6f 66 20 77 68 65 72 |e output| of wher|
|000008f0| 65 20 66 6f 72 20 6d 34 | 20 66 6f 72 20 73 65 20 |e for m4| for se |
|00000900| 6d 61 6e 20 70 61 67 65 | 0a 6d 61 6b 65 66 69 6c |man page|.makefil|
|00000910| 65 09 2d 2d 20 74 68 65 | 20 6d 61 6b 65 66 69 6c |e.-- the| makefil|
|00000920| 65 20 66 6f 72 20 6d 61 | 6b 65 28 31 29 2e 0a 70 |e for ma|ke(1)..p|
|00000930| 72 69 6e 74 32 09 09 2d | 2d 20 69 6e 6f 64 65 20 |rint2..-|- inode |
|00000940| 75 73 65 64 20 62 79 20 | 6d 61 6b 65 20 66 6f 72 |used by |make for|
|00000950| 20 70 72 69 6e 74 69 6e | 67 20 6f 6e 6c 79 20 63 | printin|g only c|
|00000960| 68 61 6e 67 65 64 20 73 | 74 75 66 66 2e 0a 0a 73 |hanged s|tuff...s|
|00000970| 63 72 69 70 74 73 65 2e | 63 09 2d 2d 20 71 75 69 |criptse.|c.-- qui|
|00000980| 63 6b 20 61 6e 64 20 64 | 69 72 74 79 20 43 20 70 |ck and d|irty C p|
|00000990| 72 6f 67 72 61 6d 20 74 | 6f 20 6d 61 6b 65 20 73 |rogram t|o make s|
|000009a0| 63 72 69 70 74 73 20 66 | 6f 72 20 73 65 2e 0a 73 |cripts f|or se..s|
|000009b0| 63 72 69 70 74 73 65 2e | 31 09 2d 2d 20 6d 61 6e |criptse.|1.-- man|
|000009c0| 75 61 6c 20 70 61 67 65 | 20 66 6f 72 20 73 61 6d |ual page| for sam|
|000009d0| 65 2e 0a 0a 45 78 65 63 | 75 74 61 62 6c 65 20 66 |e...Exec|utable f|
|000009e0| 69 6c 65 73 3a 0a 0a 73 | 65 09 09 2d 2d 20 65 78 |iles:..s|e..-- ex|
|000009f0| 65 63 75 74 61 62 6c 65 | 20 76 65 72 73 69 6f 6e |ecutable| version|
|00000a00| 20 6f 66 20 74 68 65 20 | 73 63 72 65 65 6e 20 65 | of the |screen e|
|00000a10| 64 69 74 6f 72 2e 0a 73 | 63 72 69 70 74 73 65 09 |ditor..s|criptse.|
|00000a20| 2d 2d 20 74 68 65 20 65 | 78 65 63 75 74 61 62 6c |-- the e|xecutabl|
|00000a30| 65 20 76 65 72 73 69 6f | 6e 20 6f 66 20 74 68 65 |e versio|n of the|
|00000a40| 20 73 63 72 69 70 74 20 | 6d 61 6b 65 72 2e 0a 0a | script |maker...|
|00000a50| 0a 43 6f 6e 64 69 74 69 | 6f 6e 61 6c 20 43 6f 6d |.Conditi|onal Com|
|00000a60| 70 69 6c 61 74 69 6f 6e | 20 66 6c 61 67 73 3a 0a |pilation| flags:.|
|00000a70| 0a 09 54 68 65 20 66 6c | 61 67 20 48 41 52 44 5f |..The fl|ag HARD_|
|00000a80| 54 45 52 4d 53 2c 20 69 | 66 20 61 64 64 65 64 20 |TERMS, i|f added |
|00000a90| 74 6f 20 74 68 65 20 43 | 46 4c 41 47 53 20 6d 61 |to the C|FLAGS ma|
|00000aa0| 63 72 6f 20 69 6e 20 74 | 68 65 20 6d 61 6b 65 66 |cro in t|he makef|
|00000ab0| 69 6c 65 2c 0a 77 69 6c | 6c 20 72 65 6d 6f 76 65 |ile,.wil|l remove|
|00000ac0| 20 74 68 65 20 74 65 72 | 6d 69 6e 61 6c 2d 69 6e | the ter|minal-in|
|00000ad0| 64 65 70 65 6e 64 61 6e | 74 20 63 6f 64 65 20 77 |dependan|t code w|
|00000ae0| 68 69 63 68 20 75 73 65 | 73 20 74 65 72 6d 6c 69 |hich use|s termli|
|00000af0| 62 2c 20 61 6e 64 20 70 | 75 74 20 62 61 63 6b 0a |b, and p|ut back.|
|00000b00| 74 68 65 20 6f 72 69 67 | 69 6e 61 6c 2c 20 74 65 |the orig|inal, te|
|00000b10| 72 6d 69 6e 61 6c 2d 74 | 79 70 65 73 2d 68 61 72 |rminal-t|ypes-har|
|00000b20| 64 77 69 72 65 64 2d 69 | 6e 74 6f 2d 74 68 65 2d |dwired-i|nto-the-|
|00000b30| 70 72 6f 67 72 61 6d 20 | 63 6f 64 65 2e 20 20 54 |program |code. T|
|00000b40| 68 65 20 6f 6e 6c 79 0a | 72 65 61 73 6f 6e 20 74 |he only.|reason t|
|00000b50| 6f 20 64 6f 20 74 68 69 | 73 20 69 73 20 69 66 20 |o do thi|s is if |
|00000b60| 73 65 20 68 61 73 20 74 | 6f 20 72 75 6e 20 6f 6e |se has t|o run on|
|00000b70| 20 61 20 73 79 73 74 65 | 6d 20 77 69 74 68 6f 75 | a syste|m withou|
|00000b80| 74 20 74 68 65 20 74 65 | 72 6d 6c 69 62 20 70 61 |t the te|rmlib pa|
|00000b90| 63 61 6b 61 67 65 2e 0a | 55 73 69 6e 67 20 74 65 |cakage..|Using te|
|00000ba0| 72 6d 6c 69 62 2c 20 73 | 65 20 69 73 20 63 6f 6e |rmlib, s|e is con|
|00000bb0| 73 69 64 65 72 61 62 6c | 79 20 73 6d 61 6c 6c 65 |siderabl|y smalle|
|00000bc0| 72 2c 20 61 73 20 77 65 | 6c 6c 20 61 73 20 6d 6f |r, as we|ll as mo|
|00000bd0| 72 65 20 66 6c 65 78 69 | 62 6c 65 2e 0a 0a 09 54 |re flexi|ble....T|
|00000be0| 68 65 20 66 6c 61 67 20 | 4f 4c 44 5f 53 43 52 41 |he flag |OLD_SCRA|
|00000bf0| 54 43 48 2c 20 69 66 20 | 61 64 64 65 64 20 74 6f |TCH, if |added to|
|00000c00| 20 74 68 65 20 43 46 4c | 41 47 53 20 6d 61 63 72 | the CFL|AGS macr|
|00000c10| 6f 20 69 6e 20 74 68 65 | 20 6d 61 6b 65 66 69 6c |o in the| makefil|
|00000c20| 65 2c 0a 77 69 6c 6c 20 | 63 61 75 73 65 20 73 65 |e,.will |cause se|
|00000c30| 20 74 6f 20 75 73 65 20 | 74 68 65 20 6f 72 69 67 | to use |the orig|
|00000c40| 69 6e 61 6c 2c 20 6c 69 | 6e 6b 65 64 2d 6c 69 73 |inal, li|nked-lis|
|00000c50| 74 20 6d 65 74 68 6f 64 | 20 66 6f 72 20 6b 65 65 |t method| for kee|
|00000c60| 70 69 6e 67 20 74 72 61 | 63 6b 20 6f 66 0a 6c 69 |ping tra|ck of.li|
|00000c70| 6e 65 73 20 69 6e 20 74 | 68 65 20 62 75 66 66 65 |nes in t|he buffe|
|00000c80| 72 2e 20 20 54 68 69 73 | 20 6d 65 74 68 6f 64 20 |r. This| method |
|00000c90| 69 73 20 66 61 73 74 65 | 72 20 66 6f 72 20 72 65 |is faste|r for re|
|00000ca0| 61 72 72 61 6e 67 69 6e | 67 20 6c 69 6e 65 73 2c |arrangin|g lines,|
|00000cb0| 20 62 75 74 0a 63 6f 6e | 73 69 64 65 72 61 62 6c | but.con|siderabl|
|00000cc0| 79 20 73 6c 6f 77 65 72 | 20 66 6f 72 20 73 69 6d |y slower| for sim|
|00000cd0| 70 6c 79 20 6c 6f 6f 6b | 69 6e 67 20 75 70 20 6c |ply look|ing up l|
|00000ce0| 69 6e 65 73 2e 20 20 43 | 75 72 72 65 6e 74 6c 79 |ines. C|urrently|
|00000cf0| 2c 20 73 65 20 75 73 65 | 73 20 74 68 65 0a 6d 65 |, se use|s the.me|
|00000d00| 74 68 6f 64 20 67 69 76 | 65 6e 20 69 73 20 53 6f |thod giv|en is So|
|00000d10| 66 74 77 61 72 65 20 54 | 6f 6f 6c 73 20 69 6e 20 |ftware T|ools in |
|00000d20| 50 61 73 63 61 6c 2c 20 | 77 68 69 63 68 20 6b 65 |Pascal, |which ke|
|00000d30| 65 70 73 20 74 68 65 20 | 6c 69 6e 65 73 20 69 6e |eps the |lines in|
|00000d40| 20 6f 72 64 65 72 20 69 | 6e 0a 61 6e 20 61 72 72 | order i|n.an arr|
|00000d50| 61 79 2e 20 20 49 74 20 | 69 73 20 73 6c 6f 77 65 |ay. It |is slowe|
|00000d60| 72 20 61 74 20 72 65 61 | 72 72 61 6e 67 69 6e 67 |r at rea|rranging|
|00000d70| 2c 20 62 75 74 20 61 73 | 20 66 61 73 74 20 61 73 |, but as| fast as|
|00000d80| 20 70 6f 73 73 69 62 6c | 65 20 66 6f 72 20 66 69 | possibl|e for fi|
|00000d90| 6e 64 69 6e 67 0a 6c 69 | 6e 65 73 20 69 6e 20 74 |nding.li|nes in t|
|00000da0| 68 65 20 62 75 66 66 65 | 72 2e 20 20 54 68 69 73 |he buffe|r. This|
|00000db0| 20 76 65 72 73 69 6f 6e | 20 61 6c 73 6f 20 74 61 | version| also ta|
|00000dc0| 6b 65 73 20 6c 65 73 73 | 20 64 61 74 61 20 61 6e |kes less| data an|
|00000dd0| 64 20 63 6f 64 65 20 73 | 70 61 63 65 2e 0a 0a 09 |d code s|pace....|
|00000de0| 54 68 65 20 66 6c 61 67 | 20 4f 4c 44 5f 47 4c 4f |The flag| OLD_GLO|
|00000df0| 42 2c 20 69 66 20 61 64 | 64 65 64 20 74 6f 20 74 |B, if ad|ded to t|
|00000e00| 68 65 20 43 46 4c 41 47 | 53 20 6d 61 63 72 6f 20 |he CFLAG|S macro |
|00000e10| 69 6e 20 74 68 65 20 6d | 61 6b 65 66 69 6c 65 2c |in the m|akefile,|
|00000e20| 0a 77 69 6c 6c 20 6b 65 | 65 70 20 73 65 20 66 72 |.will ke|ep se fr|
|00000e30| 6f 6d 20 73 70 65 63 69 | 61 6c 20 63 61 73 69 6e |om speci|al casin|
|00000e40| 67 20 63 6f 6d 6d 61 6e | 64 73 20 77 68 6f 73 65 |g comman|ds whose|
|00000e50| 20 65 66 66 65 63 74 20 | 69 73 20 74 6f 20 72 65 | effect |is to re|
|00000e60| 76 65 72 73 65 20 74 68 | 65 0a 6f 72 64 65 72 20 |verse th|e.order |
|00000e70| 6f 66 20 74 68 65 20 6c | 69 6e 65 73 20 69 6e 20 |of the l|ines in |
|00000e80| 74 68 65 20 62 75 66 66 | 65 72 2e 20 20 54 68 65 |the buff|er. The|
|00000e90| 20 73 70 65 63 69 61 6c | 20 63 61 73 69 6e 67 20 | special| casing |
|00000ea0| 63 6f 64 65 20 63 61 6e | 20 73 61 76 65 20 61 6e |code can| save an|
|00000eb0| 0a 2a 69 6e 63 72 65 64 | 69 62 6c 65 2a 20 61 6d |.*incred|ible* am|
|00000ec0| 6f 75 6e 74 20 6f 66 20 | 74 69 6d 65 20 66 6f 72 |ount of |time for|
|00000ed0| 20 74 68 69 73 20 70 61 | 74 68 6f 6c 6f 67 69 63 | this pa|thologic|
|00000ee0| 61 6c 20 63 61 73 65 2c | 20 73 6f 20 69 74 20 69 |al case,| so it i|
|00000ef0| 73 20 62 65 73 74 20 74 | 6f 20 6c 65 61 76 65 0a |s best t|o leave.|
|00000f00| 74 68 69 6e 67 73 20 61 | 6c 6f 6e 65 2e 20 20 54 |things a|lone. T|
|00000f10| 68 69 73 20 6f 6e 6c 79 | 20 61 70 70 6c 69 65 73 |his only| applies|
|00000f20| 20 74 6f 20 74 68 65 20 | 53 6f 66 74 77 61 72 65 | to the |Software|
|00000f30| 20 54 6f 6f 6c 73 20 69 | 6e 20 50 61 73 63 61 6c | Tools i|n Pascal|
|00000f40| 20 73 74 79 6c 65 0a 6c | 69 6e 65 20 68 61 6e 64 | style.l|ine hand|
|00000f50| 6c 69 6e 67 2e 0a 0a 09 | 54 68 65 20 66 6c 61 67 |ling....|The flag|
|00000f60| 20 4c 4f 47 5f 55 53 41 | 47 45 2c 20 69 66 20 61 | LOG_USA|GE, if a|
|00000f70| 64 64 65 64 20 74 6f 20 | 74 68 65 20 43 46 4c 41 |dded to |the CFLA|
|00000f80| 47 53 20 6d 61 63 72 6f | 20 69 6e 20 74 68 65 20 |GS macro| in the |
|00000f90| 6d 61 6b 65 66 69 6c 65 | 2c 0a 77 69 6c 6c 20 63 |makefile|,.will c|
|00000fa0| 61 75 73 65 20 73 65 20 | 74 6f 20 77 72 69 74 65 |ause se |to write|
|00000fb0| 20 75 73 61 67 65 20 22 | 73 74 61 74 69 73 74 69 | usage "|statisti|
|00000fc0| 63 73 22 20 74 6f 20 61 | 20 6c 6f 67 20 66 69 6c |cs" to a| log fil|
|00000fd0| 65 2c 20 63 6f 6e 73 69 | 73 74 69 6e 67 20 6f 66 |e, consi|sting of|
|00000fe0| 20 74 68 65 0a 6c 6f 67 | 69 6e 20 6e 61 6d 65 20 | the.log|in name |
|00000ff0| 61 6e 64 20 74 69 6d 65 | 20 61 6e 64 20 64 61 74 |and time| and dat|
|00001000| 65 20 77 68 65 6e 20 61 | 6e 20 69 6e 64 69 76 69 |e when a|n indivi|
|00001010| 64 75 61 6c 20 75 73 65 | 64 20 73 65 2e 20 20 54 |dual use|d se. T|
|00001020| 68 69 73 20 69 73 20 6f | 6e 6c 79 20 64 6f 6e 65 |his is o|nly done|
|00001030| 0a 61 74 20 47 65 6f 72 | 67 69 61 20 54 65 63 68 |.at Geor|gia Tech|
|00001040| 2c 20 61 6e 64 20 74 68 | 65 20 6c 6f 67 66 69 6c |, and th|e logfil|
|00001050| 65 20 70 61 74 68 20 6e | 61 6d 65 20 69 6e 20 74 |e path n|ame in t|
|00001060| 68 65 20 6c 6f 67 28 29 | 20 72 6f 75 74 69 6e 65 |he log()| routine|
|00001070| 20 69 6e 20 65 64 69 74 | 2e 63 0a 73 68 6f 75 6c | in edit|.c.shoul|
|00001080| 64 20 62 65 20 63 68 61 | 6e 67 65 64 20 74 6f 20 |d be cha|nged to |
|00001090| 75 73 65 20 61 20 73 79 | 73 74 65 6d 20 61 63 63 |use a sy|stem acc|
|000010a0| 6f 75 6e 74 69 6e 67 20 | 66 69 6c 65 20 73 6f 6d |ounting |file som|
|000010b0| 65 77 68 65 72 65 2e 20 | 20 49 74 20 63 75 72 72 |ewhere. | It curr|
|000010c0| 65 6e 74 6c 79 0a 63 72 | 65 61 74 65 73 20 61 20 |ently.cr|eates a |
|000010d0| 66 69 6c 65 20 69 6e 20 | 2f 75 73 72 2f 74 6d 70 |file in |/usr/tmp|
|000010e0| 2e 0a 0a 09 54 68 65 20 | 27 77 68 65 72 65 27 20 |....The |'where' |
|000010f0| 63 6f 6d 6d 61 6e 64 20 | 63 72 65 61 74 65 73 20 |command |creates |
|00001100| 61 20 66 69 6c 65 20 63 | 61 6c 6c 65 64 20 27 66 |a file c|alled 'f|
|00001110| 6c 61 67 73 27 2c 20 77 | 68 69 63 68 20 74 68 65 |lags', w|hich the|
|00001120| 20 6d 61 6b 65 66 69 6c | 65 0a 63 61 74 73 20 69 | makefil|e.cats i|
|00001130| 6e 73 69 64 65 20 60 60 | 73 2e 20 20 54 68 65 73 |nside ``|s. Thes|
|00001140| 65 20 64 65 66 69 6e 65 | 20 61 6e 64 2f 6f 72 20 |e define| and/or |
|00001150| 75 6e 64 65 66 69 6e 65 | 20 74 68 65 20 66 6c 61 |undefine| the fla|
|00001160| 67 73 20 55 53 47 20 66 | 6f 72 20 53 79 73 74 65 |gs USG f|or Syste|
|00001170| 6d 20 56 2c 0a 53 35 52 | 32 20 69 66 20 66 6f 72 |m V,.S5R|2 if for|
|00001180| 20 52 65 6c 65 61 73 65 | 20 32 2c 20 42 53 44 20 | Release| 2, BSD |
|00001190| 66 6f 72 20 34 2e 31 20 | 61 6e 64 20 34 2e 32 2c |for 4.1 |and 4.2,|
|000011a0| 20 61 6e 64 20 42 53 44 | 34 5f 32 20 66 6f 72 20 | and BSD|4_2 for |
|000011b0| 34 2e 32 20 73 70 65 63 | 69 66 69 63 20 63 6f 64 |4.2 spec|ific cod|
|000011c0| 65 2e 0a 0a 4d 69 73 63 | 65 6c 6c 61 6e 69 6f 75 |e...Misc|ellaniou|
|000011d0| 73 3a 0a 0a 09 43 6f 64 | 65 20 77 68 69 63 68 20 |s:...Cod|e which |
|000011e0| 69 73 20 64 65 70 65 6e | 64 61 6e 74 20 6f 6e 20 |is depen|dant on |
|000011f0| 74 68 65 20 42 65 72 6b | 65 6c 65 79 20 6a 6f 62 |the Berk|eley job|
|00001200| 20 63 6f 6e 74 72 6f 6c | 20 73 74 75 66 66 20 69 | control| stuff i|
|00001210| 73 20 61 6c 73 6f 0a 63 | 6f 6e 64 69 74 69 6f 6e |s also.c|ondition|
|00001220| 61 6c 6c 79 20 63 6f 6d | 70 69 6c 65 64 20 69 6e |ally com|piled in|
|00001230| 2c 20 73 6f 20 74 68 61 | 74 20 6f 6e 20 73 79 73 |, so tha|t on sys|
|00001240| 74 65 6d 73 20 77 69 74 | 68 6f 75 74 20 69 74 2c |tems wit|hout it,|
|00001250| 20 69 74 20 77 6f 6e 27 | 74 20 67 65 74 20 69 6e | it won'|t get in|
|00001260| 0a 74 68 65 20 77 61 79 | 2e 0a 0a 09 43 6f 64 65 |.the way|....Code|
|00001270| 20 68 61 73 20 62 65 65 | 6e 20 61 64 64 65 64 20 | has bee|n added |
|00001280| 77 68 69 63 68 20 73 68 | 6f 75 6c 64 20 61 6c 6c |which sh|ould all|
|00001290| 6f 77 20 73 65 20 74 6f | 20 63 6f 6d 65 20 75 70 |ow se to| come up|
|000012a0| 20 75 6e 64 65 72 20 55 | 53 47 20 55 6e 69 78 0a | under U|SG Unix.|
|000012b0| 35 2e 30 20 28 53 79 73 | 74 65 6d 20 56 29 2e 20 |5.0 (Sys|tem V). |
|000012c0| 20 49 66 20 53 35 52 32 | 20 69 73 20 64 65 66 69 | If S5R2| is defi|
|000012d0| 6e 65 64 2c 20 73 65 20 | 77 69 6c 6c 20 75 73 65 |ned, se |will use|
|000012e0| 20 74 68 65 20 74 65 72 | 6d 69 6e 66 6f 20 70 61 | the ter|minfo pa|
|000012f0| 63 6b 61 67 65 2e 0a 4f | 74 68 65 72 77 69 73 65 |ckage..O|therwise|
|00001300| 2c 20 69 74 20 61 73 73 | 75 6d 65 73 20 52 65 6c |, it ass|umes Rel|
|00001310| 65 61 73 65 20 31 2c 20 | 61 6e 64 20 74 68 61 74 |ease 1, |and that|
|00001320| 20 74 68 65 20 42 53 44 | 20 74 65 72 6d 6c 69 62 | the BSD| termlib|
|00001330| 20 70 61 63 6b 61 67 65 | 20 68 61 73 0a 62 65 65 | package| has.bee|
|00001340| 6e 20 70 6f 72 74 65 64 | 20 61 6e 64 20 69 73 20 |n ported| and is |
|00001350| 61 76 61 69 6c 61 62 6c | 65 2e 0a 0a 09 54 68 65 |availabl|e....The|
|00001360| 20 77 68 65 72 65 20 70 | 72 6f 67 72 61 6d 20 77 | where p|rogram w|
|00001370| 69 6c 6c 20 61 6c 73 6f | 20 64 65 66 69 6e 65 20 |ill also| define |
|00001380| 6f 72 20 75 6e 64 65 66 | 69 6e 65 20 47 49 54 56 |or undef|ine GITV|
|00001390| 41 58 2e 20 20 54 68 69 | 73 20 69 73 0a 69 73 20 |AX. Thi|s is.is |
|000013a0| 75 73 65 64 20 31 29 20 | 74 6f 20 61 6c 6c 6f 77 |used 1) |to allow|
|000013b0| 20 63 6f 6e 74 72 6f 6c | 2d 73 20 61 6e 64 20 63 | control|-s and c|
|000013c0| 6f 6e 74 72 6f 6c 2d 71 | 20 61 73 20 63 6f 6e 74 |ontrol-q| as cont|
|000013d0| 72 6f 6c 20 63 68 61 72 | 61 63 74 65 72 73 2c 20 |rol char|acters, |
|000013e0| 61 6e 64 0a 32 29 20 74 | 6f 20 63 6f 6d 65 20 75 |and.2) t|o come u|
|000013f0| 70 20 69 6e 20 53 57 54 | 20 6d 6f 64 65 2e 0a 0a |p in SWT| mode...|
|00001400| 43 6f 6d 6d 65 6e 74 73 | 3a 0a 0a 09 49 74 20 69 |Comments|:...It i|
|00001410| 73 20 61 20 62 69 67 20 | 70 69 65 63 65 20 6f 66 |s a big |piece of|
|00001420| 20 73 6f 66 74 77 61 72 | 65 2e 20 42 75 74 2c 20 | softwar|e. But, |
|00001430| 69 66 20 79 6f 75 20 31 | 29 20 72 65 61 64 20 62 |if you 1|) read b|
|00001440| 6f 74 68 20 53 6f 66 74 | 77 61 72 65 20 54 6f 6f |oth Soft|ware Too|
|00001450| 6c 73 0a 61 6e 64 20 53 | 6f 66 74 77 61 72 65 20 |ls.and S|oftware |
|00001460| 54 6f 6f 6c 73 20 69 6e | 20 50 61 73 63 61 6c 20 |Tools in| Pascal |
|00001470| 28 74 68 65 20 63 68 61 | 70 74 65 72 73 20 6f 6e |(the cha|pters on|
|00001480| 20 65 64 69 74 69 6e 67 | 20 61 6e 64 20 70 61 74 | editing| and pat|
|00001490| 74 65 72 6e 20 6d 61 74 | 63 68 69 6e 67 2c 20 69 |tern mat|ching, i|
|000014a0| 66 0a 79 6f 75 20 64 6f | 6e 27 74 20 77 61 6e 74 |f.you do|n't want|
|000014b0| 20 74 6f 20 72 65 61 64 | 20 61 6c 6c 20 6f 66 20 | to read| all of |
|000014c0| 74 68 65 20 62 6f 6f 6b | 73 29 2c 20 61 6e 64 20 |the book|s), and |
|000014d0| 32 29 20 74 61 6b 65 20 | 79 6f 75 72 20 74 69 6d |2) take |your tim|
|000014e0| 65 2c 20 79 6f 75 20 73 | 68 6f 75 6c 64 20 62 65 |e, you s|hould be|
|000014f0| 0a 61 62 6c 65 20 74 6f | 20 75 6e 64 65 72 73 74 |.able to| underst|
|00001500| 61 6e 64 2c 20 61 6e 64 | 20 65 76 65 6e 74 75 61 |and, and| eventua|
|00001510| 6c 6c 79 20 6d 61 6b 65 | 20 63 68 61 6e 67 65 73 |lly make| changes|
|00001520| 20 74 6f 20 69 74 2c 20 | 61 73 20 6e 65 63 65 73 | to it, |as neces|
|00001530| 73 61 72 79 2e 0a 0a 41 | 75 74 68 6f 72 73 3a 0a |sary...A|uthors:.|
|00001540| 0a 09 53 65 20 73 74 61 | 72 74 65 64 20 6f 75 74 |..Se sta|rted out|
|00001550| 20 61 73 20 74 68 65 20 | 76 65 72 73 69 6f 6e 20 | as the |version |
|00001560| 6f 66 20 27 65 64 27 20 | 74 68 61 74 20 63 61 6d |of 'ed' |that cam|
|00001570| 65 20 77 69 74 68 20 74 | 68 65 20 62 6f 6f 6b 20 |e with t|he book |
|00001580| 27 53 6f 66 77 61 72 65 | 0a 54 6f 6f 6c 73 27 2c |'Sofware|.Tools',|
|00001590| 20 62 79 20 4b 65 72 6e | 69 67 68 61 6e 20 61 6e | by Kern|ighan an|
|000015a0| 64 20 50 6c 61 75 67 65 | 72 2c 20 77 68 69 63 68 |d Plauge|r, which|
|000015b0| 20 77 61 73 20 77 72 69 | 74 74 65 6e 20 69 6e 20 | was wri|tten in |
|000015c0| 52 61 74 66 6f 72 2e 20 | 4f 6e 20 74 68 65 20 50 |Ratfor. |On the P|
|000015d0| 72 31 6d 65 0a 63 6f 6d | 70 75 74 65 72 73 20 61 |r1me.com|puters a|
|000015e0| 74 20 74 68 65 20 53 63 | 68 6f 6f 6c 20 6f 66 20 |t the Sc|hool of |
|000015f0| 49 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 61 6e 64 20 |Informat|ion and |
|00001600| 43 6f 6d 70 75 74 65 72 | 20 53 63 69 65 6e 63 65 |Computer| Science|
|00001610| 20 61 74 20 47 65 6f 72 | 67 69 61 20 54 65 63 68 | at Geor|gia Tech|
|00001620| 2c 0a 44 61 6e 20 46 6f | 72 73 79 74 68 2c 20 50 |,.Dan Fo|rsyth, P|
|00001630| 65 72 72 79 20 46 6c 69 | 6e 6e 2c 20 61 6e 64 20 |erry Fli|nn, and |
|00001640| 41 6c 61 6e 20 41 6b 69 | 6e 20 61 64 64 65 64 20 |Alan Aki|n added |
|00001650| 61 6c 6c 20 74 68 65 20 | 65 6e 68 61 6e 63 65 6d |all the |enhancem|
|00001660| 65 6e 74 73 20 73 75 67 | 67 65 73 74 65 64 0a 69 |ents sug|gested.i|
|00001670| 6e 20 74 68 65 20 65 78 | 65 72 63 69 73 65 73 20 |n the ex|ercises |
|00001680| 69 6e 20 74 68 65 20 62 | 6f 6f 6b 2c 20 61 6e 64 |in the b|ook, and|
|00001690| 20 73 6f 6d 65 20 6d 6f | 72 65 20 6f 66 20 74 68 | some mo|re of th|
|000016a0| 65 69 72 20 6f 77 6e 2e | 20 4a 61 63 6b 20 57 61 |eir own.| Jack Wa|
|000016b0| 75 67 68 20 6d 61 64 65 | 0a 65 78 74 65 6e 73 69 |ugh made|.extensi|
|000016c0| 76 65 20 6d 6f 64 69 66 | 69 63 61 74 69 6f 6e 73 |ve modif|ications|
|000016d0| 20 74 6f 20 74 75 72 6e | 20 69 74 20 69 6e 74 6f | to turn| it into|
|000016e0| 20 61 20 73 63 72 65 65 | 6e 20 65 64 69 74 6f 72 | a scree|n editor|
|000016f0| 3b 20 66 75 72 74 68 65 | 72 20 77 6f 72 6b 20 77 |; furthe|r work w|
|00001700| 61 73 20 64 6f 6e 65 0a | 62 79 20 44 61 6e 20 46 |as done.|by Dan F|
|00001710| 6f 72 73 79 74 68 2e 20 | 41 6c 6c 20 6f 66 20 74 |orsyth. |All of t|
|00001720| 68 69 73 20 77 61 73 20 | 69 6e 20 61 6e 20 69 6d |his was |in an im|
|00001730| 70 72 6f 76 65 64 20 47 | 65 6f 72 67 69 61 20 54 |proved G|eorgia T|
|00001740| 65 63 68 20 76 65 72 73 | 69 6f 6e 20 6f 66 20 52 |ech vers|ion of R|
|00001750| 61 74 66 6f 72 2e 0a 0a | 09 4c 61 74 65 72 2c 20 |atfor...|.Later, |
|00001760| 44 61 6e 20 46 6f 72 73 | 79 74 68 2c 20 74 68 65 |Dan Fors|yth, the|
|00001770| 6e 20 28 61 6e 64 20 6e | 6f 77 29 20 61 74 20 4d |n (and n|ow) at M|
|00001780| 65 64 69 63 61 6c 20 53 | 79 73 74 65 6d 73 20 44 |edical S|ystems D|
|00001790| 65 76 65 6c 65 70 6d 65 | 6e 74 0a 43 6f 72 70 6f |evelepme|nt.Corpo|
|000017a0| 72 61 74 69 6f 6e 2c 20 | 63 6f 6e 76 65 72 74 65 |ration, |converte|
|000017b0| 64 20 74 68 65 20 52 61 | 74 66 6f 72 20 76 65 72 |d the Ra|tfor ver|
|000017c0| 73 69 6f 6e 20 69 6e 74 | 6f 20 43 2c 20 66 6f 72 |sion int|o C, for|
|000017d0| 20 42 65 72 6b 65 6c 65 | 79 20 55 6e 69 78 20 28 | Berkele|y Unix (|
|000017e0| 34 2e 31 20 42 53 44 29 | 2e 0a 41 74 20 47 65 6f |4.1 BSD)|..At Geo|
|000017f0| 72 67 69 61 20 54 65 63 | 68 2c 20 41 72 6e 6f 6c |rgia Tec|h, Arnol|
|00001800| 64 20 52 6f 62 62 69 6e | 73 20 74 6f 6f 6b 20 74 |d Robbin|s took t|
|00001810| 68 65 20 43 20 76 65 72 | 73 69 6f 6e 20 61 6e 64 |he C ver|sion and|
|00001820| 20 61 64 64 65 64 20 6d | 61 6e 79 20 6e 65 77 20 | added m|any new |
|00001830| 66 65 61 74 75 72 65 73 | 0a 61 6e 64 20 69 6d 70 |features|.and imp|
|00001840| 72 6f 76 65 6d 65 6e 74 | 73 2c 20 74 68 65 20 6d |rovement|s, the m|
|00001850| 6f 73 74 20 69 6d 70 6f | 72 74 61 6e 74 20 6f 66 |ost impo|rtant of|
|00001860| 20 77 68 69 63 68 20 77 | 61 73 20 74 65 72 6d 63 | which w|as termc|
|00001870| 61 70 20 73 75 70 70 6f | 72 74 20 61 6e 64 20 53 |ap suppo|rt and S|
|00001880| 79 73 74 65 6d 20 56 0a | 73 75 70 70 6f 72 74 2e |ystem V.|support.|
|00001890| 20 54 68 65 20 65 78 69 | 73 74 69 6e 67 20 68 65 | The exi|sting he|
|000018a0| 6c 70 20 73 63 72 65 65 | 6e 73 20 77 65 72 65 20 |lp scree|ns were |
|000018b0| 65 64 69 74 65 64 20 61 | 6e 64 20 63 6f 6d 70 6c |edited a|nd compl|
|000018c0| 65 74 65 64 20 61 74 20 | 74 68 61 74 20 74 69 6d |eted at |that tim|
|000018d0| 65 2c 20 61 73 0a 77 65 | 6c 6c 2e 20 54 68 69 73 |e, as.we|ll. This|
|000018e0| 20 77 61 73 20 63 6f 6d | 70 6c 65 74 65 64 20 69 | was com|pleted i|
|000018f0| 6e 20 65 61 72 6c 79 20 | 31 39 38 35 2e 0a 0a 09 |n early |1985....|
|00001900| 41 72 6e 6f 6c 64 20 52 | 6f 62 62 69 6e 73 20 69 |Arnold R|obbins i|
|00001910| 73 20 6e 6f 77 20 61 74 | 20 2e 2e 2e 21 67 61 74 |s now at| ...!gat|
|00001920| 65 63 68 21 65 6d 6f 72 | 79 21 61 72 6e 6f 6c 64 |ech!emor|y!arnold|
|00001930| 2c 20 61 6e 64 20 77 69 | 6c 6c 20 6d 61 6b 65 20 |, and wi|ll make |
|00001940| 65 76 65 72 79 0a 72 65 | 61 73 6f 6e 61 62 6c 65 |every.re|asonable|
|00001950| 20 61 74 74 65 6d 70 74 | 20 74 6f 20 61 6e 73 77 | attempt| to answ|
|00001960| 65 72 20 61 6e 79 20 71 | 75 65 73 74 69 6f 6e 73 |er any q|uestions|
|00001970| 20 61 6e 79 6f 6e 65 20 | 6d 61 79 20 68 61 76 65 | anyone |may have|
|00001980| 20 61 62 6f 75 74 20 69 | 74 2c 20 62 75 74 20 69 | about i|t, but i|
|00001990| 6e 0a 6e 6f 20 77 61 79 | 20 70 72 6f 6d 69 73 65 |n.no way| promise|
|000019a0| 73 20 74 6f 20 73 75 70 | 70 6f 72 74 20 6f 72 20 |s to sup|port or |
|000019b0| 65 6e 68 61 6e 63 65 20 | 27 73 65 27 2e 0a 53 48 |enhance |'se'..SH|
|000019c0| 41 52 5f 45 4f 46 0a 66 | 69 0a 65 63 68 6f 20 73 |AR_EOF.f|i.echo s|
|000019d0| 68 61 72 3a 20 22 65 78 | 74 72 61 63 74 69 6e 67 |har: "ex|tracting|
|000019e0| 20 27 61 73 63 69 69 2e | 68 27 22 20 27 28 31 32 | 'ascii.|h'" '(12|
|000019f0| 32 35 20 63 68 61 72 61 | 63 74 65 72 73 29 27 0a |25 chara|cters)'.|
|00001a00| 69 66 20 74 65 73 74 20 | 2d 66 20 27 61 73 63 69 |if test |-f 'asci|
|00001a10| 69 2e 68 27 0a 74 68 65 | 6e 0a 09 65 63 68 6f 20 |i.h'.the|n..echo |
|00001a20| 73 68 61 72 3a 20 22 77 | 69 6c 6c 20 6e 6f 74 20 |shar: "w|ill not |
|00001a30| 6f 76 65 72 2d 77 72 69 | 74 65 20 65 78 69 73 74 |over-wri|te exist|
|00001a40| 69 6e 67 20 66 69 6c 65 | 20 27 61 73 63 69 69 2e |ing file| 'ascii.|
|00001a50| 68 27 22 0a 65 6c 73 65 | 0a 63 61 74 20 3c 3c 20 |h'".else|.cat << |
|00001a60| 5c 53 48 41 52 5f 45 4f | 46 20 3e 20 27 61 73 63 |\SHAR_EO|F > 'asc|
|00001a70| 69 69 2e 68 27 0a 2f 2a | 0a 2a 2a 20 61 73 63 69 |ii.h'./*|.** asci|
|00001a80| 69 2e 68 0a 2a 2a 0a 2a | 2a 20 64 65 66 69 6e 69 |i.h.**.*|* defini|
|00001a90| 74 69 6f 6e 73 20 6f 66 | 20 41 53 43 49 49 20 6d |tions of| ASCII m|
|00001aa0| 6e 65 6d 6f 6e 69 63 73 | 20 61 6e 64 20 73 79 6e |nemonics| and syn|
|00001ab0| 6f 6e 79 6d 73 2e 0a 2a | 2f 0a 0a 23 69 66 6e 64 |onyms..*|/..#ifnd|
|00001ac0| 65 66 09 5f 41 53 43 49 | 49 5f 48 0a 23 64 65 66 |ef._ASCI|I_H.#def|
|00001ad0| 69 6e 65 09 5f 41 53 43 | 49 49 5f 48 0a 23 64 65 |ine._ASC|II_H.#de|
|00001ae0| 66 69 6e 65 09 4e 55 4c | 09 27 5c 30 27 0a 23 64 |fine.NUL|.'\0'.#d|
|00001af0| 65 66 69 6e 65 09 53 4f | 48 09 27 5c 30 30 31 27 |efine.SO|H.'\001'|
|00001b00| 0a 23 64 65 66 69 6e 65 | 09 53 54 58 09 27 5c 30 |.#define|.STX.'\0|
|00001b10| 30 32 27 0a 23 64 65 66 | 69 6e 65 09 45 54 58 09 |02'.#def|ine.ETX.|
|00001b20| 27 5c 30 30 33 27 0a 23 | 64 65 66 69 6e 65 09 45 |'\003'.#|define.E|
|00001b30| 4f 54 09 27 5c 30 30 34 | 27 0a 23 64 65 66 69 6e |OT.'\004|'.#defin|
|00001b40| 65 09 45 4e 51 09 27 5c | 30 30 35 27 0a 23 64 65 |e.ENQ.'\|005'.#de|
|00001b50| 66 69 6e 65 09 41 43 4b | 09 27 5c 30 30 36 27 0a |fine.ACK|.'\006'.|
|00001b60| 23 64 65 66 69 6e 65 09 | 42 45 4c 09 27 5c 30 30 |#define.|BEL.'\00|
|00001b70| 37 27 0a 23 64 65 66 69 | 6e 65 09 42 53 09 27 5c |7'.#defi|ne.BS.'\|
|00001b80| 30 31 30 27 0a 23 64 65 | 66 69 6e 65 09 48 54 09 |010'.#de|fine.HT.|
|00001b90| 27 5c 30 31 31 27 0a 23 | 64 65 66 69 6e 65 09 4c |'\011'.#|define.L|
|00001ba0| 46 09 27 5c 30 31 32 27 | 0a 23 64 65 66 69 6e 65 |F.'\012'|.#define|
|00001bb0| 09 56 54 09 27 5c 30 31 | 33 27 0a 23 64 65 66 69 |.VT.'\01|3'.#defi|
|00001bc0| 6e 65 09 46 46 09 27 5c | 30 31 34 27 0a 23 64 65 |ne.FF.'\|014'.#de|
|00001bd0| 66 69 6e 65 09 43 52 09 | 27 5c 30 31 35 27 0a 23 |fine.CR.|'\015'.#|
|00001be0| 64 65 66 69 6e 65 09 53 | 4f 09 27 5c 30 31 36 27 |define.S|O.'\016'|
|00001bf0| 0a 23 64 65 66 69 6e 65 | 09 53 49 09 27 5c 30 31 |.#define|.SI.'\01|
|00001c00| 37 27 0a 23 64 65 66 69 | 6e 65 09 44 4c 45 09 27 |7'.#defi|ne.DLE.'|
|00001c10| 5c 30 32 30 27 0a 23 64 | 65 66 69 6e 65 09 44 43 |\020'.#d|efine.DC|
|00001c20| 31 09 27 5c 30 32 31 27 | 0a 23 64 65 66 69 6e 65 |1.'\021'|.#define|
|00001c30| 09 44 43 32 09 27 5c 30 | 32 32 27 0a 23 64 65 66 |.DC2.'\0|22'.#def|
|00001c40| 69 6e 65 09 44 43 33 09 | 27 5c 30 32 33 27 0a 23 |ine.DC3.|'\023'.#|
|00001c50| 64 65 66 69 6e 65 09 44 | 43 34 09 27 5c 30 32 34 |define.D|C4.'\024|
|00001c60| 27 0a 23 64 65 66 69 6e | 65 09 4e 41 4b 09 27 5c |'.#defin|e.NAK.'\|
|00001c70| 30 32 35 27 0a 23 64 65 | 66 69 6e 65 09 53 59 4e |025'.#de|fine.SYN|
|00001c80| 09 27 5c 30 32 36 27 0a | 23 64 65 66 69 6e 65 09 |.'\026'.|#define.|
|00001c90| 45 54 42 09 27 5c 30 32 | 37 27 0a 23 64 65 66 69 |ETB.'\02|7'.#defi|
|00001ca0| 6e 65 09 43 41 4e 09 27 | 5c 30 33 30 27 0a 23 64 |ne.CAN.'|\030'.#d|
|00001cb0| 65 66 69 6e 65 09 45 4d | 09 27 5c 30 33 31 27 0a |efine.EM|.'\031'.|
|00001cc0| 23 64 65 66 69 6e 65 09 | 53 55 42 09 27 5c 30 33 |#define.|SUB.'\03|
|00001cd0| 32 27 0a 23 64 65 66 69 | 6e 65 09 45 53 43 09 27 |2'.#defi|ne.ESC.'|
|00001ce0| 5c 30 33 33 27 0a 23 64 | 65 66 69 6e 65 09 46 53 |\033'.#d|efine.FS|
|00001cf0| 09 27 5c 30 33 34 27 0a | 23 64 65 66 69 6e 65 09 |.'\034'.|#define.|
|00001d00| 47 53 09 27 5c 30 33 35 | 27 0a 23 64 65 66 69 6e |GS.'\035|'.#defin|
|00001d10| 65 09 52 53 09 27 5c 30 | 33 36 27 0a 23 64 65 66 |e.RS.'\0|36'.#def|
|00001d20| 69 6e 65 09 55 53 09 27 | 5c 30 33 37 27 0a 23 64 |ine.US.'|\037'.#d|
|00001d30| 65 66 69 6e 65 09 53 50 | 09 27 5c 30 34 30 27 0a |efine.SP|.'\040'.|
|00001d40| 23 64 65 66 69 6e 65 09 | 44 45 4c 09 27 5c 31 37 |#define.|DEL.'\17|
|00001d50| 37 27 0a 23 64 65 66 69 | 6e 65 09 43 54 52 4c 5f |7'.#defi|ne.CTRL_|
|00001d60| 41 09 53 4f 48 0a 23 64 | 65 66 69 6e 65 09 43 54 |A.SOH.#d|efine.CT|
|00001d70| 52 4c 5f 42 09 53 54 58 | 0a 23 64 65 66 69 6e 65 |RL_B.STX|.#define|
|00001d80| 09 43 54 52 4c 5f 43 09 | 45 54 58 0a 23 64 65 66 |.CTRL_C.|ETX.#def|
|00001d90| 69 6e 65 09 43 54 52 4c | 5f 44 09 45 4f 54 0a 23 |ine.CTRL|_D.EOT.#|
|00001da0| 64 65 66 69 6e 65 09 43 | 54 52 4c 5f 45 09 45 4e |define.C|TRL_E.EN|
|00001db0| 51 0a 23 64 65 66 69 6e | 65 09 43 54 52 4c 5f 46 |Q.#defin|e.CTRL_F|
|00001dc0| 09 41 43 4b 0a 23 64 65 | 66 69 6e 65 09 43 54 52 |.ACK.#de|fine.CTR|
|00001dd0| 4c 5f 47 09 42 45 4c 0a | 23 64 65 66 69 6e 65 09 |L_G.BEL.|#define.|
|00001de0| 43 54 52 4c 5f 48 09 42 | 53 0a 23 64 65 66 69 6e |CTRL_H.B|S.#defin|
|00001df0| 65 09 43 54 52 4c 5f 49 | 09 48 54 0a 23 64 65 66 |e.CTRL_I|.HT.#def|
|00001e00| 69 6e 65 09 43 54 52 4c | 5f 4a 09 4c 46 0a 23 64 |ine.CTRL|_J.LF.#d|
|00001e10| 65 66 69 6e 65 09 43 54 | 52 4c 5f 4b 09 56 54 0a |efine.CT|RL_K.VT.|
|00001e20| 23 64 65 66 69 6e 65 09 | 43 54 52 4c 5f 4c 09 46 |#define.|CTRL_L.F|
|00001e30| 46 0a 23 64 65 66 69 6e | 65 09 43 54 52 4c 5f 4d |F.#defin|e.CTRL_M|
|00001e40| 09 43 52 0a 23 64 65 66 | 69 6e 65 09 43 54 52 4c |.CR.#def|ine.CTRL|
|00001e50| 5f 4e 09 53 4f 0a 23 64 | 65 66 69 6e 65 09 43 54 |_N.SO.#d|efine.CT|
|00001e60| 52 4c 5f 4f 09 53 49 0a | 23 64 65 66 69 6e 65 09 |RL_O.SI.|#define.|
|00001e70| 43 54 52 4c 5f 50 09 44 | 4c 45 0a 23 64 65 66 69 |CTRL_P.D|LE.#defi|
|00001e80| 6e 65 09 43 54 52 4c 5f | 51 09 44 43 31 0a 23 64 |ne.CTRL_|Q.DC1.#d|
|00001e90| 65 66 69 6e 65 09 43 54 | 52 4c 5f 52 09 44 43 32 |efine.CT|RL_R.DC2|
|00001ea0| 0a 23 64 65 66 69 6e 65 | 09 43 54 52 4c 5f 53 09 |.#define|.CTRL_S.|
|00001eb0| 44 43 33 0a 23 64 65 66 | 69 6e 65 09 43 54 52 4c |DC3.#def|ine.CTRL|
|00001ec0| 5f 54 09 44 43 34 0a 23 | 64 65 66 69 6e 65 09 43 |_T.DC4.#|define.C|
|00001ed0| 54 52 4c 5f 55 09 4e 41 | 4b 0a 23 64 65 66 69 6e |TRL_U.NA|K.#defin|
|00001ee0| 65 09 43 54 52 4c 5f 56 | 09 53 59 4e 0a 23 64 65 |e.CTRL_V|.SYN.#de|
|00001ef0| 66 69 6e 65 09 43 54 52 | 4c 5f 57 09 45 54 42 0a |fine.CTR|L_W.ETB.|
|00001f00| 23 64 65 66 69 6e 65 09 | 43 54 52 4c 5f 58 09 43 |#define.|CTRL_X.C|
|00001f10| 41 4e 0a 23 64 65 66 69 | 6e 65 09 43 54 52 4c 5f |AN.#defi|ne.CTRL_|
|00001f20| 59 09 45 4d 0a 23 64 65 | 66 69 6e 65 09 43 54 52 |Y.EM.#de|fine.CTR|
|00001f30| 4c 5f 5a 09 53 55 42 0a | 23 65 6e 64 69 66 0a 53 |L_Z.SUB.|#endif.S|
|00001f40| 48 41 52 5f 45 4f 46 0a | 66 69 0a 65 63 68 6f 20 |HAR_EOF.|fi.echo |
|00001f50| 73 68 61 72 3a 20 22 65 | 78 74 72 61 63 74 69 6e |shar: "e|xtractin|
|00001f60| 67 20 27 63 6f 6e 73 74 | 64 65 66 73 2e 68 27 22 |g 'const|defs.h'"|
|00001f70| 20 27 28 31 35 33 20 63 | 68 61 72 61 63 74 65 72 | '(153 c|haracter|
|00001f80| 73 29 27 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |s)'.if t|est -f '|
|00001f90| 63 6f 6e 73 74 64 65 66 | 73 2e 68 27 0a 74 68 65 |constdef|s.h'.the|
|00001fa0| 6e 0a 09 65 63 68 6f 20 | 73 68 61 72 3a 20 22 77 |n..echo |shar: "w|
|00001fb0| 69 6c 6c 20 6e 6f 74 20 | 6f 76 65 72 2d 77 72 69 |ill not |over-wri|
|00001fc0| 74 65 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |te exist|ing file|
|00001fd0| 20 27 63 6f 6e 73 74 64 | 65 66 73 2e 68 27 22 0a | 'constd|efs.h'".|
|00001fe0| 65 6c 73 65 0a 63 61 74 | 20 3c 3c 20 5c 53 48 41 |else.cat| << \SHA|
|00001ff0| 52 5f 45 4f 46 20 3e 20 | 27 63 6f 6e 73 74 64 65 |R_EOF > |'constde|
|00002000| 66 73 2e 68 27 0a 2f 2a | 0a 2a 2a 20 63 6f 6e 73 |fs.h'./*|.** cons|
|00002010| 74 64 65 66 73 2e 68 0a | 2a 2a 0a 2a 2a 20 53 74 |tdefs.h.|**.** St|
|00002020| 61 6e 64 61 72 64 20 6d | 61 63 72 6f 20 64 65 66 |andard m|acro def|
|00002030| 69 6e 69 74 69 6f 6e 73 | 20 66 6f 72 20 73 65 20 |initions| for se |
|00002040| 73 63 72 65 65 6e 20 65 | 64 69 74 6f 72 0a 2a 2f |screen e|ditor.*/|
|00002050| 0a 0a 23 64 65 66 69 6e | 65 09 45 4f 53 20 27 5c |..#defin|e.EOS '\|
|00002060| 30 27 0a 23 64 65 66 69 | 6e 65 09 45 52 52 20 28 |0'.#defi|ne.ERR (|
|00002070| 2d 33 29 0a 23 64 65 66 | 69 6e 65 09 4f 4b 20 28 |-3).#def|ine.OK (|
|00002080| 2d 32 29 0a 23 64 65 66 | 69 6e 65 09 4e 4f 20 30 |-2).#def|ine.NO 0|
|00002090| 0a 23 64 65 66 69 6e 65 | 09 59 45 53 20 31 0a 53 |.#define|.YES 1.S|
|000020a0| 48 41 52 5f 45 4f 46 0a | 66 69 0a 65 63 68 6f 20 |HAR_EOF.|fi.echo |
|000020b0| 73 68 61 72 3a 20 22 65 | 78 74 72 61 63 74 69 6e |shar: "e|xtractin|
|000020c0| 67 20 27 64 65 62 75 67 | 2e 68 27 22 20 27 28 31 |g 'debug|.h'" '(1|
|000020d0| 31 39 20 63 68 61 72 61 | 63 74 65 72 73 29 27 0a |19 chara|cters)'.|
|000020e0| 69 66 20 74 65 73 74 20 | 2d 66 20 27 64 65 62 75 |if test |-f 'debu|
|000020f0| 67 2e 68 27 0a 74 68 65 | 6e 0a 09 65 63 68 6f 20 |g.h'.the|n..echo |
|00002100| 73 68 61 72 3a 20 22 77 | 69 6c 6c 20 6e 6f 74 20 |shar: "w|ill not |
|00002110| 6f 76 65 72 2d 77 72 69 | 74 65 20 65 78 69 73 74 |over-wri|te exist|
|00002120| 69 6e 67 20 66 69 6c 65 | 20 27 64 65 62 75 67 2e |ing file| 'debug.|
|00002130| 68 27 22 0a 65 6c 73 65 | 0a 63 61 74 20 3c 3c 20 |h'".else|.cat << |
|00002140| 5c 53 48 41 52 5f 45 4f | 46 20 3e 20 27 64 65 62 |\SHAR_EO|F > 'deb|
|00002150| 75 67 2e 68 27 0a 2f 2a | 0a 2a 2a 20 64 65 62 75 |ug.h'./*|.** debu|
|00002160| 67 2e 68 0a 2a 2a 0a 2a | 2a 20 70 75 74 20 64 65 |g.h.**.*|* put de|
|00002170| 62 75 67 67 69 6e 67 20 | 63 6f 64 65 20 69 6e 74 |bugging |code int|
|00002180| 6f 20 70 72 6f 67 72 61 | 6d 73 0a 2a 2f 0a 0a 23 |o progra|ms.*/..#|
|00002190| 69 66 64 65 66 20 44 45 | 42 55 47 0a 23 64 65 66 |ifdef DE|BUG.#def|
|000021a0| 69 6e 65 20 64 65 62 75 | 67 28 78 29 09 78 0a 23 |ine debu|g(x).x.#|
|000021b0| 65 6c 73 65 0a 23 64 65 | 66 69 6e 65 20 64 65 62 |else.#de|fine deb|
|000021c0| 75 67 28 78 29 0a 23 65 | 6e 64 69 66 0a 53 48 41 |ug(x).#e|ndif.SHA|
|000021d0| 52 5f 45 4f 46 0a 66 69 | 0a 65 63 68 6f 20 73 68 |R_EOF.fi|.echo sh|
|000021e0| 61 72 3a 20 22 65 78 74 | 72 61 63 74 69 6e 67 20 |ar: "ext|racting |
|000021f0| 27 65 78 74 65 72 6e 2e | 68 27 22 20 27 28 34 39 |'extern.|h'" '(49|
|00002200| 31 38 20 63 68 61 72 61 | 63 74 65 72 73 29 27 0a |18 chara|cters)'.|
|00002210| 69 66 20 74 65 73 74 20 | 2d 66 20 27 65 78 74 65 |if test |-f 'exte|
|00002220| 72 6e 2e 68 27 0a 74 68 | 65 6e 0a 09 65 63 68 6f |rn.h'.th|en..echo|
|00002230| 20 73 68 61 72 3a 20 22 | 77 69 6c 6c 20 6e 6f 74 | shar: "|will not|
|00002240| 20 6f 76 65 72 2d 77 72 | 69 74 65 20 65 78 69 73 | over-wr|ite exis|
|00002250| 74 69 6e 67 20 66 69 6c | 65 20 27 65 78 74 65 72 |ting fil|e 'exter|
|00002260| 6e 2e 68 27 22 0a 65 6c | 73 65 0a 63 61 74 20 3c |n.h'".el|se.cat <|
|00002270| 3c 20 5c 53 48 41 52 5f | 45 4f 46 20 3e 20 27 65 |< \SHAR_|EOF > 'e|
|00002280| 78 74 65 72 6e 2e 68 27 | 0a 2f 2a 0a 2a 2a 20 65 |xtern.h'|./*.** e|
|00002290| 78 74 65 72 6e 2e 68 0a | 2a 2a 0a 2a 2a 20 65 78 |xtern.h.|**.** ex|
|000022a0| 74 65 72 6e 61 6c 20 64 | 61 74 61 20 64 65 66 69 |ternal d|ata defi|
|000022b0| 6e 69 74 69 6f 6e 73 0a | 2a 2a 20 66 6f 72 20 74 |nitions.|** for t|
|000022c0| 68 65 20 73 63 72 65 65 | 6e 20 65 64 69 74 6f 72 |he scree|n editor|
|000022d0| 0a 2a 2f 0a 0a 2f 2a 20 | 43 6f 6e 63 65 72 6e 69 |.*/../* |Concerni|
|000022e0| 6e 67 20 6c 69 6e 65 20 | 6e 75 6d 62 65 72 73 3a |ng line |numbers:|
|000022f0| 20 2a 2f 0a 65 78 74 65 | 72 6e 20 69 6e 74 20 4c | */.exte|rn int L|
|00002300| 69 6e 65 31 3b 09 09 2f | 2a 20 66 69 72 73 74 20 |ine1;../|* first |
|00002310| 6c 69 6e 65 20 6e 75 6d | 62 65 72 20 6f 6e 20 63 |line num|ber on c|
|00002320| 6f 6d 6d 61 6e 64 20 2a | 2f 0a 65 78 74 65 72 6e |ommand *|/.extern|
|00002330| 20 69 6e 74 20 4c 69 6e | 65 32 3b 09 09 2f 2a 20 | int Lin|e2;../* |
|00002340| 73 65 63 6f 6e 64 20 6c | 69 6e 65 20 6e 75 6d 62 |second l|ine numb|
|00002350| 65 72 20 6f 6e 20 63 6f | 6d 6d 61 6e 64 20 2a 2f |er on co|mmand */|
|00002360| 0a 65 78 74 65 72 6e 20 | 69 6e 74 20 4e 6c 69 6e |.extern |int Nlin|
|00002370| 65 73 3b 09 09 2f 2a 20 | 6e 75 6d 62 65 72 20 6f |es;../* |number o|
|00002380| 66 20 6c 69 6e 65 20 6e | 75 6d 62 65 72 73 20 73 |f line n|umbers s|
|00002390| 70 65 63 69 66 69 65 64 | 20 2a 2f 0a 65 78 74 65 |pecified| */.exte|
|000023a0| 72 6e 20 69 6e 74 20 43 | 75 72 6c 6e 3b 09 09 2f |rn int C|urln;../|
|000023b0| 2a 20 63 75 72 72 65 6e | 74 20 6c 69 6e 65 3b 20 |* curren|t line; |
|000023c0| 76 61 6c 75 65 20 6f 66 | 20 64 6f 74 20 2a 2f 0a |value of| dot */.|
|000023d0| 65 78 74 65 72 6e 20 69 | 6e 74 20 4c 61 73 74 6c |extern i|nt Lastl|
|000023e0| 6e 3b 09 09 2f 2a 20 6c | 61 73 74 20 6c 69 6e 65 |n;../* l|ast line|
|000023f0| 3b 20 76 61 6c 75 65 20 | 6f 66 20 64 6f 6c 6c 61 |; value |of dolla|
|00002400| 72 20 2a 2f 0a 0a 0a 2f | 2a 20 43 6f 6e 63 65 72 |r */.../|* Concer|
|00002410| 6e 69 6e 67 20 70 61 74 | 74 65 72 6e 73 3a 20 2a |ning pat|terns: *|
|00002420| 2f 0a 65 78 74 65 72 6e | 20 63 68 61 72 20 50 61 |/.extern| char Pa|
|00002430| 74 5b 4d 41 58 50 41 54 | 5d 3b 09 2f 2a 20 73 61 |t[MAXPAT|];./* sa|
|00002440| 76 65 64 20 70 61 74 74 | 65 72 6e 20 2a 2f 0a 0a |ved patt|ern */..|
|00002450| 0a 2f 2a 20 43 6f 6e 63 | 65 72 6e 69 6e 67 20 74 |./* Conc|erning t|
|00002460| 68 65 20 74 65 78 74 20 | 6f 66 20 6c 69 6e 65 73 |he text |of lines|
|00002470| 3a 20 2a 2f 0a 65 78 74 | 65 72 6e 20 63 68 61 72 |: */.ext|ern char|
|00002480| 20 54 78 74 5b 4d 41 58 | 4c 49 4e 45 5d 3b 09 2f | Txt[MAX|LINE];./|
|00002490| 2a 20 74 65 78 74 20 6f | 66 20 63 75 72 72 65 6e |* text o|f curren|
|000024a0| 74 20 6c 69 6e 65 20 2a | 2f 0a 0a 0a 2f 2a 20 43 |t line *|/.../* C|
|000024b0| 6f 6e 63 65 72 6e 69 6e | 67 20 66 69 6c 65 20 6e |oncernin|g file n|
|000024c0| 61 6d 65 73 3a 20 2a 2f | 0a 65 78 74 65 72 6e 20 |ames: */|.extern |
|000024d0| 63 68 61 72 20 53 61 76 | 66 69 6c 5b 4d 41 58 4c |char Sav|fil[MAXL|
|000024e0| 49 4e 45 5d 3b 09 2f 2a | 20 72 65 6d 65 6d 62 65 |INE];./*| remembe|
|000024f0| 72 65 64 20 66 69 6c 65 | 20 6e 61 6d 65 20 2a 2f |red file| name */|
|00002500| 0a 0a 0a 2f 2a 20 43 6f | 6e 63 65 72 6e 69 6e 67 |.../* Co|ncerning|
|00002510| 20 6c 69 6e 65 20 64 65 | 73 63 72 69 70 74 6f 72 | line de|scriptor|
|00002520| 73 3a 20 2a 2f 0a 65 78 | 74 65 72 6e 20 4c 49 4e |s: */.ex|tern LIN|
|00002530| 45 44 45 53 43 20 42 75 | 66 5b 4d 41 58 42 55 46 |EDESC Bu|f[MAXBUF|
|00002540| 5d 3b 0a 23 69 66 64 65 | 66 20 4f 4c 44 5f 53 43 |];.#ifde|f OLD_SC|
|00002550| 52 41 54 43 48 0a 65 78 | 74 65 72 6e 20 4c 49 4e |RATCH.ex|tern LIN|
|00002560| 45 44 45 53 43 20 2a 4c | 61 73 74 62 66 3b 09 2f |EDESC *L|astbf;./|
|00002570| 2a 20 6c 61 73 74 20 70 | 6f 69 6e 74 65 72 20 75 |* last p|ointer u|
|00002580| 73 65 64 20 69 6e 20 42 | 75 66 20 2a 2f 0a 65 78 |sed in B|uf */.ex|
|00002590| 74 65 72 6e 20 4c 49 4e | 45 44 45 53 43 20 2a 46 |tern LIN|EDESC *F|
|000025a0| 72 65 65 3b 09 09 2f 2a | 20 68 65 61 64 20 6f 66 |ree;../*| head of|
|000025b0| 20 66 72 65 65 20 6c 69 | 73 74 20 2a 2f 0a 23 65 | free li|st */.#e|
|000025c0| 6e 64 69 66 0a 65 78 74 | 65 72 6e 20 4c 49 4e 45 |ndif.ext|ern LINE|
|000025d0| 44 45 53 43 20 2a 4c 69 | 6e 65 30 3b 09 09 2f 2a |DESC *Li|ne0;../*|
|000025e0| 20 68 65 61 64 20 6f 66 | 20 6c 69 73 74 20 6f 66 | head of| list of|
|000025f0| 20 6c 69 6e 65 20 64 65 | 73 63 72 69 70 74 6f 72 | line de|scriptor|
|00002600| 73 20 2a 2f 0a 0a 0a 2f | 2a 20 43 6f 6e 63 65 72 |s */.../|* Concer|
|00002610| 6e 69 6e 67 20 74 68 65 | 20 27 75 6e 64 6f 27 20 |ning the| 'undo' |
|00002620| 63 6f 6d 6d 61 6e 64 3a | 20 2a 2f 0a 65 78 74 65 |command:| */.exte|
|00002630| 72 6e 20 4c 49 4e 45 44 | 45 53 43 20 2a 4c 69 6d |rn LINED|ESC *Lim|
|00002640| 62 6f 3b 09 09 2f 2a 20 | 68 65 61 64 20 6f 66 20 |bo;../* |head of |
|00002650| 6c 69 6d 62 6f 20 6c 69 | 73 74 20 66 6f 72 20 75 |limbo li|st for u|
|00002660| 6e 64 6f 20 2a 2f 0a 65 | 78 74 65 72 6e 20 69 6e |ndo */.e|xtern in|
|00002670| 74 20 4c 69 6d 63 6e 74 | 3b 09 09 2f 2a 20 6e 75 |t Limcnt|;../* nu|
|00002680| 6d 62 65 72 20 6f 66 20 | 6c 69 6e 65 73 20 69 6e |mber of |lines in|
|00002690| 20 6c 69 6d 62 6f 20 6c | 69 73 74 20 2a 2f 0a 0a | limbo l|ist */..|
|000026a0| 0a 2f 2a 20 43 6f 6e 63 | 65 72 6e 69 6e 67 20 74 |./* Conc|erning t|
|000026b0| 68 65 20 73 63 72 61 74 | 63 68 20 66 69 6c 65 3a |he scrat|ch file:|
|000026c0| 20 2a 2f 0a 65 78 74 65 | 72 6e 20 66 69 6c 65 64 | */.exte|rn filed|
|000026d0| 65 73 20 53 63 72 3b 09 | 09 2f 2a 20 73 63 72 61 |es Scr;.|./* scra|
|000026e0| 74 63 68 20 66 69 6c 65 | 20 64 65 73 63 72 69 70 |tch file| descrip|
|000026f0| 74 6f 72 20 2a 2f 0a 65 | 78 74 65 72 6e 20 75 6e |tor */.e|xtern un|
|00002700| 73 69 67 6e 65 64 20 53 | 63 72 65 6e 64 3b 09 09 |signed S|crend;..|
|00002710| 2f 2a 20 65 6e 64 20 6f | 66 20 69 6e 66 6f 20 6f |/* end o|f info o|
|00002720| 6e 20 73 63 72 61 74 63 | 68 20 66 69 6c 65 20 2a |n scratc|h file *|
|00002730| 2f 0a 65 78 74 65 72 6e | 20 63 68 61 72 20 53 63 |/.extern| char Sc|
|00002740| 72 6e 61 6d 65 5b 4d 41 | 58 4c 49 4e 45 5d 3b 09 |rname[MA|XLINE];.|
|00002750| 2f 2a 20 6e 61 6d 65 20 | 6f 66 20 73 63 72 61 74 |/* name |of scrat|
|00002760| 63 68 20 66 69 6c 65 20 | 2a 2f 0a 65 78 74 65 72 |ch file |*/.exter|
|00002770| 6e 20 69 6e 74 20 4c 6f | 73 74 5f 6c 69 6e 65 73 |n int Lo|st_lines|
|00002780| 3b 09 09 2f 2a 20 6e 75 | 6d 62 65 72 20 6f 66 20 |;../* nu|mber of |
|00002790| 67 61 72 62 61 67 65 20 | 6c 69 6e 65 73 20 69 6e |garbage |lines in|
|000027a0| 20 73 63 72 61 74 63 68 | 20 66 69 6c 65 20 2a 2f | scratch| file */|
|000027b0| 0a 0a 0a 2f 2a 20 43 6f | 6e 63 65 72 6e 69 6e 67 |.../* Co|ncerning|
|000027c0| 20 6d 69 73 63 65 6c 6c | 61 6e 65 6f 75 73 20 76 | miscell|aneous v|
|000027d0| 61 72 69 61 62 6c 65 73 | 20 2a 2f 0a 65 78 74 65 |ariables| */.exte|
|000027e0| 72 6e 20 69 6e 74 20 42 | 75 66 66 65 72 5f 63 68 |rn int B|uffer_ch|
|000027f0| 61 6e 67 65 64 3b 09 2f | 2a 20 59 45 53 20 69 66 |anged;./|* YES if|
|00002800| 20 62 75 66 66 65 72 20 | 63 68 61 6e 67 65 64 20 | buffer |changed |
|00002810| 73 69 6e 63 65 20 6c 61 | 73 74 20 77 72 69 74 65 |since la|st write|
|00002820| 20 2a 2f 0a 65 78 74 65 | 72 6e 20 69 6e 74 20 45 | */.exte|rn int E|
|00002830| 72 72 63 6f 64 65 3b 09 | 09 2f 2a 20 63 61 75 73 |rrcode;.|./* caus|
|00002840| 65 20 6f 66 20 6d 6f 73 | 74 20 72 65 63 65 6e 74 |e of mos|t recent|
|00002850| 20 65 72 72 6f 72 20 2a | 2f 0a 65 78 74 65 72 6e | error *|/.extern|
|00002860| 20 69 6e 74 20 53 61 76 | 65 72 72 63 6f 64 65 3b | int Sav|errcode;|
|00002870| 09 09 2f 2a 20 63 61 75 | 73 65 20 6f 66 20 70 72 |../* cau|se of pr|
|00002880| 65 76 69 6f 75 73 20 65 | 72 72 6f 72 20 2a 2f 0a |evious e|rror */.|
|00002890| 65 78 74 65 72 6e 20 69 | 6e 74 20 50 72 6f 62 61 |extern i|nt Proba|
|000028a0| 74 69 6f 6e 3b 09 09 2f | 2a 20 59 45 53 20 69 66 |tion;../|* YES if|
|000028b0| 20 75 6e 73 61 76 65 64 | 20 62 75 66 66 65 72 20 | unsaved| buffer |
|000028c0| 63 61 6e 20 62 65 20 64 | 65 73 74 72 6f 79 65 64 |can be d|estroyed|
|000028d0| 20 2a 2f 0a 65 78 74 65 | 72 6e 20 69 6e 74 20 41 | */.exte|rn int A|
|000028e0| 72 67 6e 6f 3b 09 09 2f | 2a 20 63 6f 6d 6d 61 6e |rgno;../|* comman|
|000028f0| 64 20 6c 69 6e 65 20 61 | 72 67 75 6d 65 6e 74 20 |d line a|rgument |
|00002900| 70 6f 69 6e 74 65 72 20 | 2a 2f 0a 65 78 74 65 72 |pointer |*/.exter|
|00002910| 6e 20 63 68 61 72 20 4c | 61 73 74 5f 63 68 61 72 |n char L|ast_char|
|00002920| 5f 73 63 61 6e 6e 65 64 | 3b 09 2f 2a 20 6c 61 73 |_scanned|;./* las|
|00002930| 74 20 63 68 61 72 20 73 | 63 61 6e 6e 65 64 20 77 |t char s|canned w|
|00002940| 69 74 68 20 63 74 6c 2d | 73 20 6f 72 20 2d 6c 20 |ith ctl-|s or -l |
|00002950| 2a 2f 0a 23 69 66 64 65 | 66 20 48 41 52 44 5f 54 |*/.#ifde|f HARD_T|
|00002960| 45 52 4d 53 0a 65 78 74 | 65 72 6e 20 69 6e 74 20 |ERMS.ext|ern int |
|00002970| 54 73 70 65 65 64 3b 09 | 09 2f 2a 20 74 65 72 6d |Tspeed;.|./* term|
|00002980| 69 6e 61 6c 20 73 70 65 | 65 64 20 69 6e 20 63 68 |inal spe|ed in ch|
|00002990| 61 72 61 63 74 65 72 73 | 2f 73 65 63 6f 6e 64 20 |aracters|/second |
|000029a0| 2a 2f 0a 23 65 6e 64 69 | 66 0a 65 78 74 65 72 6e |*/.#endi|f.extern|
|000029b0| 20 63 68 61 72 20 50 65 | 65 6b 63 3b 09 09 2f 2a | char Pe|ekc;../*|
|000029c0| 20 70 75 73 68 20 61 20 | 53 4b 49 50 5f 52 49 47 | push a |SKIP_RIG|
|000029d0| 48 54 20 69 66 20 61 64 | 64 69 6e 67 20 64 65 6c |HT if ad|ding del|
|000029e0| 69 6d 69 74 65 72 73 20 | 2a 2f 0a 23 69 66 64 65 |imiters |*/.#ifde|
|000029f0| 66 20 42 53 44 34 5f 32 | 0a 65 78 74 65 72 6e 20 |f BSD4_2|.extern |
|00002a00| 69 6e 74 20 52 65 61 64 | 69 6e 67 3b 09 09 2f 2a |int Read|ing;../*|
|00002a10| 20 61 72 65 20 77 65 20 | 64 6f 69 6e 67 20 74 65 | are we |doing te|
|00002a20| 72 6d 69 6e 61 6c 20 69 | 6e 70 75 74 3f 20 2a 2f |rminal i|nput? */|
|00002a30| 0a 23 65 6e 64 69 66 0a | 0a 0a 2f 2a 20 43 6f 6e |.#endif.|../* Con|
|00002a40| 63 65 72 6e 69 6e 67 20 | 6f 70 74 69 6f 6e 73 3a |cerning |options:|
|00002a50| 20 2a 2f 0a 65 78 74 65 | 72 6e 20 69 6e 74 20 54 | */.exte|rn int T|
|00002a60| 61 62 73 74 6f 70 73 5b | 4d 41 58 4c 49 4e 45 5d |abstops[|MAXLINE]|
|00002a70| 3b 09 2f 2a 20 61 72 72 | 61 79 20 6f 66 20 74 61 |;./* arr|ay of ta|
|00002a80| 62 20 73 74 6f 70 73 20 | 2a 2f 0a 65 78 74 65 72 |b stops |*/.exter|
|00002a90| 6e 20 63 68 61 72 20 55 | 6e 70 72 69 6e 74 61 62 |n char U|nprintab|
|00002aa0| 6c 65 3b 09 2f 2a 20 63 | 68 61 72 20 74 6f 20 70 |le;./* c|har to p|
|00002ab0| 72 69 6e 74 20 66 6f 72 | 20 75 6e 70 72 69 6e 74 |rint for| unprint|
|00002ac0| 61 62 6c 65 20 63 68 61 | 72 73 20 2a 2f 0a 65 78 |able cha|rs */.ex|
|00002ad0| 74 65 72 6e 20 69 6e 74 | 20 41 62 73 6e 6f 73 3b |tern int| Absnos;|
|00002ae0| 09 09 2f 2a 20 75 73 65 | 20 61 62 73 6f 6c 75 74 |../* use| absolut|
|00002af0| 65 20 6e 75 6d 62 65 72 | 73 20 69 6e 20 6d 61 72 |e number|s in mar|
|00002b00| 67 69 6e 20 2a 2f 0a 65 | 78 74 65 72 6e 20 69 6e |gin */.e|xtern in|
|00002b10| 74 20 4e 63 68 6f 69 73 | 65 3b 09 09 2f 2a 20 63 |t Nchois|e;../* c|
|00002b20| 68 6f 69 63 65 20 6f 66 | 20 6c 69 6e 65 20 6e 75 |hoice of| line nu|
|00002b30| 6d 62 65 72 20 66 6f 72 | 20 63 6f 6e 74 2e 20 64 |mber for| cont. d|
|00002b40| 69 73 70 6c 61 79 20 2a | 2f 0a 65 78 74 65 72 6e |isplay *|/.extern|
|00002b50| 20 69 6e 74 20 4f 76 65 | 72 6c 61 79 5f 63 6f 6c | int Ove|rlay_col|
|00002b60| 3b 09 09 2f 2a 20 69 6e | 69 74 69 61 6c 20 63 75 |;../* in|itial cu|
|00002b70| 72 73 6f 72 20 63 6f 6c | 75 6d 6e 20 66 6f 72 20 |rsor col|umn for |
|00002b80| 27 76 27 20 63 6f 6d 6d | 61 6e 64 20 2a 2f 0a 65 |'v' comm|and */.e|
|00002b90| 78 74 65 72 6e 20 69 6e | 74 20 57 61 72 6e 63 6f |xtern in|t Warnco|
|00002ba0| 6c 3b 09 09 2f 2a 20 77 | 68 65 72 65 20 74 6f 20 |l;../* w|here to |
|00002bb0| 74 75 72 6e 20 6f 6e 20 | 63 6f 6c 75 6d 6e 20 77 |turn on |column w|
|00002bc0| 61 72 6e 69 6e 67 20 2a | 2f 0a 65 78 74 65 72 6e |arning *|/.extern|
|00002bd0| 20 69 6e 74 20 46 69 72 | 73 74 63 6f 6c 3b 09 09 | int Fir|stcol;..|
|00002be0| 2f 2a 20 6c 65 66 74 6d | 6f 73 74 20 63 6f 6c 75 |/* leftm|ost colu|
|00002bf0| 6d 6e 20 74 6f 20 64 69 | 73 70 6c 61 79 20 2a 2f |mn to di|splay */|
|00002c00| 0a 65 78 74 65 72 6e 20 | 69 6e 74 20 49 6e 64 65 |.extern |int Inde|
|00002c10| 6e 74 3b 09 09 2f 2a 20 | 69 6e 64 65 6e 74 20 63 |nt;../* |indent c|
|00002c20| 6f 6c 3b 20 30 3d 73 61 | 6d 65 20 61 73 20 70 72 |ol; 0=sa|me as pr|
|00002c30| 65 76 69 6f 75 73 20 6c | 69 6e 65 20 2a 2f 0a 65 |evious l|ine */.e|
|00002c40| 78 74 65 72 6e 20 69 6e | 74 20 4e 6f 74 69 66 79 |xtern in|t Notify|
|00002c50| 3b 09 09 2f 2a 20 6e 6f | 74 69 66 79 20 75 73 65 |;../* no|tify use|
|00002c60| 72 20 69 66 20 68 65 20 | 68 61 73 20 6d 61 69 6c |r if he |has mail|
|00002c70| 20 69 6e 20 6d 61 69 6c | 20 66 69 6c 65 20 2a 2f | in mail| file */|
|00002c80| 0a 65 78 74 65 72 6e 20 | 69 6e 74 20 47 6c 6f 62 |.extern |int Glob|
|00002c90| 61 6c 73 3b 09 09 2f 2a | 20 73 75 62 73 74 69 74 |als;../*| substit|
|00002ca0| 75 74 65 73 20 69 6e 20 | 61 20 67 6c 6f 62 61 6c |utes in |a global|
|00002cb0| 20 64 6f 6e 27 74 20 66 | 61 69 6c 20 2a 2f 0a 65 | don't f|ail */.e|
|00002cc0| 78 74 65 72 6e 20 69 6e | 74 20 4e 6f 5f 68 61 72 |xtern in|t No_har|
|00002cd0| 64 77 61 72 65 3b 09 09 | 2f 2a 20 6e 65 76 65 72 |dware;..|/* never|
|00002ce0| 20 75 73 65 20 68 61 72 | 64 77 61 72 65 20 69 6e | use har|dware in|
|00002cf0| 73 65 72 74 2f 64 65 6c | 65 74 65 20 2a 2f 0a 0a |sert/del|ete */..|
|00002d00| 0a 23 69 66 64 65 66 20 | 48 41 52 44 5f 54 45 52 |.#ifdef |HARD_TER|
|00002d10| 4d 53 0a 2f 2a 20 43 6f | 6e 63 65 72 6e 69 6e 67 |MS./* Co|ncerning|
|00002d20| 20 74 68 65 20 74 65 72 | 6d 69 6e 61 6c 20 74 79 | the ter|minal ty|
|00002d30| 70 65 20 2a 2f 0a 65 78 | 74 65 72 6e 20 69 6e 74 |pe */.ex|tern int|
|00002d40| 20 54 65 72 6d 5f 74 79 | 70 65 3b 20 20 20 20 20 | Term_ty|pe; |
|00002d50| 20 20 20 20 20 2f 2a 20 | 74 65 72 6d 69 6e 61 6c | /* |terminal|
|00002d60| 20 74 79 70 65 20 2a 2f | 0a 23 65 6e 64 69 66 0a | type */|.#endif.|
|00002d70| 0a 0a 2f 2a 20 43 6f 6e | 63 65 72 6e 69 6e 67 20 |../* Con|cerning |
|00002d80| 74 68 65 20 73 63 72 65 | 65 6e 20 66 6f 72 6d 61 |the scre|en forma|
|00002d90| 74 3a 20 2a 2f 0a 65 78 | 74 65 72 6e 20 63 68 61 |t: */.ex|tern cha|
|00002da0| 72 20 53 63 72 65 65 6e | 5f 69 6d 61 67 65 5b 4d |r Screen|_image[M|
|00002db0| 41 58 52 4f 57 53 5d 5b | 4d 41 58 43 4f 4c 53 5d |AXROWS][|MAXCOLS]|
|00002dc0| 3b 0a 65 78 74 65 72 6e | 20 63 68 61 72 20 4d 73 |;.extern| char Ms|
|00002dd0| 67 61 6c 6c 6f 63 5b 4d | 41 58 43 4f 4c 53 5d 3b |galloc[M|AXCOLS];|
|00002de0| 09 2f 2a 20 63 6f 6c 75 | 6d 6e 20 61 6c 6c 6f 63 |./* colu|mn alloc|
|00002df0| 61 74 69 6f 6e 20 6f 66 | 20 73 74 61 74 75 73 20 |ation of| status |
|00002e00| 6c 69 6e 65 20 2a 2f 0a | 65 78 74 65 72 6e 20 69 |line */.|extern i|
|00002e10| 6e 74 20 4e 72 6f 77 73 | 3b 09 09 2f 2a 20 6e 75 |nt Nrows|;../* nu|
|00002e20| 6d 62 65 72 20 6f 66 20 | 72 6f 77 73 20 6f 6e 20 |mber of |rows on |
|00002e30| 73 63 72 65 65 6e 20 2a | 2f 0a 65 78 74 65 72 6e |screen *|/.extern|
|00002e40| 20 69 6e 74 20 4e 63 6f | 6c 73 3b 09 09 2f 2a 20 | int Nco|ls;../* |
|00002e50| 6e 75 6d 62 65 72 20 6f | 66 20 63 6f 6c 75 6d 6e |number o|f column|
|00002e60| 73 20 6f 6e 20 73 63 72 | 65 65 6e 20 2a 2f 0a 65 |s on scr|een */.e|
|00002e70| 78 74 65 72 6e 20 69 6e | 74 20 43 75 72 72 6f 77 |xtern in|t Currow|
|00002e80| 3b 09 09 2f 2a 20 76 65 | 72 74 69 63 61 6c 20 63 |;../* ve|rtical c|
|00002e90| 75 72 73 6f 72 20 63 6f | 6f 72 64 69 6e 61 74 65 |ursor co|ordinate|
|00002ea0| 20 2a 2f 0a 65 78 74 65 | 72 6e 20 69 6e 74 20 43 | */.exte|rn int C|
|00002eb0| 75 72 63 6f 6c 3b 09 09 | 2f 2a 20 68 6f 72 69 7a |urcol;..|/* horiz|
|00002ec0| 6f 6e 74 61 6c 20 63 75 | 72 73 6f 72 20 63 6f 6f |ontal cu|rsor coo|
|00002ed0| 72 64 69 6e 61 74 65 20 | 2a 2f 0a 65 78 74 65 72 |rdinate |*/.exter|
|00002ee0| 6e 20 69 6e 74 20 54 6f | 70 72 6f 77 3b 09 09 2f |n int To|prow;../|
|00002ef0| 2a 20 74 6f 70 20 72 6f | 77 20 6f 66 20 77 69 6e |* top ro|w of win|
|00002f00| 64 6f 77 20 66 69 65 6c | 64 20 6f 6e 20 73 63 72 |dow fiel|d on scr|
|00002f10| 65 65 6e 20 2a 2f 0a 65 | 78 74 65 72 6e 20 69 6e |een */.e|xtern in|
|00002f20| 74 20 42 6f 74 72 6f 77 | 3b 09 09 2f 2a 20 62 6f |t Botrow|;../* bo|
|00002f30| 74 74 6f 6d 20 72 6f 77 | 20 6f 66 20 77 69 6e 64 |ttom row| of wind|
|00002f40| 6f 77 20 66 69 65 6c 64 | 20 6f 6e 20 73 63 72 65 |ow field| on scre|
|00002f50| 65 6e 20 2a 2f 0a 65 78 | 74 65 72 6e 20 69 6e 74 |en */.ex|tern int|
|00002f60| 20 43 6d 64 72 6f 77 3b | 09 09 2f 2a 20 72 6f 77 | Cmdrow;|../* row|
|00002f70| 20 6e 75 6d 62 65 72 20 | 6f 66 20 63 6f 6d 6d 61 | number |of comma|
|00002f80| 6e 64 20 6c 69 6e 65 20 | 2a 2f 0a 65 78 74 65 72 |nd line |*/.exter|
|00002f90| 6e 20 69 6e 74 20 54 6f | 70 6c 6e 3b 09 09 2f 2a |n int To|pln;../*|
|00002fa0| 20 6c 69 6e 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 | line nu|mber of |
|00002fb0| 66 69 72 73 74 20 6c 69 | 6e 65 20 6f 6e 20 73 63 |first li|ne on sc|
|00002fc0| 72 65 65 6e 20 2a 2f 0a | 65 78 74 65 72 6e 20 69 |reen */.|extern i|
|00002fd0| 6e 74 20 49 6e 73 65 72 | 74 5f 6d 6f 64 65 3b 09 |nt Inser|t_mode;.|
|00002fe0| 09 2f 2a 20 66 6c 61 67 | 20 74 6f 20 73 70 65 63 |./* flag| to spec|
|00002ff0| 69 66 79 20 63 68 61 72 | 61 63 74 65 72 20 69 6e |ify char|acter in|
|00003000| 73 65 72 74 69 6f 6e 20 | 2a 2f 0a 65 78 74 65 72 |sertion |*/.exter|
|00003010| 6e 20 69 6e 74 20 49 6e | 76 65 72 74 5f 63 61 73 |n int In|vert_cas|
|00003020| 65 3b 09 09 2f 2a 20 66 | 6c 61 67 20 74 6f 20 73 |e;../* f|lag to s|
|00003030| 70 65 63 69 66 79 20 63 | 61 73 65 20 6d 61 70 70 |pecify c|ase mapp|
|00003040| 69 6e 67 20 6f 6e 20 69 | 6e 70 75 74 20 2a 2f 0a |ing on i|nput */.|
|00003050| 65 78 74 65 72 6e 20 69 | 6e 74 20 46 69 72 73 74 |extern i|nt First|
|00003060| 5f 61 66 66 65 63 74 65 | 64 3b 09 2f 2a 20 6e 75 |_affecte|d;./* nu|
|00003070| 6d 62 65 72 20 6f 66 20 | 66 69 72 73 74 20 6c 69 |mber of |first li|
|00003080| 6e 65 20 61 66 66 65 63 | 74 65 64 20 62 79 20 63 |ne affec|ted by c|
|00003090| 6d 64 20 2a 2f 0a 65 78 | 74 65 72 6e 20 69 6e 74 |md */.ex|tern int|
|000030a0| 20 52 65 6c 5f 61 3b 09 | 09 2f 2a 20 63 68 61 72 | Rel_a;.|./* char|
|000030b0| 20 74 6f 20 75 73 65 20 | 66 6f 72 20 66 69 72 73 | to use |for firs|
|000030c0| 74 20 61 6c 70 68 61 20 | 6c 69 6e 65 20 6e 75 6d |t alpha |line num|
|000030d0| 62 65 72 20 2a 2f 0a 65 | 78 74 65 72 6e 20 69 6e |ber */.e|xtern in|
|000030e0| 74 20 52 65 6c 5f 7a 3b | 09 09 2f 2a 20 63 68 61 |t Rel_z;|../* cha|
|000030f0| 72 20 74 6f 20 75 73 65 | 20 66 6f 72 20 6c 61 73 |r to use| for las|
|00003100| 74 20 61 6c 70 68 61 20 | 6c 69 6e 65 20 6e 75 6d |t alpha |line num|
|00003110| 62 65 72 20 2a 2f 0a 65 | 78 74 65 72 6e 20 69 6e |ber */.e|xtern in|
|00003120| 74 20 53 63 6c 69 6e 65 | 5b 4d 41 58 52 4f 57 53 |t Scline|[MAXROWS|
|00003130| 5d 3b 09 2f 2a 20 6c 69 | 6e 65 73 20 63 75 72 72 |];./* li|nes curr|
|00003140| 65 6e 74 6c 79 20 6f 6e | 20 73 63 72 65 65 6e 20 |ently on| screen |
|00003150| 28 72 65 6c 20 74 6f 20 | 53 63 74 6f 70 29 20 2a |(rel to |Sctop) *|
|00003160| 2f 0a 65 78 74 65 72 6e | 20 69 6e 74 20 53 63 74 |/.extern| int Sct|
|00003170| 6f 70 3b 09 09 2f 2a 20 | 66 69 72 73 74 20 6c 69 |op;../* |first li|
|00003180| 6e 65 20 63 75 72 72 65 | 6e 74 6c 79 20 6f 6e 20 |ne curre|ntly on |
|00003190| 73 63 72 65 65 6e 20 2a | 2f 0a 65 78 74 65 72 6e |screen *|/.extern|
|000031a0| 20 69 6e 74 20 53 63 6c | 65 6e 3b 09 09 2f 2a 20 | int Scl|en;../* |
|000031b0| 6e 75 6d 62 65 72 20 6f | 66 20 6c 69 6e 65 73 20 |number o|f lines |
|000031c0| 63 75 72 72 65 6e 74 6c | 79 20 6f 6e 20 73 63 72 |currentl|y on scr|
|000031d0| 65 65 6e 20 2a 2f 0a 65 | 78 74 65 72 6e 20 63 68 |een */.e|xtern ch|
|000031e0| 61 72 20 42 6c 61 6e 6b | 73 5b 4d 41 58 43 4f 4c |ar Blank|s[MAXCOL|
|000031f0| 53 5d 3b 09 2f 2a 20 61 | 6c 6c 20 62 6c 61 6e 6b |S];./* a|ll blank|
|00003200| 73 20 66 6f 72 20 66 69 | 6c 6c 69 6e 67 20 69 6e |s for fi|lling in|
|00003210| 20 6c 69 6e 65 73 20 6f | 6e 20 73 63 72 65 65 6e | lines o|n screen|
|00003220| 20 2a 2f 0a 65 78 74 65 | 72 6e 20 63 68 61 72 20 | */.exte|rn char |
|00003230| 54 6f 62 75 66 5b 4d 41 | 58 54 4f 42 55 46 5d 3b |Tobuf[MA|XTOBUF];|
|00003240| 09 2f 2a 20 62 75 66 66 | 65 72 20 66 6f 72 20 63 |./* buff|er for c|
|00003250| 6f 6c 6c 65 63 74 69 6e | 67 20 74 65 72 6d 69 6e |ollectin|g termin|
|00003260| 61 6c 20 6f 75 74 70 75 | 74 20 2a 2f 0a 65 78 74 |al outpu|t */.ext|
|00003270| 65 72 6e 20 63 68 61 72 | 20 2a 54 6f 62 70 3b 09 |ern char| *Tobp;.|
|00003280| 09 2f 2a 20 70 6f 69 6e | 74 65 72 20 74 6f 20 6c |./* poin|ter to l|
|00003290| 61 73 74 20 75 73 65 64 | 20 70 61 72 74 20 6f 66 |ast used| part of|
|000032a0| 20 54 6f 62 75 66 20 2a | 2f 0a 0a 0a 2f 2a 20 43 | Tobuf *|/.../* C|
|000032b0| 6f 6e 63 65 72 6e 69 6e | 67 20 69 6e 74 65 72 72 |oncernin|g interr|
|000032c0| 75 70 74 73 3a 20 2a 2f | 0a 65 78 74 65 72 6e 20 |upts: */|.extern |
|000032d0| 69 6e 74 20 49 6e 74 5f | 63 61 75 67 68 74 3b 09 |int Int_|caught;.|
|000032e0| 09 2f 2a 20 63 61 75 67 | 68 74 20 61 20 53 49 47 |./* caug|ht a SIG|
|000032f0| 49 4e 54 20 66 72 6f 6d | 20 75 73 65 72 20 2a 2f |INT from| user */|
|00003300| 0a 65 78 74 65 72 6e 20 | 69 6e 74 20 48 75 70 5f |.extern |int Hup_|
|00003310| 63 61 75 67 68 74 3b 09 | 09 2f 2a 20 63 61 75 67 |caught;.|./* caug|
|00003320| 68 74 20 61 20 53 49 47 | 48 55 50 20 77 68 65 6e |ht a SIG|HUP when|
|00003330| 20 70 68 6f 6e 65 20 6c | 69 6e 65 20 64 72 6f 70 | phone l|ine drop|
|00003340| 70 65 64 20 2a 2f 0a 23 | 69 66 64 65 66 20 53 49 |ped */.#|ifdef SI|
|00003350| 47 54 53 54 50 0a 65 78 | 74 65 72 6e 20 69 6e 74 |GTSTP.ex|tern int|
|00003360| 20 43 61 74 63 68 69 6e | 67 5f 73 74 6f 70 73 3b | Catchin|g_stops;|
|00003370| 09 2f 2a 20 63 61 74 63 | 68 69 6e 67 20 6f 72 20 |./* catc|hing or |
|00003380| 69 67 6e 6f 72 69 6e 67 | 20 53 49 47 54 53 54 50 |ignoring| SIGTSTP|
|00003390| 27 73 3f 20 2a 2f 0a 23 | 65 6e 64 69 66 0a 0a 2f |'s? */.#|endif../|
|000033a0| 2a 20 43 6f 6e 63 65 72 | 6e 69 6e 67 20 55 6e 69 |* Concer|ning Uni|
|000033b0| 78 20 61 6e 64 20 53 57 | 54 20 63 6f 6d 70 61 74 |x and SW|T compat|
|000033c0| 69 62 6c 69 74 79 3a 20 | 2a 2f 0a 65 78 74 65 72 |iblity: |*/.exter|
|000033d0| 6e 20 69 6e 74 20 55 6e | 69 78 5f 6d 6f 64 65 3b |n int Un|ix_mode;|
|000033e0| 09 09 2f 2a 20 62 65 68 | 61 76 69 6e 67 20 6c 69 |../* beh|aving li|
|000033f0| 6b 65 20 55 6e 69 78 20 | 65 64 69 74 6f 72 73 3f |ke Unix |editors?|
|00003400| 20 2a 2f 0a 65 78 74 65 | 72 6e 20 63 68 61 72 20 | */.exte|rn char |
|00003410| 42 41 43 4b 53 43 41 4e | 3b 09 09 2f 2a 20 62 61 |BACKSCAN|;../* ba|
|00003420| 63 6b 20 73 63 61 6e 20 | 63 68 61 72 61 63 74 65 |ck scan |characte|
|00003430| 72 20 2a 2f 0a 65 78 74 | 65 72 6e 20 63 68 61 72 |r */.ext|ern char|
|00003440| 20 4e 4f 54 49 4e 43 43 | 4c 3b 09 09 2f 2a 20 63 | NOTINCC|L;../* c|
|00003450| 6c 61 73 73 20 6e 65 67 | 61 74 69 6f 6e 20 63 68 |lass neg|ation ch|
|00003460| 61 72 61 63 74 65 72 20 | 2a 2f 0a 65 78 74 65 72 |aracter |*/.exter|
|00003470| 6e 20 63 68 61 72 20 58 | 4d 41 52 4b 3b 09 09 2f |n char X|MARK;../|
|00003480| 2a 20 67 6c 6f 62 61 6c | 20 65 78 63 6c 75 64 65 |* global| exclude|
|00003490| 20 6f 6e 20 6d 61 72 6b | 20 6e 61 6d 65 20 2a 2f | on mark| name */|
|000034a0| 0a 65 78 74 65 72 6e 20 | 63 68 61 72 20 45 53 43 |.extern |char ESC|
|000034b0| 41 50 45 3b 09 09 2f 2a | 20 65 73 63 61 70 65 20 |APE;../*| escape |
|000034c0| 63 68 61 72 61 63 74 65 | 72 20 2a 2f 0a 0a 2f 2a |characte|r */../*|
|000034d0| 20 43 6f 6e 63 65 72 6e | 69 6e 67 20 47 65 6f 72 | Concern|ing Geor|
|000034e0| 67 69 61 20 54 65 63 68 | 20 49 2e 43 2e 53 2e 20 |gia Tech| I.C.S. |
|000034f0| 73 70 65 63 69 66 69 63 | 20 63 6f 64 65 3a 20 2a |specific| code: *|
|00003500| 2f 0a 65 78 74 65 72 6e | 20 69 6e 74 20 41 74 5f |/.extern| int At_|
|00003510| 67 74 69 63 73 3b 09 09 | 2f 2a 20 61 72 65 20 77 |gtics;..|/* are w|
|00003520| 65 20 61 74 20 47 65 6f | 72 67 69 61 20 54 65 63 |e at Geo|rgia Tec|
|00003530| 68 20 49 43 53 3f 20 2a | 2f 0a 0a 2f 2a 20 43 6f |h ICS? *|/../* Co|
|00003540| 6e 63 65 72 6e 69 6e 67 | 20 66 69 6c 65 20 65 6e |ncerning| file en|
|00003550| 63 72 79 70 74 69 6f 6e | 3a 20 2a 2f 0a 65 78 74 |cryption|: */.ext|
|00003560| 65 72 6e 20 69 6e 74 20 | 43 72 79 70 74 69 6e 67 |ern int |Crypting|
|00003570| 3b 09 09 2f 2a 20 64 6f | 69 6e 67 20 66 69 6c 65 |;../* do|ing file|
|00003580| 20 65 6e 63 72 79 70 74 | 69 6f 6e 3f 20 2a 2f 0a | encrypt|ion? */.|
|00003590| 65 78 74 65 72 6e 20 63 | 68 61 72 20 4b 65 79 5b |extern c|har Key[|
|000035a0| 4b 45 59 53 49 5a 45 5d | 3b 09 2f 2a 20 65 6e 63 |KEYSIZE]|;./* enc|
|000035b0| 72 79 70 74 69 6f 6e 20 | 6b 65 79 20 2a 2f 0a 53 |ryption |key */.S|
|000035c0| 48 41 52 5f 45 4f 46 0a | 66 69 0a 65 63 68 6f 20 |HAR_EOF.|fi.echo |
|000035d0| 73 68 61 72 3a 20 22 65 | 78 74 72 61 63 74 69 6e |shar: "e|xtractin|
|000035e0| 67 20 27 73 65 2e 68 27 | 22 20 27 28 37 35 32 39 |g 'se.h'|" '(7529|
|000035f0| 20 63 68 61 72 61 63 74 | 65 72 73 29 27 0a 69 66 | charact|ers)'.if|
|00003600| 20 74 65 73 74 20 2d 66 | 20 27 73 65 2e 68 27 0a | test -f| 'se.h'.|
|00003610| 74 68 65 6e 0a 09 65 63 | 68 6f 20 73 68 61 72 3a |then..ec|ho shar:|
|00003620| 20 22 77 69 6c 6c 20 6e | 6f 74 20 6f 76 65 72 2d | "will n|ot over-|
|00003630| 77 72 69 74 65 20 65 78 | 69 73 74 69 6e 67 20 66 |write ex|isting f|
|00003640| 69 6c 65 20 27 73 65 2e | 68 27 22 0a 65 6c 73 65 |ile 'se.|h'".else|
|00003650| 0a 63 61 74 20 3c 3c 20 | 5c 53 48 41 52 5f 45 4f |.cat << |\SHAR_EO|
|00003660| 46 20 3e 20 27 73 65 2e | 68 27 0a 2f 2a 20 73 65 |F > 'se.|h'./* se|
|00003670| 2e 68 09 2d 2d 2d 20 64 | 65 66 69 6e 69 74 69 6f |.h.--- d|efinitio|
|00003680| 6e 73 09 66 6f 72 20 74 | 68 65 09 73 63 72 65 65 |ns.for t|he.scree|
|00003690| 6e 20 65 64 69 74 6f 72 | 20 2a 2f 0a 0a 23 69 6e |n editor| */..#in|
|000036a0| 63 6c 75 64 65 20 3c 73 | 74 64 69 6f 2e 68 3e 0a |clude <s|tdio.h>.|
|000036b0| 23 69 6e 63 6c 75 64 65 | 20 3c 63 74 79 70 65 2e |#include| <ctype.|
|000036c0| 68 3e 0a 23 69 6e 63 6c | 75 64 65 20 3c 73 69 67 |h>.#incl|ude <sig|
|000036d0| 6e 61 6c 2e 68 3e 0a 0a | 2f 2a 20 73 6f 6d 65 20 |nal.h>..|/* some |
|000036e0| 73 74 61 6e 64 61 72 64 | 20 64 65 66 69 6e 69 74 |standard| definit|
|000036f0| 69 6f 6e 73 20 75 73 65 | 64 20 74 68 72 6f 75 67 |ions use|d throug|
|00003700| 68 6f 75 74 20 74 68 65 | 20 73 63 72 65 65 6e 20 |hout the| screen |
|00003710| 65 64 69 74 6f 72 20 2a | 2f 0a 23 69 6e 63 6c 75 |editor *|/.#inclu|
|00003720| 64 65 20 22 63 6f 6e 73 | 74 64 65 66 73 2e 68 22 |de "cons|tdefs.h"|
|00003730| 0a 23 69 6e 63 6c 75 64 | 65 20 22 61 73 63 69 69 |.#includ|e "ascii|
|00003740| 2e 68 22 09 2f 2a 20 64 | 65 66 69 6e 69 74 69 6f |.h"./* d|efinitio|
|00003750| 6e 73 20 6f 66 20 61 73 | 63 69 69 20 63 68 61 72 |ns of as|cii char|
|00003760| 61 63 74 65 72 73 20 2a | 2f 0a 0a 2f 2a 20 6e 65 |acters *|/../* ne|
|00003770| 77 20 64 61 74 61 20 74 | 79 70 65 73 20 2a 2f 0a |w data t|ypes */.|
|00003780| 74 79 70 65 64 65 66 09 | 69 6e 74 20 66 69 6c 65 |typedef.|int file|
|00003790| 64 65 73 3b 09 09 2f 2a | 20 55 6e 69 78 09 66 69 |des;../*| Unix.fi|
|000037a0| 6c 65 20 64 65 73 63 72 | 69 70 74 6f 72 09 2a 2f |le descr|iptor.*/|
|000037b0| 0a 0a 74 79 70 65 64 65 | 66 09 73 74 72 75 63 74 |..typede|f.struct|
|000037c0| 20 6c 64 65 73 63 20 7b | 09 09 2f 2a 20 6c 69 6e | ldesc {|../* lin|
|000037d0| 65 09 64 65 73 63 72 69 | 70 74 6f 72 20 2a 2f 0a |e.descri|ptor */.|
|000037e0| 23 69 66 64 65 66 20 4f | 4c 44 5f 53 43 52 41 54 |#ifdef O|LD_SCRAT|
|000037f0| 43 48 0a 09 73 74 72 75 | 63 74 09 6c 64 65 73 63 |CH..stru|ct.ldesc|
|00003800| 20 2a 50 72 65 76 6c 69 | 6e 65 3b 20 2f 2a 20 6c | *Prevli|ne; /* l|
|00003810| 69 6e 6b 20 74 6f 20 70 | 72 65 76 69 6f 75 73 20 |ink to p|revious |
|00003820| 6c 69 6e 65 20 2a 2f 0a | 09 73 74 72 75 63 74 09 |line */.|.struct.|
|00003830| 6c 64 65 73 63 20 2a 4e | 65 78 74 6c 69 6e 65 3b |ldesc *N|extline;|
|00003840| 20 2f 2a 20 6c 69 6e 6b | 20 74 6f 20 6e 65 78 74 | /* link| to next|
|00003850| 20 6c 69 6e 65 20 2a 2f | 0a 23 65 6e 64 69 66 0a | line */|.#endif.|
|00003860| 09 75 6e 73 69 67 6e 65 | 64 20 53 65 65 6b 61 64 |.unsigne|d Seekad|
|00003870| 64 72 3b 09 2f 2a 20 73 | 63 72 61 74 63 68 20 66 |dr;./* s|cratch f|
|00003880| 69 6c 65 20 73 65 65 6b | 20 61 64 64 72 65 73 73 |ile seek| address|
|00003890| 20 2f 20 38 20 2a 2f 0a | 09 75 6e 73 69 67 6e 65 | / 8 */.|.unsigne|
|000038a0| 64 20 4c 69 6e 65 6c 65 | 6e 67 20 3a 20 31 36 3b |d Linele|ng : 16;|
|000038b0| 09 2f 2a 20 6c 69 6e 65 | 20 6c 65 6e 67 74 68 09 |./* line| length.|
|000038c0| 69 6e 63 6c 75 64 69 6e | 67 20 4e 4c 20 20 45 4f |includin|g NL EO|
|000038d0| 53 20 2a 2f 0a 09 75 6e | 73 69 67 6e 65 64 20 47 |S */..un|signed G|
|000038e0| 6c 6f 62 6d 61 72 6b 20 | 3a 20 31 3b 09 2f 2a 20 |lobmark |: 1;./* |
|000038f0| 6d 61 72 6b 20 66 6f 72 | 20 67 6c 6f 62 61 6c 20 |mark for| global |
|00003900| 63 6f 6d 6d 61 6e 64 73 | 20 2a 2f 0a 09 75 6e 73 |commands| */..uns|
|00003910| 69 67 6e 65 64 20 4d 61 | 72 6b 6e 61 6d 65 20 3a |igned Ma|rkname :|
|00003920| 20 37 3b 09 2f 2a 20 6d | 61 72 6b 20 6e 61 6d 65 | 7;./* m|ark name|
|00003930| 20 61 73 73 6f 63 69 61 | 74 65 64 20 77 69 74 68 | associa|ted with|
|00003940| 20 6c 69 6e 65 20 2a 2f | 0a 7d 20 4c 49 4e 45 44 | line */|.} LINED|
|00003950| 45 53 43 3b 0a 0a 2f 2a | 20 4c 61 6e 67 75 61 67 |ESC;../*| Languag|
|00003960| 65 20 65 78 74 65 6e 73 | 69 6f 6e 73 20 2a 2f 0a |e extens|ions */.|
|00003970| 23 64 65 66 69 6e 65 20 | 6d 69 6e 28 61 2c 62 29 |#define |min(a,b)|
|00003980| 09 28 28 61 29 3c 28 62 | 29 3f 28 61 29 3a 28 62 |.((a)<(b|)?(a):(b|
|00003990| 29 29 0a 23 64 65 66 69 | 6e 65 20 6d 61 78 28 61 |)).#defi|ne max(a|
|000039a0| 2c 62 29 09 28 28 61 29 | 3e 28 62 29 3f 28 61 29 |,b).((a)|>(b)?(a)|
|000039b0| 3a 28 62 29 29 0a 23 64 | 65 66 69 6e 65 20 53 4b |:(b)).#d|efine SK|
|000039c0| 49 50 42 4c 28 6c 2c 69 | 29 09 77 68 69 6c 65 20 |IPBL(l,i|).while |
|000039d0| 28 6c 5b 69 5d 20 3d 3d | 20 27 20 27 29 20 28 69 |(l[i] ==| ' ') (i|
|000039e0| 29 2b 2b 0a 0a 2f 2a 20 | 73 61 76 65 20 61 20 6c |)++../* |save a l|
|000039f0| 69 74 74 6c 65 20 70 72 | 6f 63 65 64 75 72 65 20 |ittle pr|ocedure |
|00003a00| 63 61 6c 6c 20 6f 76 65 | 72 68 65 61 64 2e 2e 2e |call ove|rhead...|
|00003a10| 20 2a 2f 0a 23 64 65 66 | 69 6e 65 20 72 65 6d 61 | */.#def|ine rema|
|00003a20| 72 6b 28 74 65 78 74 29 | 09 6d 65 73 67 28 74 65 |rk(text)|.mesg(te|
|00003a30| 78 74 2c 20 52 45 4d 41 | 52 4b 5f 4d 53 47 29 0a |xt, REMA|RK_MSG).|
|00003a40| 0a 2f 2a 20 41 72 62 69 | 74 72 61 72 79 20 64 65 |./* Arbi|trary de|
|00003a50| 66 69 6e 69 74 69 6f 6e | 73 20 2a 2f 0a 23 64 65 |finition|s */.#de|
|00003a60| 66 69 6e 65 20 42 41 43 | 4b 57 41 52 44 09 2d 31 |fine BAC|KWARD.-1|
|00003a70| 0a 23 64 65 66 69 6e 65 | 20 46 4f 52 57 41 52 44 |.#define| FORWARD|
|00003a80| 09 09 30 0a 23 64 65 66 | 69 6e 65 20 4e 4f 53 54 |..0.#def|ine NOST|
|00003a90| 41 54 55 53 09 31 0a 23 | 64 65 66 69 6e 65 20 4e |ATUS.1.#|define N|
|00003aa0| 4f 4d 4f 52 45 09 09 30 | 0a 23 64 65 66 69 6e 65 |OMORE..0|.#define|
|00003ab0| 20 4e 45 57 4c 49 4e 45 | 09 09 27 5c 6e 27 0a 23 | NEWLINE|..'\n'.#|
|00003ac0| 64 65 66 69 6e 65 20 54 | 41 42 09 09 27 5c 74 27 |define T|AB..'\t'|
|00003ad0| 0a 23 64 65 66 69 6e 65 | 20 52 45 54 45 52 52 09 |.#define| RETERR.|
|00003ae0| 31 0a 23 64 65 66 69 6e | 65 20 52 45 54 4f 4b 09 |1.#defin|e RETOK.|
|00003af0| 30 0a 0a 2f 2a 20 41 72 | 72 61 79 20 64 69 6d 65 |0../* Ar|ray dime|
|00003b00| 6e 73 69 6f 6e 73 20 61 | 6e 64 09 6f 74 68 65 72 |nsions a|nd.other|
|00003b10| 20 6c 69 6d 69 74 20 76 | 61 6c 75 65 73 20 2a 2f | limit v|alues */|
|00003b20| 0a 23 64 65 66 69 6e 65 | 20 4d 41 58 42 55 46 09 |.#define| MAXBUF.|
|00003b30| 09 38 31 39 32 0a 23 64 | 65 66 69 6e 65 20 4d 41 |.8192.#d|efine MA|
|00003b40| 58 54 4f 42 55 46 09 35 | 31 32 0a 23 64 65 66 69 |XTOBUF.5|12.#defi|
|00003b50| 6e 65 20 4d 41 58 43 48 | 41 52 53 09 31 30 0a 23 |ne MAXCH|ARS.10.#|
|00003b60| 64 65 66 69 6e 65 20 4d | 41 58 52 4f 57 53 09 09 |define M|AXROWS..|
|00003b70| 32 30 30 0a 23 64 65 66 | 69 6e 65 20 4d 49 4e 52 |200.#def|ine MINR|
|00003b80| 4f 57 53 09 09 31 36 0a | 23 64 65 66 69 6e 65 20 |OWS..16.|#define |
|00003b90| 4d 41 58 43 4f 4c 53 09 | 09 32 30 30 0a 23 64 65 |MAXCOLS.|.200.#de|
|00003ba0| 66 69 6e 65 20 4d 41 58 | 4c 49 4e 45 09 09 35 31 |fine MAX|LINE..51|
|00003bb0| 32 0a 23 64 65 66 69 6e | 65 20 4d 41 58 50 41 54 |2.#defin|e MAXPAT|
|00003bc0| 09 09 35 31 32 0a 23 64 | 65 66 69 6e 65 20 47 41 |..512.#d|efine GA|
|00003bd0| 52 42 5f 46 41 43 54 4f | 52 09 32 0a 23 64 65 66 |RB_FACTO|R.2.#def|
|00003be0| 69 6e 65 20 47 41 52 42 | 5f 54 48 52 45 53 48 4f |ine GARB|_THRESHO|
|00003bf0| 4c 44 09 31 30 30 30 0a | 23 64 65 66 69 6e 65 20 |LD.1000.|#define |
|00003c00| 42 55 46 45 4e 54 09 09 | 31 0a 23 64 65 66 69 6e |BUFENT..|1.#defin|
|00003c10| 65 20 4b 45 59 53 49 5a | 45 09 09 31 31 0a 0a 2f |e KEYSIZ|E..11../|
|00003c20| 2a 20 4d 65 73 73 61 67 | 65 20 63 6c 61 73 73 65 |* Messag|e classe|
|00003c30| 73 20 66 6f 72 20 73 74 | 61 74 75 73 20 6c 69 6e |s for st|atus lin|
|00003c40| 65 20 61 74 20 62 6f 74 | 74 6f 6d 20 6f 66 09 73 |e at bot|tom of.s|
|00003c50| 63 72 65 65 6e 20 2a 2f | 0a 23 64 65 66 69 6e 65 |creen */|.#define|
|00003c60| 20 4e 4f 4d 53 47 09 09 | 30 0a 23 64 65 66 69 6e | NOMSG..|0.#defin|
|00003c70| 65 20 52 45 4d 41 52 4b | 5f 4d 53 47 09 31 0a 23 |e REMARK|_MSG.1.#|
|00003c80| 64 65 66 69 6e 65 20 43 | 48 41 52 5f 4d 53 47 09 |define C|HAR_MSG.|
|00003c90| 32 0a 23 64 65 66 69 6e | 65 20 43 41 53 45 5f 4d |2.#defin|e CASE_M|
|00003ca0| 53 47 09 33 0a 23 64 65 | 66 69 6e 65 20 49 4e 53 |SG.3.#de|fine INS|
|00003cb0| 5f 4d 53 47 09 09 34 0a | 23 64 65 66 69 6e 65 20 |_MSG..4.|#define |
|00003cc0| 54 49 4d 45 5f 4d 53 47 | 09 35 0a 23 64 65 66 69 |TIME_MSG|.5.#defi|
|00003cd0| 6e 65 20 46 49 4c 45 5f | 4d 53 47 09 36 0a 23 64 |ne FILE_|MSG.6.#d|
|00003ce0| 65 66 69 6e 65 20 43 4f | 4c 5f 4d 53 47 09 09 37 |efine CO|L_MSG..7|
|00003cf0| 0a 23 64 65 66 69 6e 65 | 20 4c 49 4e 45 5f 4d 53 |.#define| LINE_MS|
|00003d00| 47 09 38 0a 23 64 65 66 | 69 6e 65 20 43 4f 4d 50 |G.8.#def|ine COMP|
|00003d10| 52 45 53 53 5f 4d 53 47 | 09 39 0a 23 64 65 66 69 |RESS_MSG|.9.#defi|
|00003d20| 6e 65 20 48 45 4c 50 5f | 4d 53 47 09 31 30 0a 23 |ne HELP_|MSG.10.#|
|00003d30| 64 65 66 69 6e 65 20 4d | 4f 44 45 5f 4d 53 47 09 |define M|ODE_MSG.|
|00003d40| 31 31 0a 23 64 65 66 69 | 6e 65 20 43 52 59 50 54 |11.#defi|ne CRYPT|
|00003d50| 5f 4d 53 47 09 31 32 0a | 0a 2f 2a 20 43 68 61 72 |_MSG.12.|./* Char|
|00003d60| 61 63 74 65 72 73 20 74 | 79 70 65 64 20 62 79 20 |acters t|yped by |
|00003d70| 74 68 65 20 75 73 65 72 | 09 2a 2f 0a 23 64 65 66 |the user|.*/.#def|
|00003d80| 69 6e 65 20 41 4e 59 57 | 41 59 09 09 27 21 27 0a |ine ANYW|AY..'!'.|
|00003d90| 23 64 65 66 69 6e 65 20 | 41 50 50 45 4e 44 43 4f |#define |APPENDCO|
|00003da0| 4d 09 27 61 27 0a 23 64 | 65 66 69 6e 65 20 55 43 |M.'a'.#d|efine UC|
|00003db0| 41 50 50 45 4e 44 43 4f | 4d 09 27 41 27 0a 23 64 |APPENDCO|M.'A'.#d|
|00003dc0| 65 66 69 6e 65 20 42 41 | 43 4b 53 45 41 52 43 48 |efine BA|CKSEARCH|
|00003dd0| 09 27 3c 27 0a 23 64 65 | 66 69 6e 65 20 43 48 41 |.'<'.#de|fine CHA|
|00003de0| 4e 47 45 09 09 27 63 27 | 0a 23 64 65 66 69 6e 65 |NGE..'c'|.#define|
|00003df0| 20 55 43 43 48 41 4e 47 | 45 09 27 43 27 0a 23 64 | UCCHANG|E.'C'.#d|
|00003e00| 65 66 69 6e 65 20 43 4f | 50 59 43 4f 4d 09 09 27 |efine CO|PYCOM..'|
|00003e10| 74 27 0a 23 64 65 66 69 | 6e 65 20 55 43 43 4f 50 |t'.#defi|ne UCCOP|
|00003e20| 59 43 4f 4d 09 27 54 27 | 0a 23 64 65 66 69 6e 65 |YCOM.'T'|.#define|
|00003e30| 20 43 55 52 4c 49 4e 45 | 09 09 27 2e 27 0a 23 64 | CURLINE|..'.'.#d|
|00003e40| 65 66 69 6e 65 20 44 45 | 46 41 55 4c 54 4e 41 4d |efine DE|FAULTNAM|
|00003e50| 45 09 27 20 27 0a 23 64 | 65 66 69 6e 65 20 44 45 |E.' '.#d|efine DE|
|00003e60| 4c 43 4f 4d 09 09 27 64 | 27 0a 23 64 65 66 69 6e |LCOM..'d|'.#defin|
|00003e70| 65 20 55 43 44 45 4c 43 | 4f 4d 09 27 44 27 0a 23 |e UCDELC|OM.'D'.#|
|00003e80| 64 65 66 69 6e 65 20 45 | 4e 54 45 52 09 09 27 65 |define E|NTER..'e|
|00003e90| 27 0a 23 64 65 66 69 6e | 65 20 55 43 45 4e 54 45 |'.#defin|e UCENTE|
|00003ea0| 52 09 09 27 45 27 0a 23 | 64 65 66 69 6e 65 20 45 |R..'E'.#|define E|
|00003eb0| 58 43 4c 55 44 45 09 09 | 27 78 27 0a 23 64 65 66 |XCLUDE..|'x'.#def|
|00003ec0| 69 6e 65 20 55 43 45 58 | 43 4c 55 44 45 09 27 58 |ine UCEX|CLUDE.'X|
|00003ed0| 27 0a 23 64 65 66 69 6e | 65 20 47 4c 4f 42 41 4c |'.#defin|e GLOBAL|
|00003ee0| 09 09 27 67 27 0a 23 64 | 65 66 69 6e 65 20 55 43 |..'g'.#d|efine UC|
|00003ef0| 47 4c 4f 42 41 4c 09 27 | 47 27 0a 23 64 65 66 69 |GLOBAL.'|G'.#defi|
|00003f00| 6e 65 20 47 4d 41 52 4b | 09 09 27 5c 27 27 0a 23 |ne GMARK|..'\''.#|
|00003f10| 64 65 66 69 6e 65 20 48 | 45 4c 50 09 09 27 68 27 |define H|ELP..'h'|
|00003f20| 0a 23 64 65 66 69 6e 65 | 20 55 43 48 45 4c 50 09 |.#define| UCHELP.|
|00003f30| 09 27 48 27 0a 23 64 65 | 66 69 6e 65 20 49 4e 53 |.'H'.#de|fine INS|
|00003f40| 45 52 54 09 09 27 69 27 | 0a 23 64 65 66 69 6e 65 |ERT..'i'|.#define|
|00003f50| 20 55 43 49 4e 53 45 52 | 54 09 27 49 27 0a 23 64 | UCINSER|T.'I'.#d|
|00003f60| 65 66 69 6e 65 20 4a 4f | 49 4e 43 4f 4d 09 09 27 |efine JO|INCOM..'|
|00003f70| 6a 27 0a 23 64 65 66 69 | 6e 65 20 55 43 4a 4f 49 |j'.#defi|ne UCJOI|
|00003f80| 4e 43 4f 4d 09 27 4a 27 | 0a 23 64 65 66 69 6e 65 |NCOM.'J'|.#define|
|00003f90| 20 4c 41 53 54 4c 49 4e | 45 09 27 24 27 0a 23 64 | LASTLIN|E.'$'.#d|
|00003fa0| 65 66 69 6e 65 20 4c 4f | 43 41 54 45 43 4d 44 09 |efine LO|CATECMD.|
|00003fb0| 27 6c 27 0a 23 64 65 66 | 69 6e 65 20 55 43 4c 4f |'l'.#def|ine UCLO|
|00003fc0| 43 41 54 45 43 4d 44 09 | 27 4c 27 0a 23 64 65 66 |CATECMD.|'L'.#def|
|00003fd0| 69 6e 65 20 4d 41 52 4b | 43 4f 4d 09 09 27 6b 27 |ine MARK|COM..'k'|
|00003fe0| 0a 23 64 65 66 69 6e 65 | 20 55 43 4d 41 52 4b 43 |.#define| UCMARKC|
|00003ff0| 4f 4d 09 27 4b 27 0a 23 | 64 65 66 69 6e 65 20 4d |OM.'K'.#|define M|
|00004000| 4f 56 45 43 4f 4d 09 09 | 27 6d 27 0a 23 64 65 66 |OVECOM..|'m'.#def|
|00004010| 69 6e 65 20 55 43 4d 4f | 56 45 43 4f 4d 09 27 4d |ine UCMO|VECOM.'M|
|00004020| 27 0a 23 64 65 66 69 6e | 65 20 4e 41 4d 45 43 4f |'.#defin|e NAMECO|
|00004030| 4d 09 09 27 6e 27 0a 23 | 64 65 66 69 6e 65 20 55 |M..'n'.#|define U|
|00004040| 43 4e 41 4d 45 43 4f 4d | 09 27 4e 27 0a 23 64 65 |CNAMECOM|.'N'.#de|
|00004050| 66 69 6e 65 20 4f 50 54 | 43 4f 4d 09 09 27 6f 27 |fine OPT|COM..'o'|
|00004060| 0a 23 64 65 66 69 6e 65 | 20 55 43 4f 50 54 43 4f |.#define| UCOPTCO|
|00004070| 4d 09 27 4f 27 0a 23 64 | 65 66 69 6e 65 20 50 41 |M.'O'.#d|efine PA|
|00004080| 47 45 43 4f 4d 09 09 27 | 3a 27 0a 23 64 65 66 69 |GECOM..'|:'.#defi|
|00004090| 6e 65 20 4f 56 45 52 4c | 41 59 43 4f 4d 09 27 76 |ne OVERL|AYCOM.'v|
|000040a0| 27 0a 23 64 65 66 69 6e | 65 20 55 43 4f 56 45 52 |'.#defin|e UCOVER|
|000040b0| 4c 41 59 43 4f 4d 09 27 | 56 27 0a 23 64 65 66 69 |LAYCOM.'|V'.#defi|
|000040c0| 6e 65 20 50 52 45 56 4c | 49 4e 45 09 27 5e 27 0a |ne PREVL|INE.'^'.|
|000040d0| 23 64 65 66 69 6e 65 20 | 50 52 45 56 4c 49 4e 45 |#define |PREVLINE|
|000040e0| 32 09 27 2d 27 0a 23 64 | 65 66 69 6e 65 20 50 52 |2.'-'.#d|efine PR|
|000040f0| 49 4e 54 09 09 27 70 27 | 0a 23 64 65 66 69 6e 65 |INT..'p'|.#define|
|00004100| 20 55 43 50 52 49 4e 54 | 09 09 27 50 27 0a 23 64 | UCPRINT|..'P'.#d|
|00004110| 65 66 69 6e 65 20 50 52 | 49 4e 54 43 55 52 09 27 |efine PR|INTCUR.'|
|00004120| 3d 27 0a 23 64 65 66 69 | 6e 65 20 50 52 49 4e 54 |='.#defi|ne PRINT|
|00004130| 46 49 4c 09 27 66 27 0a | 23 64 65 66 69 6e 65 20 |FIL.'f'.|#define |
|00004140| 55 43 50 52 49 4e 54 46 | 49 4c 09 27 46 27 0a 23 |UCPRINTF|IL.'F'.#|
|00004150| 64 65 66 69 6e 65 20 51 | 55 49 54 09 09 27 71 27 |define Q|UIT..'q'|
|00004160| 0a 23 64 65 66 69 6e 65 | 20 55 43 51 55 49 54 09 |.#define| UCQUIT.|
|00004170| 09 27 51 27 0a 23 64 65 | 66 69 6e 65 20 52 45 41 |.'Q'.#de|fine REA|
|00004180| 44 43 4f 4d 09 09 27 72 | 27 0a 23 64 65 66 69 6e |DCOM..'r|'.#defin|
|00004190| 65 20 55 43 52 45 41 44 | 43 4f 4d 09 27 52 27 0a |e UCREAD|COM.'R'.|
|000041a0| 23 64 65 66 69 6e 65 20 | 53 43 41 4e 09 09 27 2f |#define |SCAN..'/|
|000041b0| 27 0a 23 64 65 66 69 6e | 65 20 53 45 41 52 43 48 |'.#defin|e SEARCH|
|000041c0| 09 09 27 3e 27 0a 23 64 | 65 66 69 6e 65 20 53 55 |..'>'.#d|efine SU|
|000041d0| 42 53 54 49 54 55 54 45 | 09 27 73 27 0a 23 64 65 |BSTITUTE|.'s'.#de|
|000041e0| 66 69 6e 65 20 55 43 53 | 55 42 53 54 49 54 55 54 |fine UCS|UBSTITUT|
|000041f0| 45 09 27 53 27 0a 23 64 | 65 66 69 6e 65 20 54 4c |E.'S'.#d|efine TL|
|00004200| 49 54 43 4f 4d 09 09 27 | 79 27 0a 23 64 65 66 69 |ITCOM..'|y'.#defi|
|00004210| 6e 65 20 55 43 54 4c 49 | 54 43 4f 4d 09 27 59 27 |ne UCTLI|TCOM.'Y'|
|00004220| 0a 23 64 65 66 69 6e 65 | 20 54 4f 50 4c 49 4e 45 |.#define| TOPLINE|
|00004230| 09 09 27 23 27 0a 23 64 | 65 66 69 6e 65 20 55 4e |..'#'.#d|efine UN|
|00004240| 44 4f 43 4f 4d 09 09 27 | 75 27 0a 23 64 65 66 69 |DOCOM..'|u'.#defi|
|00004250| 6e 65 20 55 43 55 4e 44 | 4f 43 4f 4d 09 27 55 27 |ne UCUND|OCOM.'U'|
|00004260| 0a 23 64 65 66 69 6e 65 | 20 57 52 49 54 45 43 4f |.#define| WRITECO|
|00004270| 4d 09 27 77 27 0a 23 64 | 65 66 69 6e 65 20 55 43 |M.'w'.#d|efine UC|
|00004280| 57 52 49 54 45 43 4f 4d | 09 27 57 27 0a 23 64 65 |WRITECOM|.'W'.#de|
|00004290| 66 69 6e 65 20 4d 49 53 | 43 43 4f 4d 09 09 27 7a |fine MIS|CCOM..'z|
|000042a0| 27 0a 23 64 65 66 69 6e | 65 20 55 43 4d 49 53 43 |'.#defin|e UCMISC|
|000042b0| 43 4f 4d 09 27 5a 27 0a | 23 64 65 66 69 6e 65 20 |COM.'Z'.|#define |
|000042c0| 53 48 45 4c 4c 43 4f 4d | 09 27 21 27 0a 0a 2f 2a |SHELLCOM|.'!'../*|
|000042d0| 20 45 72 72 6f 72 20 6d | 65 73 73 61 67 65 20 6e | Error m|essage n|
|000042e0| 75 6d 62 65 72 73 2e 20 | 20 41 72 62 69 74 72 61 |umbers. | Arbitra|
|000042f0| 72 79 20 73 6f 09 6c 6f | 6e 67 20 61 73 09 74 68 |ry so.lo|ng as.th|
|00004300| 65 79 20 61 72 65 20 64 | 69 66 66 65 72 65 6e 74 |ey are d|ifferent|
|00004310| 2e 20 2a 2f 0a 23 64 65 | 66 69 6e 65 20 45 42 41 |. */.#de|fine EBA|
|00004320| 43 4b 57 41 52 44 09 31 | 0a 23 64 65 66 69 6e 65 |CKWARD.1|.#define|
|00004330| 20 45 4e 4f 50 41 54 09 | 09 32 0a 23 64 65 66 69 | ENOPAT.|.2.#defi|
|00004340| 6e 65 20 45 42 41 44 50 | 41 54 09 09 33 0a 23 64 |ne EBADP|AT..3.#d|
|00004350| 65 66 69 6e 65 20 45 42 | 41 44 53 54 52 09 09 34 |efine EB|ADSTR..4|
|00004360| 0a 23 64 65 66 69 6e 65 | 20 45 42 41 44 53 55 42 |.#define| EBADSUB|
|00004370| 09 09 35 0a 23 64 65 66 | 69 6e 65 20 45 43 41 4e |..5.#def|ine ECAN|
|00004380| 54 52 45 41 44 09 36 0a | 23 64 65 66 69 6e 65 20 |TREAD.6.|#define |
|00004390| 45 45 47 41 52 42 09 09 | 37 0a 23 64 65 66 69 6e |EEGARB..|7.#defin|
|000043a0| 65 20 45 46 49 4c 45 4e | 09 09 38 0a 23 64 65 66 |e EFILEN|..8.#def|
|000043b0| 69 6e 65 20 45 42 41 44 | 54 41 42 53 09 39 0a 23 |ine EBAD|TABS.9.#|
|000043c0| 64 65 66 69 6e 65 20 45 | 49 4e 53 49 44 45 4f 55 |define E|INSIDEOU|
|000043d0| 54 09 31 30 0a 23 64 65 | 66 69 6e 65 20 45 4b 4e |T.10.#de|fine EKN|
|000043e0| 4f 54 46 4e 44 09 31 31 | 0a 23 64 65 66 69 6e 65 |OTFND.11|.#define|
|000043f0| 20 45 4c 49 4e 45 31 09 | 09 31 32 0a 23 64 65 66 | ELINE1.|.12.#def|
|00004400| 69 6e 65 20 45 32 4c 4f | 4e 47 09 09 31 33 0a 23 |ine E2LO|NG..13.#|
|00004410| 64 65 66 69 6e 65 20 45 | 4e 4f 45 52 52 09 09 31 |define E|NOERR..1|
|00004420| 34 0a 23 64 65 66 69 6e | 65 20 45 4e 4f 4c 49 4d |4.#defin|e ENOLIM|
|00004430| 42 4f 09 31 35 0a 23 64 | 65 66 69 6e 65 20 45 4f |BO.15.#d|efine EO|
|00004440| 44 4c 53 53 47 54 52 09 | 31 36 0a 23 64 65 66 69 |DLSSGTR.|16.#defi|
|00004450| 6e 65 20 45 4f 52 41 4e | 47 45 09 09 31 37 0a 23 |ne EORAN|GE..17.#|
|00004460| 64 65 66 69 6e 65 20 45 | 4f 57 48 41 54 09 09 31 |define E|OWHAT..1|
|00004470| 38 0a 23 64 65 66 69 6e | 65 20 45 50 4e 4f 54 46 |8.#defin|e EPNOTF|
|00004480| 4e 44 09 31 39 0a 23 64 | 65 66 69 6e 65 20 45 53 |ND.19.#d|efine ES|
|00004490| 54 55 50 49 44 09 09 32 | 30 0a 23 64 65 66 69 6e |TUPID..2|0.#defin|
|000044a0| 65 20 45 57 48 41 54 5a | 41 54 09 32 31 0a 23 64 |e EWHATZ|AT.21.#d|
|000044b0| 65 66 69 6e 65 20 45 42 | 52 45 41 4b 09 09 32 32 |efine EB|REAK..22|
|000044c0| 0a 23 64 65 66 69 6e 65 | 20 45 4c 49 4e 45 32 09 |.#define| ELINE2.|
|000044d0| 09 32 33 0a 23 64 65 66 | 69 6e 65 20 45 43 41 4e |.23.#def|ine ECAN|
|000044e0| 54 57 52 49 54 45 09 32 | 34 0a 23 64 65 66 69 6e |TWRITE.2|4.#defin|
|000044f0| 65 20 45 43 41 4e 54 49 | 4e 4a 45 43 54 09 32 35 |e ECANTI|NJECT.25|
|00004500| 0a 23 64 65 66 69 6e 65 | 20 45 4e 4f 4d 41 54 43 |.#define| ENOMATC|
|00004510| 48 09 32 36 0a 23 64 65 | 66 69 6e 65 20 45 4e 4f |H.26.#de|fine ENO|
|00004520| 46 4e 09 09 32 37 0a 23 | 64 65 66 69 6e 65 20 45 |FN..27.#|define E|
|00004530| 42 41 44 4c 49 53 54 09 | 32 38 0a 23 64 65 66 69 |BADLIST.|28.#defi|
|00004540| 6e 65 20 45 4e 4f 4c 49 | 53 54 09 09 32 39 0a 23 |ne ENOLI|ST..29.#|
|00004550| 64 65 66 69 6e 65 20 45 | 4e 4f 4e 53 45 4e 53 45 |define E|NONSENSE|
|00004560| 09 33 30 0a 23 64 65 66 | 69 6e 65 20 45 4e 4f 48 |.30.#def|ine ENOH|
|00004570| 45 4c 50 09 09 33 31 0a | 23 64 65 66 69 6e 65 20 |ELP..31.|#define |
|00004580| 45 42 41 44 4c 4e 52 09 | 09 33 32 0a 23 64 65 66 |EBADLNR.|.32.#def|
|00004590| 69 6e 65 20 45 46 45 58 | 49 53 54 53 09 33 33 0a |ine EFEX|ISTS.33.|
|000045a0| 23 64 65 66 69 6e 65 20 | 45 42 41 44 43 4f 4c 09 |#define |EBADCOL.|
|000045b0| 09 33 34 0a 23 64 65 66 | 69 6e 65 20 45 4e 4f 4c |.34.#def|ine ENOL|
|000045c0| 41 4e 47 09 09 33 35 0a | 23 64 65 66 69 6e 65 20 |ANG..35.|#define |
|000045d0| 45 54 52 55 4e 43 09 09 | 33 36 0a 23 64 65 66 69 |ETRUNC..|36.#defi|
|000045e0| 6e 65 20 45 4e 4f 53 48 | 45 4c 4c 09 33 37 0a 23 |ne ENOSH|ELL.37.#|
|000045f0| 64 65 66 69 6e 65 20 45 | 43 41 4e 54 46 4f 52 4b |define E|CANTFORK|
|00004600| 09 33 38 0a 23 64 65 66 | 69 6e 65 20 45 48 41 4e |.38.#def|ine EHAN|
|00004610| 47 55 50 09 09 33 39 0a | 23 64 65 66 69 6e 65 20 |GUP..39.|#define |
|00004620| 45 4e 4f 53 55 42 09 09 | 34 30 0a 23 64 65 66 69 |ENOSUB..|40.#defi|
|00004630| 6e 65 20 45 4e 4f 43 4d | 44 09 09 34 31 0a 0a 23 |ne ENOCM|D..41..#|
|00004640| 69 66 64 65 66 20 48 41 | 52 44 5f 54 45 52 4d 53 |ifdef HA|RD_TERMS|
|00004650| 0a 2f 2a 20 54 65 72 6d | 69 6e 61 6c 20 74 79 70 |./* Term|inal typ|
|00004660| 65 73 20 2a 2f 0a 23 64 | 65 66 69 6e 65 20 4e 4f |es */.#d|efine NO|
|00004670| 54 45 52 4d 09 09 30 09 | 2f 2a 20 74 79 70 65 09 |TERM..0.|/* type.|
|00004680| 6e 6f 74 20 6b 6e 6f 77 | 6e 20 79 65 74 20 2a 2f |not know|n yet */|
|00004690| 0a 23 64 65 66 69 6e 65 | 20 41 44 44 53 39 38 30 |.#define| ADDS980|
|000046a0| 09 09 31 09 2f 2a 20 41 | 44 44 53 09 43 6f 6e 73 |..1./* A|DDS.Cons|
|000046b0| 75 6c 20 39 38 30 20 2a | 2f 0a 23 64 65 66 69 6e |ul 980 *|/.#defin|
|000046c0| 65 20 41 44 44 53 31 30 | 30 09 09 32 09 2f 2a 20 |e ADDS10|0..2./* |
|000046d0| 41 44 44 53 09 52 65 67 | 65 6e 74 20 31 30 30 2c |ADDS.Reg|ent 100,|
|000046e0| 20 32 30 2c 09 34 30 2c | 20 65 74 63 09 2a 2f 0a | 20,.40,| etc.*/.|
|000046f0| 23 64 65 66 69 6e 65 20 | 46 4f 58 09 09 33 09 2f |#define |FOX..3./|
|00004700| 2a 20 50 65 72 6b 69 6e | 2d 45 6c 6d 65 72 09 31 |* Perkin|-Elmer.1|
|00004710| 31 30 30 20 2a 2f 0a 23 | 64 65 66 69 6e 65 20 54 |100 */.#|define T|
|00004720| 56 54 09 09 34 09 2f 2a | 20 41 6c 6c 65 6e 27 73 |VT..4./*| Allen's|
|00004730| 20 53 57 54 50 43 20 54 | 2e 20 56 2e 20 54 79 70 | SWTPC T|. V. Typ|
|00004740| 65 77 72 69 74 65 72 20 | 49 49 20 2a 2f 0a 23 64 |ewriter |II */.#d|
|00004750| 65 66 69 6e 65 20 47 54 | 34 30 09 09 35 09 2f 2a |efine GT|40..5./*|
|00004760| 20 44 45 43 20 47 54 34 | 30 20 77 69 74 68 20 57 | DEC GT4|0 with W|
|00004770| 61 75 67 68 20 74 65 72 | 6d 69 6e 61 6c 09 70 72 |augh ter|minal.pr|
|00004780| 6f 67 72 61 6d 09 2a 2f | 0a 23 64 65 66 69 6e 65 |ogram.*/|.#define|
|00004790| 20 42 45 45 31 35 30 09 | 09 36 09 2f 2a 20 42 65 | BEE150.|.6./* Be|
|000047a0| 65 68 69 76 65 20 31 35 | 30 20 2a 2f 0a 23 64 65 |ehive 15|0 */.#de|
|000047b0| 66 69 6e 65 20 42 45 45 | 32 30 30 09 09 37 09 2f |fine BEE|200..7./|
|000047c0| 2a 20 42 65 65 68 69 76 | 65 20 32 30 30 20 2a 2f |* Beehiv|e 200 */|
|000047d0| 0a 23 64 65 66 69 6e 65 | 20 53 42 45 45 09 09 38 |.#define| SBEE..8|
|000047e0| 09 2f 2a 20 42 65 65 68 | 69 76 65 20 53 75 70 65 |./* Beeh|ive Supe|
|000047f0| 72 2d 42 65 65 20 2a 2f | 0a 23 64 65 66 69 6e 65 |r-Bee */|.#define|
|00004800| 20 53 4f 4c 09 09 39 09 | 2f 2a 20 53 6f 6c 20 65 | SOL..9.|/* Sol e|
|00004810| 6d 75 6c 61 74 69 6e 67 | 20 42 65 65 68 69 76 65 |mulating| Beehive|
|00004820| 20 32 30 30 20 2a 2f 0a | 23 64 65 66 69 6e 65 20 | 200 */.|#define |
|00004830| 48 41 5a 31 35 31 30 09 | 09 31 30 09 2f 2a 20 48 |HAZ1510.|.10./* H|
|00004840| 61 7a 65 6c 74 69 6e 65 | 20 31 35 30 30 20 73 65 |azeltine| 1500 se|
|00004850| 72 69 65 73 20 2a 2f 0a | 23 64 65 66 69 6e 65 20 |ries */.|#define |
|00004860| 43 47 09 09 31 31 09 2f | 2a 20 43 68 72 6f 6d 61 |CG..11./|* Chroma|
|00004870| 74 69 63 73 20 43 47 20 | 2a 2f 0a 23 64 65 66 69 |tics CG |*/.#defi|
|00004880| 6e 65 20 49 53 43 38 30 | 30 31 09 09 31 32 09 2f |ne ISC80|01..12./|
|00004890| 2a 20 49 53 43 20 38 30 | 30 31 20 63 6f 6c 6f 72 |* ISC 80|01 color|
|000048a0| 20 74 65 72 6d 69 6e 61 | 6c 20 2a 2f 0a 23 64 65 | termina|l */.#de|
|000048b0| 66 69 6e 65 20 41 44 4d | 33 41 09 09 31 33 09 2f |fine ADM|3A..13./|
|000048c0| 2a 20 4c 65 61 72 2d 53 | 69 65 67 6c 65 72 09 41 |* Lear-S|iegler.A|
|000048d0| 44 4d 20 33 41 20 2a 2f | 0a 23 64 65 66 69 6e 65 |DM 3A */|.#define|
|000048e0| 20 49 42 4d 09 09 31 34 | 09 2f 2a 20 49 42 4d 20 | IBM..14|./* IBM |
|000048f0| 33 31 30 31 20 2a 2f 0a | 23 64 65 66 69 6e 65 20 |3101 */.|#define |
|00004900| 41 4e 50 09 09 31 35 09 | 2f 2a 20 41 6c 6c 65 6e |ANP..15.|/* Allen|
|00004910| 20 26 20 50 61 75 6c 09 | 6d 6f 64 65 6c 20 31 09 | & Paul.|model 1.|
|00004920| 2a 2f 0a 23 64 65 66 69 | 6e 65 20 4e 45 54 52 4f |*/.#defi|ne NETRO|
|00004930| 4e 09 09 31 36 09 2f 2a | 20 4e 65 74 72 6f 6e 69 |N..16./*| Netroni|
|00004940| 63 73 20 2a 2f 0a 23 64 | 65 66 69 6e 65 20 48 31 |cs */.#d|efine H1|
|00004950| 39 09 09 31 37 09 2f 2a | 20 48 65 61 74 68 20 48 |9..17./*| Heath H|
|00004960| 31 39 2f 5a 65 6e 69 74 | 68 20 5a 31 39 09 2a 2f |19/Zenit|h Z19.*/|
|00004970| 0a 23 64 65 66 69 6e 65 | 20 54 52 53 38 30 09 09 |.#define| TRS80..|
|00004980| 31 38 09 2f 2a 20 52 61 | 64 69 6f 20 53 68 61 66 |18./* Ra|dio Shaf|
|00004990| 74 20 54 52 53 38 30 20 | 2a 2f 0a 23 64 65 66 69 |t TRS80 |*/.#defi|
|000049a0| 6e 65 20 48 50 32 31 09 | 09 31 39 09 2f 2a 20 48 |ne HP21.|.19./* H|
|000049b0| 65 77 6c 65 74 74 2d 50 | 61 63 6b 61 72 64 20 32 |ewlett-P|ackard 2|
|000049c0| 36 32 31 41 2f 50 20 2a | 2f 0a 23 64 65 66 69 6e |621A/P *|/.#defin|
|000049d0| 65 20 41 44 4d 33 31 09 | 09 32 30 09 2f 2a 20 4c |e ADM31.|.20./* L|
|000049e0| 65 61 72 2d 53 69 65 67 | 6c 65 72 09 41 44 4d 20 |ear-Sieg|ler.ADM |
|000049f0| 33 31 20 2a 2f 0a 23 64 | 65 66 69 6e 65 20 56 49 |31 */.#d|efine VI|
|00004a00| 32 30 30 09 09 32 31 09 | 2f 2a 20 56 49 73 75 61 |200..21.|/* VIsua|
|00004a10| 6c 20 32 30 30 20 74 65 | 72 6d 69 6e 61 6c 20 2a |l 200 te|rminal *|
|00004a20| 2f 0a 23 64 65 66 69 6e | 65 20 56 43 34 34 30 34 |/.#defin|e VC4404|
|00004a30| 09 09 32 32 09 2f 2a 20 | 56 6f 6c 6b 65 72 2d 43 |..22./* |Volker-C|
|00004a40| 72 61 69 67 09 34 34 30 | 34 20 2a 2f 0a 23 64 65 |raig.440|4 */.#de|
|00004a50| 66 69 6e 65 20 45 53 50 | 52 49 54 09 09 32 33 09 |fine ESP|RIT..23.|
|00004a60| 2f 2a 20 48 61 7a 65 6c | 74 69 6e 65 20 45 73 70 |/* Hazel|tine Esp|
|00004a70| 72 69 74 20 28 48 61 7a | 65 6c 74 69 6e 65 20 6d |rit (Haz|eltine m|
|00004a80| 6f 64 65 29 20 2a 2f 0a | 23 64 65 66 69 6e 65 20 |ode) */.|#define |
|00004a90| 54 53 31 09 09 32 34 09 | 2f 2a 20 46 61 6c 63 6f |TS1..24.|/* Falco|
|00004aa0| 20 54 53 2d 31 20 2a 2f | 0a 23 64 65 66 69 6e 65 | TS-1 */|.#define|
|00004ab0| 20 54 56 49 39 35 30 09 | 09 32 35 09 2f 2a 20 54 | TVI950.|.25./* T|
|00004ac0| 65 6c 65 76 69 64 65 6f | 20 39 35 30 20 2a 2f 0a |elevideo| 950 */.|
|00004ad0| 23 64 65 66 69 6e 65 20 | 56 49 35 30 09 09 32 36 |#define |VI50..26|
|00004ae0| 09 2f 2a 20 56 69 73 75 | 61 6c 20 35 30 20 2a 2f |./* Visu|al 50 */|
|00004af0| 0a 23 64 65 66 69 6e 65 | 20 56 49 33 30 30 09 09 |.#define| VI300..|
|00004b00| 32 37 09 2f 2a 20 56 69 | 73 75 61 6c 20 33 30 30 |27./* Vi|sual 300|
|00004b10| 09 2a 2f 0a 23 65 6e 64 | 69 66 0a 0a 2f 2a 20 53 |.*/.#end|if../* S|
|00004b20| 63 72 65 65 6e 20 64 65 | 73 69 67 6e 20 70 6f 73 |creen de|sign pos|
|00004b30| 69 74 69 6f 6e 73 20 2a | 2f 0a 23 64 65 66 69 6e |itions *|/.#defin|
|00004b40| 65 20 4e 41 4d 45 43 4f | 4c 09 09 35 09 2f 2a 20 |e NAMECO|L..5./* |
|00004b50| 63 6f 6c 75 6d 6e 20 74 | 6f 20 70 75 74 20 6d 61 |column t|o put ma|
|00004b60| 72 6b 20 6e 61 6d 65 20 | 69 6e 20 2a 2f 0a 23 64 |rk name |in */.#d|
|00004b70| 65 66 69 6e 65 20 42 41 | 52 43 4f 4c 09 09 36 09 |efine BA|RCOL..6.|
|00004b80| 2f 2a 20 63 6f 6c 75 6d | 6e 20 66 6f 72 20 22 7c |/* colum|n for "||
|00004b90| 22 20 64 69 76 69 64 65 | 72 20 2a 2f 0a 23 64 65 |" divide|r */.#de|
|00004ba0| 66 69 6e 65 20 50 4f 4f | 50 43 4f 4c 09 09 37 09 |fine POO|PCOL..7.|
|00004bb0| 2f 2a 20 63 6f 6c 75 6d | 6e 20 66 6f 72 20 74 65 |/* colum|n for te|
|00004bc0| 78 74 20 74 6f 20 73 74 | 61 72 74 20 69 6e 20 2a |xt to st|art in *|
|00004bd0| 2f 0a 0a 2f 2a 20 43 6f | 6e 74 72 6f 6c 20 63 68 |/../* Co|ntrol ch|
|00004be0| 61 72 61 63 74 65 72 73 | 20 2a 2f 0a 0a 2f 2a 20 |aracters| */../* |
|00004bf0| 4c 65 66 74 77 61 72 64 | 20 63 75 72 73 6f 72 20 |Leftward| cursor |
|00004c00| 6d 6f 74 69 6f 6e 20 2a | 2f 0a 23 64 65 66 69 6e |motion *|/.#defin|
|00004c10| 65 20 43 55 52 53 4f 52 | 5f 4c 45 46 54 09 09 43 |e CURSOR|_LEFT..C|
|00004c20| 54 52 4c 5f 48 09 2f 2a | 20 6c 65 66 74 09 6f 6e |TRL_H./*| left.on|
|00004c30| 65 20 63 6f 6c 75 6d 6e | 20 2a 2f 0a 23 64 65 66 |e column| */.#def|
|00004c40| 69 6e 65 20 54 41 42 5f | 4c 45 46 54 09 09 43 54 |ine TAB_|LEFT..CT|
|00004c50| 52 4c 5f 45 09 2f 2a 20 | 6c 65 66 74 09 6f 6e 65 |RL_E./* |left.one|
|00004c60| 20 74 61 62 09 73 74 6f | 70 20 2a 2f 0a 23 64 65 | tab.sto|p */.#de|
|00004c70| 66 69 6e 65 20 53 4b 49 | 50 5f 4c 45 46 54 09 09 |fine SKI|P_LEFT..|
|00004c80| 43 54 52 4c 5f 57 09 2f | 2a 20 67 6f 20 74 6f 20 |CTRL_W./|* go to |
|00004c90| 63 6f 6c 75 6d 6e 09 31 | 20 2a 2f 0a 23 64 65 66 |column.1| */.#def|
|00004ca0| 69 6e 65 20 53 43 41 4e | 5f 4c 45 46 54 09 09 43 |ine SCAN|_LEFT..C|
|00004cb0| 54 52 4c 5f 4c 09 2f 2a | 20 73 63 61 6e 09 6c 65 |TRL_L./*| scan.le|
|00004cc0| 66 74 20 66 6f 72 20 61 | 20 63 68 61 72 09 2a 2f |ft for a| char.*/|
|00004cd0| 0a 23 64 65 66 69 6e 65 | 20 47 5f 4c 45 46 54 09 |.#define| G_LEFT.|
|00004ce0| 09 09 43 54 52 4c 5f 55 | 09 2f 2a 20 65 72 61 73 |..CTRL_U|./* eras|
|00004cf0| 65 20 63 68 61 72 20 74 | 6f 20 6c 65 66 74 20 2a |e char t|o left *|
|00004d00| 2f 0a 23 64 65 66 69 6e | 65 20 47 5f 54 41 42 5f |/.#defin|e G_TAB_|
|00004d10| 4c 45 46 54 09 09 46 53 | 09 2f 2a 20 65 72 61 73 |LEFT..FS|./* eras|
|00004d20| 65 20 74 6f 20 70 72 65 | 76 20 74 61 62 20 73 74 |e to pre|v tab st|
|00004d30| 6f 70 20 2a 2f 0a 23 64 | 65 66 69 6e 65 20 4b 49 |op */.#d|efine KI|
|00004d40| 4c 4c 5f 4c 45 46 54 09 | 09 43 54 52 4c 5f 59 09 |LL_LEFT.|.CTRL_Y.|
|00004d50| 2f 2a 20 65 72 61 73 65 | 20 74 6f 20 63 6f 6c 75 |/* erase| to colu|
|00004d60| 6d 6e 20 31 20 2a 2f 0a | 23 64 65 66 69 6e 65 20 |mn 1 */.|#define |
|00004d70| 47 5f 53 43 41 4e 5f 4c | 45 46 54 09 09 43 54 52 |G_SCAN_L|EFT..CTR|
|00004d80| 4c 5f 4e 09 2f 2a 20 73 | 63 61 6e 09 6c 65 66 74 |L_N./* s|can.left|
|00004d90| 20 61 6e 64 20 65 72 61 | 73 65 20 2a 2f 0a 0a 2f | and era|se */../|
|00004da0| 2a 20 52 69 67 68 74 77 | 61 72 64 20 63 75 72 73 |* Rightw|ard curs|
|00004db0| 6f 72 20 6d 6f 74 69 6f | 6e 20 2a 2f 0a 23 64 65 |or motio|n */.#de|
|00004dc0| 66 69 6e 65 20 43 55 52 | 53 4f 52 5f 52 49 47 48 |fine CUR|SOR_RIGH|
|00004dd0| 54 09 09 43 54 52 4c 5f | 47 09 2f 2a 20 72 69 67 |T..CTRL_|G./* rig|
|00004de0| 68 74 20 6f 6e 65 20 63 | 6f 6c 75 6d 6e 20 2a 2f |ht one c|olumn */|
|00004df0| 0a 23 64 65 66 69 6e 65 | 20 54 41 42 5f 52 49 47 |.#define| TAB_RIG|
|00004e00| 48 54 09 09 43 54 52 4c | 5f 49 09 2f 2a 20 72 69 |HT..CTRL|_I./* ri|
|00004e10| 67 68 74 20 6f 6e 65 20 | 74 61 62 20 73 74 6f 70 |ght one |tab stop|
|00004e20| 20 2a 2f 0a 23 64 65 66 | 69 6e 65 20 53 4b 49 50 | */.#def|ine SKIP|
|00004e30| 5f 52 49 47 48 54 09 09 | 43 54 52 4c 5f 4f 09 2f |_RIGHT..|CTRL_O./|
|00004e40| 2a 20 67 6f 20 74 6f 20 | 65 6e 64 20 6f 66 09 6c |* go to |end of.l|
|00004e50| 69 6e 65 20 2a 2f 0a 23 | 69 66 64 65 66 20 47 49 |ine */.#|ifdef GI|
|00004e60| 54 56 41 58 0a 23 64 65 | 66 69 6e 65 20 53 43 41 |TVAX.#de|fine SCA|
|00004e70| 4e 5f 52 49 47 48 54 09 | 09 43 54 52 4c 5f 53 09 |N_RIGHT.|.CTRL_S.|
|00004e80| 2f 2a 20 73 63 61 6e 09 | 72 69 67 68 74 20 66 6f |/* scan.|right fo|
|00004e90| 72 20 63 68 61 72 20 2a | 2f 0a 23 65 6c 73 65 0a |r char *|/.#else.|
|00004ea0| 23 64 65 66 69 6e 65 20 | 53 43 41 4e 5f 52 49 47 |#define |SCAN_RIG|
|00004eb0| 48 54 09 09 43 54 52 4c | 5f 4a 09 2f 2a 20 73 63 |HT..CTRL|_J./* sc|
|00004ec0| 61 6e 09 72 69 67 68 74 | 20 66 6f 72 20 63 68 61 |an.right| for cha|
|00004ed0| 72 20 2a 2f 0a 23 65 6e | 64 69 66 0a 23 64 65 66 |r */.#en|dif.#def|
|00004ee0| 69 6e 65 20 47 5f 52 49 | 47 48 54 09 09 09 43 54 |ine G_RI|GHT...CT|
|00004ef0| 52 4c 5f 52 09 2f 2a 20 | 65 72 61 73 65 20 6f 76 |RL_R./* |erase ov|
|00004f00| 65 72 20 63 75 72 73 6f | 72 20 2a 2f 0a 23 64 65 |er curso|r */.#de|
|00004f10| 66 69 6e 65 20 47 5f 54 | 41 42 5f 52 49 47 48 54 |fine G_T|AB_RIGHT|
|00004f20| 09 09 52 53 09 2f 2a 20 | 65 72 61 73 65 20 74 6f |..RS./* |erase to|
|00004f30| 20 6e 65 78 74 20 74 61 | 62 20 2a 2f 0a 23 64 65 | next ta|b */.#de|
|00004f40| 66 69 6e 65 20 4b 49 4c | 4c 5f 52 49 47 48 54 09 |fine KIL|L_RIGHT.|
|00004f50| 09 43 54 52 4c 5f 54 09 | 2f 2a 20 65 72 61 73 65 |.CTRL_T.|/* erase|
|00004f60| 20 74 6f 20 65 6e 64 09 | 6f 66 20 6c 69 6e 65 09 | to end.|of line.|
|00004f70| 2a 2f 0a 23 64 65 66 69 | 6e 65 20 47 5f 53 43 41 |*/.#defi|ne G_SCA|
|00004f80| 4e 5f 52 49 47 48 54 09 | 09 43 54 52 4c 5f 42 09 |N_RIGHT.|.CTRL_B.|
|00004f90| 2f 2a 20 73 63 61 6e 09 | 72 69 67 68 74 20 61 6e |/* scan.|right an|
|00004fa0| 64 20 65 72 61 73 65 09 | 2a 2f 0a 0a 2f 2a 20 4c |d erase.|*/../* L|
|00004fb0| 69 6e 65 09 74 65 72 6d | 69 6e 61 74 69 6f 6e 20 |ine.term|ination |
|00004fc0| 2a 2f 0a 23 64 65 66 69 | 6e 65 20 54 5f 53 4b 49 |*/.#defi|ne T_SKI|
|00004fd0| 50 5f 52 49 47 48 54 09 | 09 43 54 52 4c 5f 56 09 |P_RIGHT.|.CTRL_V.|
|00004fe0| 2f 2a 20 73 6b 69 70 09 | 74 6f 20 65 6e 64 20 61 |/* skip.|to end a|
|00004ff0| 6e 64 20 74 65 72 6d 69 | 6e 61 74 65 20 2a 2f 0a |nd termi|nate */.|
|00005000| 23 64 65 66 69 6e 65 20 | 54 5f 4b 49 4c 4c 5f 52 |#define |T_KILL_R|
|00005010| 49 47 48 54 09 09 43 52 | 09 2f 2a 20 4b 49 4c 4c |IGHT..CR|./* KILL|
|00005020| 5f 52 49 47 48 54 2c 09 | 53 4b 49 50 5f 52 49 47 |_RIGHT,.|SKIP_RIG|
|00005030| 48 54 5f 41 4e 44 5f 54 | 45 52 4d 20 2a 2f 0a 23 |HT_AND_T|ERM */.#|
|00005040| 64 65 66 69 6e 65 20 46 | 55 4e 4e 59 09 09 09 43 |define F|UNNY...C|
|00005050| 54 52 4c 5f 46 09 2f 2a | 20 74 61 6b 65 09 66 75 |TRL_F./*| take.fu|
|00005060| 6e 6e 79 20 72 65 74 75 | 72 6e 20 2a 2f 0a 23 64 |nny retu|rn */.#d|
|00005070| 65 66 69 6e 65 20 43 55 | 52 53 4f 52 5f 55 50 09 |efine CU|RSOR_UP.|
|00005080| 09 43 54 52 4c 5f 44 09 | 2f 2a 20 6d 6f 76 65 09 |.CTRL_D.|/* move.|
|00005090| 75 70 20 6f 6e 65 20 6c | 69 6e 65 20 2a 2f 0a 23 |up one l|ine */.#|
|000050a0| 64 65 66 69 6e 65 20 43 | 55 52 53 4f 52 5f 44 4f |define C|URSOR_DO|
|000050b0| 57 4e 09 09 43 54 52 4c | 5f 4b 09 2f 2a 20 6d 6f |WN..CTRL|_K./* mo|
|000050c0| 76 65 09 64 6f 77 6e 20 | 6f 6e 65 20 6c 69 6e 65 |ve.down |one line|
|000050d0| 20 2a 2f 0a 23 64 65 66 | 69 6e 65 20 43 55 52 53 | */.#def|ine CURS|
|000050e0| 4f 52 5f 53 41 4d 45 09 | 09 43 54 52 4c 5f 4a 09 |OR_SAME.|.CTRL_J.|
|000050f0| 2f 2a 20 6c 65 61 76 65 | 20 63 75 72 73 6f 72 09 |/* leave| cursor.|
|00005100| 6f 6e 20 73 61 6d 65 09 | 6c 69 6e 65 20 2a 2f 0a |on same.|line */.|
|00005110| 0a 2f 2a 20 49 6e 73 65 | 72 74 69 6f 6e 20 2a 2f |./* Inse|rtion */|
|00005120| 0a 23 64 65 66 69 6e 65 | 20 49 4e 53 45 52 54 5f |.#define| INSERT_|
|00005130| 42 4c 41 4e 4b 09 09 43 | 54 52 4c 5f 43 09 2f 2a |BLANK..C|TRL_C./*|
|00005140| 20 69 6e 73 65 72 74 20 | 6f 6e 65 20 62 6c 61 6e | insert |one blan|
|00005150| 6b 20 2a 2f 0a 23 64 65 | 66 69 6e 65 20 49 4e 53 |k */.#de|fine INS|
|00005160| 45 52 54 5f 54 41 42 09 | 09 43 54 52 4c 5f 58 09 |ERT_TAB.|.CTRL_X.|
|00005170| 2f 2a 20 69 6e 73 65 72 | 74 20 62 6c 61 6e 6b 73 |/* inser|t blanks|
|00005180| 20 74 6f 20 6e 65 78 74 | 20 74 61 62 20 2a 2f 0a | to next| tab */.|
|00005190| 23 64 65 66 69 6e 65 20 | 49 4e 53 45 52 54 5f 4e |#define |INSERT_N|
|000051a0| 45 57 4c 49 4e 45 09 09 | 55 53 09 2f 2a 20 69 6e |EWLINE..|US./* in|
|000051b0| 73 65 72 74 20 61 20 6e | 65 77 6c 69 6e 65 20 2a |sert a n|ewline *|
|000051c0| 2f 0a 0a 2f 2a 20 4d 69 | 73 63 65 6c 6c 61 6e 79 |/../* Mi|scellany|
|000051d0| 20 2a 2f 0a 23 64 65 66 | 69 6e 65 20 54 4f 47 47 | */.#def|ine TOGG|
|000051e0| 4c 45 5f 49 4e 53 45 52 | 54 5f 4d 4f 44 45 09 43 |LE_INSER|T_MODE.C|
|000051f0| 54 52 4c 5f 41 09 2f 2a | 20 74 6f 67 67 6c 65 20 |TRL_A./*| toggle |
|00005200| 69 6e 73 65 72 74 20 6d | 6f 64 65 20 66 6c 61 67 |insert m|ode flag|
|00005210| 20 2a 2f 0a 23 64 65 66 | 69 6e 65 20 53 48 49 46 | */.#def|ine SHIF|
|00005220| 54 5f 43 41 53 45 09 09 | 43 54 52 4c 5f 5a 09 2f |T_CASE..|CTRL_Z./|
|00005230| 2a 20 74 6f 67 67 6c 65 | 20 63 61 73 65 20 6d 61 |* toggle| case ma|
|00005240| 70 70 69 6e 67 20 66 6c | 61 67 20 2a 2f 0a 23 64 |pping fl|ag */.#d|
|00005250| 65 66 69 6e 65 20 4b 49 | 4c 4c 5f 41 4c 4c 09 09 |efine KI|LL_ALL..|
|00005260| 44 45 4c 09 2f 2a 20 65 | 72 61 73 65 20 65 6e 74 |DEL./* e|rase ent|
|00005270| 69 72 65 09 6c 69 6e 65 | 20 2a 2f 0a 23 69 66 64 |ire.line| */.#ifd|
|00005280| 65 66 20 47 49 54 56 41 | 58 0a 23 64 65 66 69 6e |ef GITVA|X.#defin|
|00005290| 65 20 46 49 58 5f 53 43 | 52 45 45 4e 09 09 43 54 |e FIX_SC|REEN..CT|
|000052a0| 52 4c 5f 51 09 2f 2a 20 | 63 6c 65 61 72 20 61 6e |RL_Q./* |clear an|
|000052b0| 64 20 72 65 73 74 6f 72 | 65 20 73 63 72 65 65 6e |d restor|e screen|
|000052c0| 20 2a 2f 0a 23 65 6c 73 | 65 0a 23 64 65 66 69 6e | */.#els|e.#defin|
|000052d0| 65 20 46 49 58 5f 53 43 | 52 45 45 4e 09 09 47 53 |e FIX_SC|REEN..GS|
|000052e0| 09 2f 2a 20 63 6c 65 61 | 72 20 61 6e 64 20 72 65 |./* clea|r and re|
|000052f0| 73 74 6f 72 65 20 73 63 | 72 65 65 6e 20 2a 2f 0a |store sc|reen */.|
|00005300| 23 65 6e 64 69 66 0a 0a | 2f 2a 20 46 75 6e 63 74 |#endif..|/* Funct|
|00005310| 69 6f 6e 20 66 6f 72 20 | 6d 6f 76 69 6e 67 20 61 |ion for |moving a|
|00005320| 72 6f 75 6e 64 20 74 68 | 65 20 62 75 66 66 65 72 |round th|e buffer|
|00005330| 2c 20 65 69 74 68 65 72 | 20 73 74 79 6c 65 20 6c |, either| style l|
|00005340| 69 6e 65 20 68 61 6e 64 | 6c 69 6e 67 3a 20 2a 2f |ine hand|ling: */|
|00005350| 0a 23 69 66 64 65 66 20 | 4f 4c 44 5f 53 43 52 41 |.#ifdef |OLD_SCRA|
|00005360| 54 43 48 0a 23 64 65 66 | 69 6e 65 20 4e 45 58 54 |TCH.#def|ine NEXT|
|00005370| 4c 49 4e 45 28 6b 29 09 | 28 28 6b 29 20 2d 3e 20 |LINE(k).|((k) -> |
|00005380| 4e 65 78 74 6c 69 6e 65 | 29 0a 23 65 6c 73 65 0a |Nextline|).#else.|
|00005390| 23 64 65 66 69 6e 65 20 | 4e 45 58 54 4c 49 4e 45 |#define |NEXTLINE|
|000053a0| 28 6b 29 09 28 28 28 6b | 29 20 3c 20 26 42 75 66 |(k).(((k|) < &Buf|
|000053b0| 5b 4c 61 73 74 6c 6e 5d | 29 20 3f 20 28 6b 29 20 |[Lastln]|) ? (k) |
|000053c0| 2b 20 31 20 3a 20 4c 69 | 6e 65 30 29 0a 23 65 6e |+ 1 : Li|ne0).#en|
|000053d0| 64 69 66 0a 53 48 41 52 | 5f 45 4f 46 0a 66 69 0a |dif.SHAR|_EOF.fi.|
|000053e0| 65 63 68 6f 20 73 68 61 | 72 3a 20 22 65 78 74 72 |echo sha|r: "extr|
|000053f0| 61 63 74 69 6e 67 20 27 | 6d 34 6d 75 6e 67 65 27 |acting '|m4munge'|
|00005400| 22 20 27 28 35 34 38 20 | 63 68 61 72 61 63 74 65 |" '(548 |characte|
|00005410| 72 73 29 27 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |rs)'.if |test -f |
|00005420| 27 6d 34 6d 75 6e 67 65 | 27 0a 74 68 65 6e 0a 09 |'m4munge|'.then..|
|00005430| 65 63 68 6f 20 73 68 61 | 72 3a 20 22 77 69 6c 6c |echo sha|r: "will|
|00005440| 20 6e 6f 74 20 6f 76 65 | 72 2d 77 72 69 74 65 20 | not ove|r-write |
|00005450| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 27 6d |existing| file 'm|
|00005460| 34 6d 75 6e 67 65 27 22 | 0a 65 6c 73 65 0a 63 61 |4munge'"|.else.ca|
|00005470| 74 20 3c 3c 20 5c 53 48 | 41 52 5f 45 4f 46 20 3e |t << \SH|AR_EOF >|
|00005480| 20 27 6d 34 6d 75 6e 67 | 65 27 0a 23 21 20 2f 62 | 'm4mung|e'.#! /b|
|00005490| 69 6e 2f 73 68 0a 23 20 | 6d 34 6d 75 6e 67 65 20 |in/sh.# |m4munge |
|000054a0| 2d 2d 2d 20 74 61 6b 65 | 20 77 68 61 74 20 74 68 |--- take| what th|
|000054b0| 65 20 27 77 68 65 72 65 | 27 20 63 6f 6d 6d 61 6e |e 'where|' comman|
|000054c0| 64 20 70 72 6f 64 75 63 | 65 73 2c 20 61 6e 64 20 |d produc|es, and |
|000054d0| 63 68 61 6e 67 65 20 69 | 74 20 66 6f 72 20 6d 34 |change i|t for m4|
|000054e0| 0a 0a 66 6f 72 20 69 20 | 69 6e 20 24 2a 0a 64 6f |..for i |in $*.do|
|000054f0| 0a 09 63 61 73 65 20 24 | 69 20 69 6e 0a 09 2d 44 |..case $|i in..-D|
|00005500| 55 53 47 29 09 09 65 63 | 68 6f 20 27 64 65 66 69 |USG)..ec|ho 'defi|
|00005510| 6e 65 28 55 53 47 2c 59 | 45 53 29 27 09 09 3b 3b |ne(USG,Y|ES)'..;;|
|00005520| 0a 09 2d 55 55 53 47 29 | 09 09 65 63 68 6f 20 27 |..-UUSG)|..echo '|
|00005530| 64 65 66 69 6e 65 28 55 | 53 47 2c 4e 4f 29 27 09 |define(U|SG,NO)'.|
|00005540| 09 3b 3b 0a 09 2d 44 42 | 53 44 29 09 09 65 63 68 |.;;..-DB|SD)..ech|
|00005550| 6f 20 27 64 65 66 69 6e | 65 28 42 53 44 2c 59 45 |o 'defin|e(BSD,YE|
|00005560| 53 29 27 09 09 3b 3b 0a | 09 2d 55 42 53 44 29 09 |S)'..;;.|.-UBSD).|
|00005570| 09 65 63 68 6f 20 27 64 | 65 66 69 6e 65 28 42 53 |.echo 'd|efine(BS|
|00005580| 44 2c 4e 4f 29 27 09 09 | 3b 3b 0a 09 2d 44 42 53 |D,NO)'..|;;..-DBS|
|00005590| 44 34 5f 32 29 09 65 63 | 68 6f 20 27 64 65 66 69 |D4_2).ec|ho 'defi|
|000055a0| 6e 65 28 42 53 44 34 5f | 32 2c 59 45 53 29 27 09 |ne(BSD4_|2,YES)'.|
|000055b0| 3b 3b 0a 09 2d 55 42 53 | 44 34 5f 32 29 09 65 63 |;;..-UBS|D4_2).ec|
|000055c0| 68 6f 20 27 64 65 66 69 | 6e 65 28 42 53 44 34 5f |ho 'defi|ne(BSD4_|
|000055d0| 32 2c 4e 4f 29 27 09 3b | 3b 0a 09 2d 44 47 49 54 |2,NO)'.;|;..-DGIT|
|000055e0| 56 41 58 29 09 65 63 68 | 6f 20 27 64 65 66 69 6e |VAX).ech|o 'defin|
|000055f0| 65 28 47 49 54 56 41 58 | 2c 59 45 53 29 27 09 3b |e(GITVAX|,YES)'.;|
|00005600| 3b 0a 09 2d 55 47 49 54 | 56 41 58 29 09 65 63 68 |;..-UGIT|VAX).ech|
|00005610| 6f 20 27 64 65 66 69 6e | 65 28 47 49 54 56 41 58 |o 'defin|e(GITVAX|
|00005620| 2c 4e 4f 29 27 09 3b 3b | 0a 09 2d 44 53 35 52 32 |,NO)'.;;|..-DS5R2|
|00005630| 29 09 09 65 63 68 6f 20 | 27 64 65 66 69 6e 65 28 |)..echo |'define(|
|00005640| 53 35 52 32 2c 59 45 53 | 29 27 09 09 3b 3b 0a 09 |S5R2,YES|)'..;;..|
|00005650| 2d 55 53 35 52 32 29 09 | 09 65 63 68 6f 20 27 64 |-US5R2).|.echo 'd|
|00005660| 65 66 69 6e 65 28 53 35 | 52 32 2c 4e 4f 29 27 09 |efine(S5|R2,NO)'.|
|00005670| 09 3b 3b 0a 09 2d 44 48 | 41 52 44 5f 54 45 52 4d |.;;..-DH|ARD_TERM|
|00005680| 53 29 09 65 63 68 6f 20 | 27 64 65 66 69 6e 65 28 |S).echo |'define(|
|00005690| 48 41 52 44 5f 54 45 52 | 4d 53 2c 59 45 53 29 27 |HARD_TER|MS,YES)'|
|000056a0| 09 3b 3b 0a 09 65 73 61 | 63 0a 64 6f 6e 65 0a 53 |.;;..esa|c.done.S|
|000056b0| 48 41 52 5f 45 4f 46 0a | 63 68 6d 6f 64 20 2b 78 |HAR_EOF.|chmod +x|
|000056c0| 20 27 6d 34 6d 75 6e 67 | 65 27 0a 66 69 0a 65 63 | 'm4mung|e'.fi.ec|
|000056d0| 68 6f 20 73 68 61 72 3a | 20 22 65 78 74 72 61 63 |ho shar:| "extrac|
|000056e0| 74 69 6e 67 20 27 77 68 | 65 72 65 27 22 20 27 28 |ting 'wh|ere'" '(|
|000056f0| 31 32 36 33 20 63 68 61 | 72 61 63 74 65 72 73 29 |1263 cha|racters)|
|00005700| 27 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 77 68 |'.if tes|t -f 'wh|
|00005710| 65 72 65 27 0a 74 68 65 | 6e 0a 09 65 63 68 6f 20 |ere'.the|n..echo |
|00005720| 73 68 61 72 3a 20 22 77 | 69 6c 6c 20 6e 6f 74 20 |shar: "w|ill not |
|00005730| 6f 76 65 72 2d 77 72 69 | 74 65 20 65 78 69 73 74 |over-wri|te exist|
|00005740| 69 6e 67 20 66 69 6c 65 | 20 27 77 68 65 72 65 27 |ing file| 'where'|
|00005750| 22 0a 65 6c 73 65 0a 63 | 61 74 20 3c 3c 20 5c 53 |".else.c|at << \S|
|00005760| 48 41 52 5f 45 4f 46 20 | 3e 20 27 77 68 65 72 65 |HAR_EOF |> 'where|
|00005770| 27 0a 23 21 20 2f 62 69 | 6e 2f 73 68 0a 0a 23 20 |'.#! /bi|n/sh..# |
|00005780| 77 68 65 72 65 20 2d 2d | 2d 20 73 68 65 6c 6c 20 |where --|- shell |
|00005790| 66 69 6c 65 20 74 6f 20 | 64 65 74 65 72 6d 69 6e |file to |determin|
|000057a0| 65 20 77 68 61 74 20 6b | 69 6e 64 20 6f 66 20 65 |e what k|ind of e|
|000057b0| 6e 76 69 72 6f 6e 6d 65 | 6e 74 20 77 65 20 61 72 |nvironme|nt we ar|
|000057c0| 65 20 69 6e 0a 0a 69 66 | 20 74 65 73 74 20 2d 72 |e in..if| test -r|
|000057d0| 20 2f 62 69 6e 2f 75 6e | 69 76 65 72 73 65 09 23 | /bin/un|iverse.#|
|000057e0| 20 6f 6e 20 61 20 70 79 | 72 61 6d 69 64 0a 74 68 | on a py|ramid.th|
|000057f0| 65 6e 0a 09 4f 50 41 54 | 48 3d 24 50 41 54 48 0a |en..OPAT|H=$PATH.|
|00005800| 09 50 41 54 48 3d 2f 62 | 69 6e 0a 09 63 61 73 65 |.PATH=/b|in..case|
|00005810| 20 60 75 6e 69 76 65 72 | 73 65 60 20 69 6e 09 23 | `univer|se` in.#|
|00005820| 20 75 6e 69 76 65 72 73 | 65 20 69 73 20 64 75 6d | univers|e is dum|
|00005830| 62 2c 20 6c 6f 6f 6b 69 | 6e 67 20 6f 6e 6c 79 20 |b, looki|ng only |
|00005840| 61 74 20 61 72 67 76 5b | 30 5d 0a 09 61 74 74 29 |at argv[|0]..att)|
|00005850| 09 65 63 68 6f 20 22 2d | 44 55 53 47 20 2d 55 42 |.echo "-|DUSG -UB|
|00005860| 53 44 20 2d 55 42 53 44 | 34 5f 32 22 0a 09 09 69 |SD -UBSD|4_2"...i|
|00005870| 66 20 67 72 65 70 20 4c | 4f 42 4c 4b 20 2f 75 73 |f grep L|OBLK /us|
|00005880| 72 2f 69 6e 63 6c 75 64 | 65 2f 73 79 73 2f 74 65 |r/includ|e/sys/te|
|00005890| 72 6d 69 6f 2e 68 20 3e | 20 2f 64 65 76 2f 6e 75 |rmio.h >| /dev/nu|
|000058a0| 6c 6c 0a 09 09 74 68 65 | 6e 0a 09 09 09 65 63 68 |ll...the|n....ech|
|000058b0| 6f 20 2d 44 53 35 52 32 | 0a 09 09 65 6c 73 65 0a |o -DS5R2|...else.|
|000058c0| 09 09 09 65 63 68 6f 20 | 2d 55 53 35 52 32 0a 09 |...echo |-US5R2..|
|000058d0| 09 66 69 0a 09 09 3b 3b | 0a 0a 09 75 63 62 29 09 |.fi...;;|...ucb).|
|000058e0| 65 63 68 6f 20 22 2d 55 | 55 53 47 20 2d 44 42 53 |echo "-U|USG -DBS|
|000058f0| 44 20 2d 44 42 53 44 34 | 5f 32 20 2d 55 53 35 52 |D -DBSD4|_2 -US5R|
|00005900| 32 22 0a 09 09 3b 3b 0a | 0a 09 2a 29 09 65 63 68 |2"...;;.|..*).ech|
|00005910| 6f 20 75 6e 6b 6e 6f 77 | 6e 20 6f 70 65 72 61 74 |o unknow|n operat|
|00005920| 69 6e 67 20 73 79 73 74 | 65 6d 21 20 31 3e 26 32 |ing syst|em! 1>&2|
|00005930| 0a 09 09 65 63 68 6f 20 | 22 2d 55 55 53 47 20 2d |...echo |"-UUSG -|
|00005940| 55 42 53 44 20 2d 55 42 | 53 44 34 5f 32 22 09 23 |UBSD -UB|SD4_2".#|
|00005950| 20 75 6e 64 65 66 69 6e | 65 20 74 68 65 6d 20 61 | undefin|e them a|
|00005960| 6c 6c 0a 09 09 65 63 68 | 6f 20 22 2d 55 53 35 52 |ll...ech|o "-US5R|
|00005970| 32 22 0a 09 09 3b 3b 0a | 09 65 73 61 63 0a 09 50 |2"...;;.|.esac..P|
|00005980| 41 54 48 3d 24 4f 50 41 | 54 48 0a 09 65 63 68 6f |ATH=$OPA|TH..echo|
|00005990| 20 2d 55 47 49 54 56 41 | 58 09 23 20 70 79 72 61 | -UGITVA|X.# pyra|
|000059a0| 6d 69 64 20 69 73 20 6e | 65 76 65 72 20 47 49 54 |mid is n|ever GIT|
|000059b0| 56 41 58 0a 65 6c 73 65 | 09 09 23 20 6f 6e 20 73 |VAX.else|..# on s|
|000059c0| 6f 6d 65 74 68 69 6e 67 | 20 74 68 61 74 20 69 73 |omething| that is|
|000059d0| 20 6e 6f 74 20 61 20 70 | 79 72 6d 61 69 64 0a 09 | not a p|yrmaid..|
|000059e0| 69 66 20 67 72 65 70 20 | 53 49 47 54 53 54 50 20 |if grep |SIGTSTP |
|000059f0| 2f 75 73 72 2f 69 6e 63 | 6c 75 64 65 2f 73 69 67 |/usr/inc|lude/sig|
|00005a00| 6e 61 6c 2e 68 20 3e 20 | 2f 64 65 76 2f 6e 75 6c |nal.h > |/dev/nul|
|00005a10| 6c 0a 09 74 68 65 6e 09 | 09 23 20 62 65 72 6b 65 |l..then.|.# berke|
|00005a20| 6c 65 79 20 75 6e 69 78 | 0a 09 09 69 66 20 74 65 |ley unix|...if te|
|00005a30| 73 74 20 2d 72 20 2f 75 | 73 72 2f 69 6e 63 6c 75 |st -r /u|sr/inclu|
|00005a40| 64 65 2f 77 68 6f 61 6d | 69 2e 68 09 23 20 34 2e |de/whoam|i.h.# 4.|
|00005a50| 31 0a 09 09 74 68 65 6e | 0a 09 09 09 65 63 68 6f |1...then|....echo|
|00005a60| 20 22 2d 55 55 53 47 20 | 2d 44 42 53 44 20 2d 55 | "-UUSG |-DBSD -U|
|00005a70| 42 53 44 34 5f 32 22 0a | 09 09 09 68 6f 73 74 3d |BSD4_2".|...host=|
|00005a80| 22 60 73 65 64 20 27 73 | 2f 5b 5e 5c 22 5d 2a 5c |"`sed 's|/[^\"]*\|
|00005a90| 22 5c 28 5b 5e 5c 22 5d | 2a 5c 29 5c 22 2f 5c 31 |"\([^\"]|*\)\"/\1|
|00005aa0| 2f 27 20 3c 20 2f 75 73 | 72 2f 69 6e 63 6c 75 64 |/' < /us|r/includ|
|00005ab0| 65 2f 77 68 6f 61 6d 69 | 2e 68 60 22 0a 09 09 65 |e/whoami|.h`"...e|
|00005ac0| 6c 73 65 09 09 09 09 09 | 23 20 34 2e 32 0a 09 09 |lse.....|# 4.2...|
|00005ad0| 09 65 63 68 6f 20 22 2d | 55 55 53 47 20 2d 44 42 |.echo "-|UUSG -DB|
|00005ae0| 53 44 20 2d 44 42 53 44 | 34 5f 32 22 0a 09 09 09 |SD -DBSD|4_2"....|
|00005af0| 68 6f 73 74 3d 60 68 6f | 73 74 6e 61 6d 65 60 0a |host=`ho|stname`.|
|00005b00| 09 09 66 69 0a 09 09 63 | 61 73 65 20 24 68 6f 73 |..fi...c|ase $hos|
|00005b10| 74 20 69 6e 0a 09 09 67 | 61 74 65 63 68 20 7c 20 |t in...g|atech | |
|00005b20| 5c 0a 09 09 67 74 2d 6e | 69 6d 62 75 73 20 7c 20 |\...gt-n|imbus | |
|00005b30| 6e 69 6d 62 75 73 20 7c | 20 5c 0a 09 09 67 74 2d |nimbus || \...gt-|
|00005b40| 63 69 72 72 75 73 20 7c | 20 63 69 72 72 75 73 20 |cirrus || cirrus |
|00005b50| 7c 20 5c 0a 09 09 67 74 | 2d 73 74 72 61 74 75 73 || \...gt|-stratus|
|00005b60| 20 7c 20 73 74 72 61 74 | 75 73 29 09 65 63 68 6f | | strat|us).echo|
|00005b70| 20 2d 44 47 49 54 56 41 | 58 0a 09 09 09 09 3b 3b | -DGITVA|X.....;;|
|00005b80| 0a 09 09 0a 09 09 2a 29 | 09 65 63 68 6f 20 2d 55 |......*)|.echo -U|
|00005b90| 47 49 54 56 41 58 0a 09 | 09 09 3b 3b 0a 09 09 65 |GITVAX..|..;;...e|
|00005ba0| 73 61 63 0a 09 09 65 63 | 68 6f 20 2d 55 53 35 52 |sac...ec|ho -US5R|
|00005bb0| 32 0a 09 65 6c 73 65 09 | 09 09 23 20 41 54 54 20 |2..else.|..# ATT |
|00005bc0| 75 6e 69 78 0a 09 09 65 | 63 68 6f 20 22 2d 44 55 |unix...e|cho "-DU|
|00005bd0| 53 47 20 2d 55 42 53 44 | 20 2d 55 42 53 44 34 5f |SG -UBSD| -UBSD4_|
|00005be0| 32 22 0a 09 09 69 66 20 | 67 72 65 70 20 4c 4f 42 |2"...if |grep LOB|
|00005bf0| 4c 4b 20 2f 75 73 72 2f | 69 6e 63 6c 75 64 65 2f |LK /usr/|include/|
|00005c00| 73 79 73 2f 74 65 72 6d | 69 6f 2e 68 20 3e 20 2f |sys/term|io.h > /|
|00005c10| 64 65 76 2f 6e 75 6c 6c | 0a 09 09 74 68 65 6e 0a |dev/null|...then.|
|00005c20| 09 09 09 65 63 68 6f 20 | 2d 44 53 35 52 32 0a 09 |...echo |-DS5R2..|
|00005c30| 09 65 6c 73 65 0a 09 09 | 09 65 63 68 6f 20 2d 55 |.else...|.echo -U|
|00005c40| 53 35 52 32 0a 09 09 66 | 69 0a 09 09 65 63 68 6f |S5R2...f|i...echo|
|00005c50| 20 2d 55 47 49 54 56 41 | 58 0a 09 66 69 0a 66 69 | -UGITVA|X..fi.fi|
|00005c60| 0a 53 48 41 52 5f 45 4f | 46 0a 63 68 6d 6f 64 20 |.SHAR_EO|F.chmod |
|00005c70| 2b 78 20 27 77 68 65 72 | 65 27 0a 66 69 0a 65 63 |+x 'wher|e'.fi.ec|
|00005c80| 68 6f 20 73 68 61 72 3a | 20 22 65 78 74 72 61 63 |ho shar:| "extrac|
|00005c90| 74 69 6e 67 20 27 6d 61 | 6b 65 66 69 6c 65 27 22 |ting 'ma|kefile'"|
|00005ca0| 20 27 28 33 31 31 33 20 | 63 68 61 72 61 63 74 65 | '(3113 |characte|
|00005cb0| 72 73 29 27 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |rs)'.if |test -f |
|00005cc0| 27 6d 61 6b 65 66 69 6c | 65 27 0a 74 68 65 6e 0a |'makefil|e'.then.|
|00005cd0| 09 65 63 68 6f 20 73 68 | 61 72 3a 20 22 77 69 6c |.echo sh|ar: "wil|
|00005ce0| 6c 20 6e 6f 74 20 6f 76 | 65 72 2d 77 72 69 74 65 |l not ov|er-write|
|00005cf0| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 27 | existin|g file '|
|00005d00| 6d 61 6b 65 66 69 6c 65 | 27 22 0a 65 6c 73 65 0a |makefile|'".else.|
|00005d10| 63 61 74 20 3c 3c 20 5c | 53 48 41 52 5f 45 4f 46 |cat << \|SHAR_EOF|
|00005d20| 20 3e 20 27 6d 61 6b 65 | 66 69 6c 65 27 0a 23 20 | > 'make|file'.# |
|00005d30| 6d 61 6b 65 66 69 6c 65 | 20 66 6f 72 20 74 68 65 |makefile| for the|
|00005d40| 20 47 65 6f 72 67 69 61 | 20 54 65 63 68 20 53 63 | Georgia| Tech Sc|
|00005d50| 72 65 65 6e 20 45 64 69 | 74 6f 72 2c 20 27 73 65 |reen Edi|tor, 'se|
|00005d60| 27 0a 0a 48 45 41 44 45 | 52 53 3d 20 61 73 63 69 |'..HEADE|RS= asci|
|00005d70| 69 2e 68 20 63 6f 6e 73 | 74 64 65 66 73 2e 68 20 |i.h cons|tdefs.h |
|00005d80| 65 78 74 65 72 6e 2e 68 | 20 73 65 2e 68 0a 0a 53 |extern.h| se.h..S|
|00005d90| 52 43 53 3d 20 64 6f 63 | 6d 64 31 2e 63 20 64 6f |RCS= doc|md1.c do|
|00005da0| 63 6d 64 32 2e 63 20 65 | 64 69 74 2e 63 20 6d 61 |cmd2.c e|dit.c ma|
|00005db0| 69 6e 2e 63 20 6d 69 73 | 63 2e 63 20 73 63 72 61 |in.c mis|c.c scra|
|00005dc0| 74 63 68 2e 63 20 73 63 | 72 65 65 6e 2e 63 20 74 |tch.c sc|reen.c t|
|00005dd0| 65 72 6d 2e 63 0a 4f 42 | 4a 53 3d 20 64 6f 63 6d |erm.c.OB|JS= docm|
|00005de0| 64 31 2e 6f 20 64 6f 63 | 6d 64 32 2e 6f 20 65 64 |d1.o doc|md2.o ed|
|00005df0| 69 74 2e 6f 20 6d 61 69 | 6e 2e 6f 20 6d 69 73 63 |it.o mai|n.o misc|
|00005e00| 2e 6f 20 73 63 72 61 74 | 63 68 2e 6f 20 73 63 72 |.o scrat|ch.o scr|
|00005e10| 65 65 6e 2e 6f 20 74 65 | 72 6d 2e 6f 0a 0a 4c 49 |een.o te|rm.o..LI|
|00005e20| 42 52 41 52 49 45 53 3d | 20 6c 69 62 63 68 61 6e |BRARIES=| libchan|
|00005e30| 67 65 74 74 79 2f 6c 69 | 62 63 68 61 6e 67 65 74 |getty/li|bchanget|
|00005e40| 74 79 2e 61 20 70 61 74 | 2f 6c 69 62 70 61 74 2e |ty.a pat|/libpat.|
|00005e50| 61 0a 0a 4c 49 42 53 3d | 60 65 63 68 6f 20 24 28 |a..LIBS=|`echo $(|
|00005e60| 4c 49 42 52 41 52 49 45 | 53 29 3b 20 69 66 20 65 |LIBRARIE|S); if e|
|00005e70| 67 72 65 70 20 27 44 42 | 53 44 7c 55 53 35 52 32 |grep 'DB|SD|US5R2|
|00005e80| 27 20 66 6c 61 67 73 20 | 3e 20 2f 64 65 76 2f 6e |' flags |> /dev/n|
|00005e90| 75 6c 6c 3b 20 74 68 65 | 6e 20 65 63 68 6f 20 2d |ull; the|n echo -|
|00005ea0| 6c 74 65 72 6d 6c 69 62 | 3b 20 65 6c 73 65 20 65 |ltermlib|; else e|
|00005eb0| 63 68 6f 20 2d 6c 63 75 | 72 73 65 73 3b 20 66 69 |cho -lcu|rses; fi|
|00005ec0| 60 0a 0a 44 4f 43 53 3d | 20 6d 61 6b 65 66 69 6c |`..DOCS=| makefil|
|00005ed0| 65 20 52 45 41 44 4d 45 | 20 63 68 61 6e 67 65 73 |e README| changes|
|00005ee0| 2e 6d 61 64 65 0a 4d 41 | 4e 53 3d 20 73 63 72 69 |.made.MA|NS= scri|
|00005ef0| 70 74 73 65 2e 31 20 73 | 65 2e 31 0a 0a 43 46 4c |ptse.1 s|e.1..CFL|
|00005f00| 41 47 53 3d 20 2d 4f 20 | 60 63 61 74 20 66 6c 61 |AGS= -O |`cat fla|
|00005f10| 67 73 60 0a 4c 44 46 4c | 41 47 53 3d 0a 0a 23 20 |gs`.LDFL|AGS=..# |
|00005f20| 4f 6e 20 42 53 44 20 73 | 79 73 74 65 6d 73 2c 20 |On BSD s|ystems, |
|00005f30| 66 6f 72 63 65 20 6d 61 | 6b 65 20 74 6f 20 75 73 |force ma|ke to us|
|00005f40| 65 20 74 68 65 20 72 69 | 67 68 74 20 73 68 65 6c |e the ri|ght shel|
|00005f50| 6c 20 66 6f 72 20 63 6f | 6d 6d 61 6e 64 73 0a 53 |l for co|mmands.S|
|00005f60| 48 45 4c 4c 3d 2f 62 69 | 6e 2f 73 68 0a 0a 23 23 |HELL=/bi|n/sh..##|
|00005f70| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00005f80| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00005f90| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00005fa0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00005fb0| 23 23 23 23 23 23 23 23 | 23 0a 23 20 42 65 67 69 |########|#.# Begi|
|00005fc0| 6e 20 73 79 73 74 65 6d | 20 64 65 70 65 6e 64 61 |n system| dependa|
|00005fd0| 6e 74 20 6d 61 63 72 6f | 20 64 65 66 69 6e 69 74 |nt macro| definit|
|00005fe0| 69 6f 6e 73 0a 0a 23 20 | 50 52 20 69 73 20 74 6f |ions..# |PR is to|
|00005ff0| 20 70 72 69 6e 74 20 74 | 68 65 20 66 69 6c 65 73 | print t|he files|
|00006000| 20 6e 69 63 65 6c 79 2e | 20 20 55 73 65 20 70 72 | nicely.| Use pr|
|00006010| 20 2d 6e 20 69 66 20 61 | 76 61 69 6c 61 62 6c 65 | -n if a|vailable|
|00006020| 2c 20 6f 72 20 65 6c 73 | 65 20 6a 75 73 74 20 70 |, or els|e just p|
|00006030| 72 0a 23 20 49 20 75 73 | 65 20 61 20 70 72 69 76 |r.# I us|e a priv|
|00006040| 61 74 65 20 75 74 69 6c | 69 74 79 20 63 61 6c 6c |ate util|ity call|
|00006050| 65 64 20 27 70 72 74 27 | 0a 50 52 3d 70 72 74 0a |ed 'prt'|.PR=prt.|
|00006060| 0a 23 20 4e 52 4f 46 46 | 20 69 73 20 66 6f 72 20 |.# NROFF| is for |
|00006070| 6e 72 6f 66 66 69 6e 67 | 2e 20 20 77 65 20 75 73 |nroffing|. we us|
|00006080| 65 20 74 68 65 20 53 79 | 73 74 65 6d 20 56 20 6e |e the Sy|stem V n|
|00006090| 72 6f 66 66 2e 20 0a 4e | 52 4f 46 46 3d 2f 75 73 |roff. .N|ROFF=/us|
|000060a0| 72 2f 35 62 69 6e 2f 6e | 72 6f 66 66 0a 0a 23 20 |r/5bin/n|roff..# |
|000060b0| 4d 41 4e 53 45 43 20 69 | 73 20 77 68 65 72 65 20 |MANSEC i|s where |
|000060c0| 74 6f 20 70 75 74 20 74 | 68 65 20 6d 61 6e 75 61 |to put t|he manua|
|000060d0| 6c 20 70 61 67 65 73 2e | 20 55 73 65 20 27 6c 27 |l pages.| Use 'l'|
|000060e0| 20 66 6f 72 20 6c 6f 63 | 61 6c 2c 20 6f 74 68 65 | for loc|al, othe|
|000060f0| 72 77 69 73 65 20 27 31 | 27 2e 0a 4d 41 4e 53 45 |rwise '1|'..MANSE|
|00006100| 43 3d 6c 0a 0a 23 20 44 | 45 53 54 42 49 4e 20 69 |C=l..# D|ESTBIN i|
|00006110| 73 20 77 68 65 72 65 20 | 73 65 20 61 6e 64 20 73 |s where |se and s|
|00006120| 63 72 69 70 74 73 65 20 | 77 69 6c 6c 20 67 6f 0a |criptse |will go.|
|00006130| 44 45 53 54 42 49 4e 3d | 20 2f 75 73 72 2f 6c 6f |DESTBIN=| /usr/lo|
|00006140| 63 61 6c 2f 62 69 6e 0a | 0a 23 20 4f 57 4e 45 52 |cal/bin.|.# OWNER|
|00006150| 20 61 6e 64 20 47 52 4f | 55 50 20 61 72 65 20 74 | and GRO|UP are t|
|00006160| 68 65 20 6f 77 6e 65 72 | 20 61 6e 64 20 67 72 6f |he owner| and gro|
|00006170| 75 70 20 72 65 73 70 65 | 63 74 69 76 65 6c 79 0a |up respe|ctively.|
|00006180| 4f 57 4e 45 52 3d 20 72 | 6f 6f 74 0a 47 52 4f 55 |OWNER= r|oot.GROU|
|00006190| 50 3d 20 61 64 6d 69 6e | 0a 0a 23 20 49 4e 53 54 |P= admin|..# INST|
|000061a0| 41 4c 4c 20 69 73 20 74 | 68 65 20 70 72 6f 67 72 |ALL is t|he progr|
|000061b0| 61 6d 20 74 6f 20 64 6f | 20 74 68 65 20 69 6e 73 |am to do| the ins|
|000061c0| 74 61 6c 6c 61 74 69 6f | 6e 2c 20 75 73 65 20 63 |tallatio|n, use c|
|000061d0| 70 20 66 6f 72 20 72 65 | 61 6c 20 77 6f 72 6b 0a |p for re|al work.|
|000061e0| 49 4e 53 54 41 4c 4c 3d | 20 63 70 0a 0a 23 20 43 |INSTALL=| cp..# C|
|000061f0| 48 4f 57 4e 20 63 68 61 | 6e 67 65 73 20 74 68 65 |HOWN cha|nges the|
|00006200| 20 6f 77 6e 65 72 2e 0a | 43 48 4f 57 4e 3d 20 2f | owner..|CHOWN= /|
|00006210| 65 74 63 2f 63 68 6f 77 | 6e 0a 0a 23 20 43 48 47 |etc/chow|n..# CHG|
|00006220| 52 50 20 63 68 61 6e 67 | 65 73 20 74 68 65 20 67 |RP chang|es the g|
|00006230| 72 6f 75 70 2e 0a 43 48 | 47 52 50 3d 20 63 68 67 |roup..CH|GRP= chg|
|00006240| 72 70 0a 0a 23 20 43 48 | 4d 4f 44 20 77 69 6c 6c |rp..# CH|MOD will|
|00006250| 20 63 68 61 6e 67 65 20 | 70 65 72 6d 69 73 73 69 | change |permissi|
|00006260| 6f 6e 73 2e 0a 43 48 4d | 4f 44 3d 20 63 68 6d 6f |ons..CHM|OD= chmo|
|00006270| 64 0a 0a 23 23 23 23 23 | 23 23 23 0a 23 20 6f 74 |d..#####|###.# ot|
|00006280| 68 65 72 20 74 68 69 6e | 67 73 20 74 6f 20 63 68 |her thin|gs to ch|
|00006290| 61 6e 67 65 3a 0a 23 0a | 23 20 6f 6e 20 6e 6f 6e |ange:.#.|# on non|
|000062a0| 2d 42 53 44 20 73 79 73 | 74 65 6d 73 2c 20 63 68 |-BSD sys|tems, ch|
|000062b0| 61 6e 67 65 20 74 68 65 | 20 27 6c 70 72 27 20 62 |ange the| 'lpr' b|
|000062c0| 65 6c 6f 77 20 74 6f 20 | 27 6c 70 27 0a 23 23 23 |elow to |'lp'.###|
|000062d0| 23 23 23 23 23 0a 0a 23 | 20 42 65 67 69 6e 20 6c |#####..#| Begin l|
|000062e0| 69 73 74 20 6f 66 20 64 | 65 70 65 6e 64 65 6e 63 |ist of d|ependenc|
|000062f0| 69 65 73 0a 0a 61 6c 6c | 3a 20 73 65 20 73 63 72 |ies..all|: se scr|
|00006300| 69 70 74 73 65 20 73 65 | 2e 31 0a 09 40 65 63 68 |iptse se|.1..@ech|
|00006310| 6f 20 61 6c 6c 20 64 6f | 6e 65 0a 0a 73 65 3a 20 |o all do|ne..se: |
|00006320| 24 28 4f 42 4a 53 29 20 | 24 28 4c 49 42 52 41 52 |$(OBJS) |$(LIBRAR|
|00006330| 49 45 53 29 0a 09 24 28 | 43 43 29 20 24 28 4c 44 |IES)..$(|CC) $(LD|
|00006340| 46 4c 41 47 53 29 20 24 | 28 4f 42 4a 53 29 20 24 |FLAGS) $|(OBJS) $|
|00006350| 28 4c 49 42 53 29 20 2d | 6f 20 24 40 0a 0a 24 28 |(LIBS) -|o $@..$(|
|00006360| 4f 42 4a 53 29 3a 20 24 | 28 48 45 41 44 45 52 53 |OBJS): $|(HEADERS|
|00006370| 29 20 66 6c 61 67 73 0a | 0a 66 6c 61 67 73 3a 20 |) flags.|.flags: |
|00006380| 77 68 65 72 65 0a 09 77 | 68 65 72 65 20 3e 20 66 |where..w|here > f|
|00006390| 6c 61 67 73 0a 0a 6c 69 | 62 63 68 61 6e 67 65 74 |lags..li|bchanget|
|000063a0| 74 79 2f 6c 69 62 63 68 | 61 6e 67 65 74 74 79 2e |ty/libch|angetty.|
|000063b0| 61 3a 20 6c 69 62 63 68 | 61 6e 67 65 74 74 79 2f |a: libch|angetty/|
|000063c0| 63 68 61 6e 67 65 74 74 | 79 2e 63 0a 09 63 64 20 |changett|y.c..cd |
|000063d0| 6c 69 62 63 68 61 6e 67 | 65 74 74 79 3b 20 6d 61 |libchang|etty; ma|
|000063e0| 6b 65 0a 0a 70 61 74 2f | 6c 69 62 70 61 74 2e 61 |ke..pat/|libpat.a|
|000063f0| 3a 20 70 61 74 2f 70 61 | 74 2e 63 0a 09 63 64 20 |: pat/pa|t.c..cd |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.