[GRASSLIST:2283] Re: Making better use of ~/.grassrc5

Eric G. Miller egm2 at jps.net
Sun Aug 5 21:46:24 EDT 2001


On Mon, Aug 06, 2001 at 10:32:56AM +0930, Conn Copas wrote:
> Rich Shepard <rshepard at appl-ecosys.com> writes:
> 
> >   I want to increast the default size of the graphic monitor using
> > MONITOR_WIDTH and MONITOR_HEIGHT. But, rather than setting them as global
> > environment variables in bash, I would like them to be active only when
> > GRASS is running.
> 
> Some years ago, I posted code to ensure that the aspect ratio of any new monitor 
> would automatically match that of the existing region, and that the monitor 
> would be of a sensible total size. I assume this is part of your motivation 
> here? Those mods were done by hacking the XDRIVER/IRIS display drivers, but it 
> occurs to me in retrospect that this could all be achieved with scripts. It 
> would basically involve setting up an alias such that before any monitor was 
> started, g.region would be run, the output would be parsed to extract ROWS and 
> COLS, and then the MONITOR_WIDTH and MONITOR_HEIGHT environment vars would be 
> set dynamically.
> 
> Now a question. Is the XDRIVER supposed to refresh itself after a manual 
> re-size? It never used to on my system, and I never established how much of that 
> was a local Xwindows configuration thing, and how much of it was an inherent 
> Grass limitation. 

It does in GRASS 5.0.  There are some hiccups about it, but it works
right most of the time.

-- 
Eric G. Miller <egm2 at jps.net>



More information about the grass-user mailing list