On Thu, Oct 6, 2011 at 12:09 PM, Martin Landa <[email protected]>wrote:
> 2011/10/6 Rainer M Krug <[email protected]>: > > It would be really nice, if one could define a script (in a environment > > variable) which will be always executed if this event occurs. This could > > then easily be used to instruct an external viewer to e.g. redraw. > > possible solution would be to modify file defined by PROMPT_COMMAND. > > * check if any monitor is running `d.mon -p` > * check command and monitor content (if output map is drawn in the > monitor - d.mon -c), run `d.redraw` if desired > Sounds very interesting. > > It would be probably quite easy to implement in G7. > I just looked at grass 6.4 and it is working there as well - but I guess that $PROMT_COMMAND is not executed when I script GRASS from e.g. R. I'll look at it, Rainer > > Martin > > -- > Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa > -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax (F): +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: [email protected] Skype: RMkrug
_______________________________________________ grass-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-user
