Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!seismo!mcvax!ukc!stc!ist!icdoc!iwm From: iwm@icdoc.UUCP Newsgroups: comp.os.vms Subject: Re: Version of "more" for VMS Message-ID: <524@ivax.doc.ic.ac.uk> Date: Fri, 28-Aug-87 15:44:01 EDT Article-I.D.: ivax.524 Posted: Fri Aug 28 15:44:01 1987 Date-Received: Tue, 1-Sep-87 04:12:00 EDT References: <119@rainy.atmos.washington.edu> Reply-To: iwm@doc.ic.ac.uk (Ian Moor) Organization: Dept. of Computing, Imperial College, London, UK. Lines: 34 Keywords: VMS, more In article <119@rainy.atmos.washington.edu> harry@rainy.atmos.washington.edu (Harry Edmon) writes: >Does anyone have a version of Unix "more" running under VMS? We are using a port of less as posted to comp.sources.unix. There were three problems in porting: 1. lseek VMS C runtime for lseek will only work properly on streamlf files. Solution - set the variable ispipe to be true unconditionally. People who want to poke about inside RMS can check to see if a file is streamlf. The effect of this is to restrict the range you can move about in the file. 2. regexp VMS doesnt have a regexp library. Solution - either use the version posted a while back or the GNU version or disable regular expression searches using the #defines in the source. 3. termcap VMS doesn't have termcap You can use the termcap functions in the library with DECSHELL v2.0 these seem from the manual to be a functional equivalent, down to file format of Unix termcap. Use the GNU termcap that comes with GNU Emacs. I have cobbled together a termcap that uses the SMG functions, its not a complete emulation, but works for less: I dont like the idea of having to maintain two databases TERMTABLE and TERMCAP. -- Ian W Moor UUCP: seismo!mcvax!ukc!icdoc!iwm ARPA: iwm%icdoc@ucl Department of Computing Whereat a great and far-off voice was heard, saying, Imperial College. Poop-poop-poopy, and it was even so; and the days 180 Queensgate of Poopy Panda were long in the land. London SW7 Uk.