#!/bin/sh
#
#  edimore -- use Edith as an alternative `pager'
#
#  This  file is (C) 1996 Annius Groenink/ZFC,  and is part of the Edith
#  Pro for X11 package.  Not to be distributed separately.
#

if [ "$PAGER" = "" -o "$PAGER" = "edimore" ]
then
    PAGER="more"
fi

if [ "$DISPLAY" = "" ]
then
   $PAGER $*
else
   tmpname=/tmp/edimore.$$

   cat /dev/null > $tmpname
   chmod 600 $tmpname
   cat $* >> $tmpname

   edith -c$tmpname

   rm $tmpname
fi

