X11 monitor characteristics

Michael Shapiro shapiro at zorro.cecer.army.mil
Sun Aug 9 16:45:58 EDT 1992


Get the new driver from moon.cecer.army.mil. It puts the monitor name
(x0, x1, etc) in the title of the window. Also it allows postioning and
sizing of the window (thru Unix env variables prior to running d.mon).

|
|
|We are running grass4.0 on Sparcstations under openwindows using the XDRIVER.
|
|Why do all the graphics windows opened by d.mon have the same name "GRASS 4.0"?
|This appears to be set through  ---#define WIN_NAME "GRASS 4.0"--- in a 
|couple of the XDRIVER programs.  One problem is that this makes identifying 
|windows when swapping between them fairly tedious.  However, I have a more 
|serious need which I wonder if anyone can suggest a fix for.   
|
|I am writing some graphics applications mostly using scripts and d.graph.
|This program uses x & y coordinates scaled to the window size, so if you 
|use it naively you end up drawing elliptical circles, etc.  
|
|In order to get over this I thought I could use 
|d.mon -p
|to find out the current monitor, and then 
|xwininfo -name window_name
|to find the dimensions of this monitor.  However, while the "name" reported by 
|d.mon is one of (x0, x1, ... x5), the "name" appearing in the bar on the 
|window, and the one understood by xwininfo, is always "GRASS 4.0".  How can 
|the grass name (x0, ... x5) be associated with the window of interest ???
|
|Thanks for your attention.
|
|
|_________________________________
|Dr Simon Cox			|
|				|
|Department of Earth Sciences	|
|Monash University		|
|Clayton  Vic  3168		| 
|Australia			|
|				|
|Phone (03) 565 5762		|
|Fax   (03) 565 5062		|
|________________________________|
|
|
|
|


-----------------------------------------------------------------
Michael Shapiro                        U.S. Army CERL                  
email:   shapiro at zorro.cecer.army.mil  Environmental Division          
phone:   (217) 352-6511  ext 526       P.O. Box 9005                   
fax:     (217) 373-7222                Champaign, Ill. 61826-9005
-----------------------------------------------------------------




More information about the grass-dev mailing list