Re: R-beta: pager/more

Herve Dreau (hdreau@worldnet.fr)
24 Apr 1998 21:58:11 +0200


To: r-help@stat.math.ethz.ch (r-help)
Subject: Re: R-beta: pager/more
From: Herve Dreau <hdreau@worldnet.fr>
Date: 24 Apr 1998 21:58:11 +0200
In-Reply-To: Peter Dalgaard BSA's message of "24 Apr 1998 10:06:08 +0200"


PDB> Jim Lindsey <jlindsey@luc.ac.be> writes:

PDB> What I normally do is to run R in an xterm with a scrollbar and
PDB> use that to go back. Alternatively, you can set PAGER=less, which
PDB> *can* go back on stdin but has this annoying screen-switch effect
PDB> where the information disappears just as you want to use it... Or
PDB> you can dump the "<" from $RHOME/cmd/pager, and suffer the
PDB> consequences.

In my cmd/pager I try

pager=${PAGER-"less -X"}

man less : 
-X     Disables sending  the  termcap  initialization  and
              deinitialization  strings to the terminal.  This is
              sometimes desirable if the deinitialization  string
              does   something  unnecessary,  like  clearing  the
              screen.

but in this case I lost the possibility of navigation in the help (I
got in echo the 'code' of the pressed key (ESC [A for up ...), but 
without R less -X work fine : you can navigate and you don't clear
your screen.

Also I use ESS with Xemacs [a separate frame with the help], or 
pager=xless [a separate window] with 
pager=${PAGER-"xless"}
if [ "$1" != "" ]
then exec $pager < $1& <----
else exec $pager
fi
So you can have more than one help session in the same time.

My 2 eurocentimes. 
-- 
Hervé Dréau Interne en Médecine
hdreau@worldnet.fr dreau@b3e.jussieu.fr
Médecine Linux Java

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._