eggert@ata.twinsun.com (Paul Eggert) (09/01/90)
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 <eggert@twinsun.com> # $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+"$@"}