Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!orion.oac.uci.edu!ucivax!ucla-cs!twinsun!usenet From: eggert@ata.twinsun.com (Paul Eggert) Newsgroups: comp.windows.news Subject: psman for those who lack ditroff (for OpenWindows 2) Message-ID: <1990Aug31.211405.2401@twinsun.com> Date: 31 Aug 90 21:14:05 GMT Sender: usenet@twinsun.com Organization: Twin Sun, Inc Lines: 37 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+"$@"}