[GRASS-user] r.out format
Tyler Smith
tyler.smith at mail.mcgill.ca
Thu Mar 8 09:14:22 EST 2007
On Thu, Mar 08, 2007 at 07:21:58AM +0000, Glynn Clements wrote:
>
> If you're using bash, there should be a .bash_history file in the
> mapset directory. Typing "history" within a GRASS session will display
> the history.
I have been using the history command, but I've got two
problems. First, I rip through 500 commands in pretty short order as I
experiment with different commands and options. Of course I should
increase the HISTFILESIZE, but I also have a problem figuring out the
results of those commands when they are displayed with no context to
suggest if they were correct when i used them the first time!
>
> I use XEmacs' shell-mode for everything except programs which require
> curses. Some tips if you want to go that route:
Wow, thanks for this! There's some very handy suggestions here.
>
> 1. export GRASS_PAGER=cat (no need to use "more" or "less" when you
> have unlimited scrollback).
>
> 2. export GRASS_MESSAGE_FORMAT=silent
>
> This only works in the most recent CVS version. It disables the
> percentage output, which would otherwise dumps lots of:
>
> 0%^H^H^H^H^H 3%^H^H^H^H^H ...
>
> into the buffer.
>
> 3. Pass the grass63 script the full path to the mapset directory, to
> skip the curses-based startup window.
>
> Alternatively, you can avoid using the grass63 script altogether. My
> ~/.bashrc sources ~/.bashrc.grass, which contains:
>
> export GISBASE=/opt/grass-6.3.cvs
> export GRASS_GNUPLOT='gnuplot -persist'
> export GRASS_WIDTH=640
> export GRASS_HEIGHT=480
> export GRASS_HTML_BROWSER=firefox
> export GRASS_PAGER=cat
> export GRASS_PERL=perl
> export GRASS_TCLSH=tclsh
> export GRASS_WISH=wish
>
> export PATH="$GISBASE/bin:$GISBASE/scripts:$PATH"
> export LD_LIBRARY_PATH="$GISBASE/lib"
> export GRASS_LD_LIBRARY_PATH="$LD_LIBRARY_PATH"
>
> export GIS_LOCK=$$
> export GRASS_VERSION="6.1.cvs"
>
> tmp=/tmp/grass6-"`whoami`"-$GIS_LOCK
> export GISRC="$tmp/gisrc"
> mkdir "$tmp"
> cp ~/.grassrc6 "$GISRC"
>
> This allows you to use GRASS commands in any shell; if your X startup
> sources ~/.bashrc, then you can run them directly from X programs,
> e.g. using M-! in XEmacs.
>
--
Regards,
Tyler Smith
More information about the grass-user
mailing list