Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!know!zaphod.mps.ohio-state.edu!wuarchive!rice!rice!sun-spots-request From: twinsun!ata!eggert@uunet.uu.net (Paul Eggert) Newsgroups: comp.sys.sun Subject: psman for those who lack ditroff (for OpenWindows 2) Keywords: Source Message-ID: <1990Oct7.233811.6815@rice.edu> Date: 7 Oct 90 21:30:00 GMT Sender: sun-spots-request@rice.edu Organization: Sun-Spots Lines: 38 Approved: Sun-Spots@rice.edu Originator: spots@walhalla.rice.edu X-Sun-Spots-Digest: Volume 9, Issue 316, message 35 The following 'psman' shell script is designed for OpenWindows 2 sites who lack ditroff. It is plug-compatible with the OW2 psman. This shell script is in the public domain. 'thack' is available from most comp.sources.misc servers (e.g. uunet). I believe the Rice server also has it. The latest version of thack is patch 6. #! /bin/sh # Display man pages on OpenWindows 2 using thack. # This command accepts the options of both pageview(1) and man(1); # pageview options, if any, must come first. # by Paul Eggert # $Id: psman,v 1.2 1990/08/31 21:01:57 eggert Exp $ pageview="pageview -mono" while : do case $1 in -display|-dpi|-geometry|-h|-w) pageview="$pageview $1 $2" shift; shift;; -left|-mono|-right|-upsidedown) pageview="$pageview $1" shift;; *) break;; esac done TCAT="sh -c 'thack <\$0 | $pageview -'" export TCAT exec man -t ${1+"$@"}