R-beta: pager/more
Herve Dreau
hdreau at worldnet.fr
Fri Apr 24 21:58:11 CEST 1998
PDB> Jim Lindsey <jlindsey at 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 at worldnet.fr dreau at 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 at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list