Article View: net.games.emp
Article #43local pager for info command
From: utzoodecvaxucbvaxucsfcglsdcarlru...
Date: Tue, 11 May 1982 00:29
Date: Tue, 11 May 1982 00:29
29 lines
1015 bytes
1015 bytes
Here is a little shell script that causes the empire
info command to use the preferred paging program.
Around here everyone uses the more program. In the
following shell script set the PAGER variable to
whichever your users prefer. In empglb.c set the
variable "nroffil" to EMPPATH(BIN/empnroff) and install
the following shell script there. Note that this may
only work on versions of Unix that support direct
execing of shell scripts (4.1bsd does, among others).
#! /bin/sh
PATH=/bin:/usr/bin:/usr/ucb
PAGER=more
args=""
for arg
do
case "${arg}" in
-s*) :
;;
*) args="${args} ${arg}"
;;
esac
done
eval exec nroff ${args} | ${PAGER}
Technical Details
Message-ID:
<bnews.sdcarl.291>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
From: utzoo!decvax!ucbvax!ucsfcgl!sdcarl!rusty Newsgroups: net.games.emp Title: local pager for info command Article-I.D.: sdcarl.291 Posted: Tue May 11 00:29:37 1982 Received: Wed May 12 00:43:25 1982 Subject: local pager for info command Date: Tue, 11 May 1982 00:29:37 +0000 Message-ID: <bnews.sdcarl.291>