<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head> <!-- <DEFANGED_STYLE type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
 --> --> </DEFANGED_STYLE><title>Add location name to GIS Manager window name and to
shell</title></head><body>
<div>Hi</div>
<div>Grass 6.0 is multisession and now it's possible to open more
locations but all windows and the prompt have the same name and it's
difficult to navigate between the windows.</div>
<div><br></div>
<div>It's useful to change these rows:</div>
<div><font size="-4" color="#000000"><br></font></div>
<blockquote><font color="#000000">lib/init/init.sh</font></blockquote>
<blockquote><font color="#000000"><br></font></blockquote>
<blockquote><font size="-4" color="#000000">row
625</font></blockquote>
<blockquote><font size="-4" color="#000000">-&nbsp;&nbsp; echo
&quot;GRASS GRASS_VERSION_NUMBER &gt; '&quot; &gt;&gt;
&quot;$cshrc&quot;</font></blockquote>
<blockquote><font size="-4" color="#000000">+&nbsp;&nbsp; echo
&quot;GRASS GRASS_VERSION_NUMBER - $LOCATION_NAME &gt; '&quot; &gt;&gt;
&quot;$cshrc&quot;</font></blockquote>
<blockquote><font size="-4" color="#000000"><br></font></blockquote>
<blockquote><font size="-4" color="#000000">row
667</font></blockquote>
<blockquote><font size="-4" color="#000000">-&nbsp;&nbsp; echo
&quot;PS1='GRASS GRASS_VERSION_NUMBER:\w &gt; '&quot; &gt;&gt;
&quot;$bashrc&quot;</font></blockquote>
<blockquote><font size="-4" color="#000000">+&nbsp;&nbsp; echo
&quot;PS1='GRASS GRASS_VERSION_NUMBER:\w - $LOCATION_NAME &gt; '&quot;
&gt;&gt; &quot;$bashrc&quot;</font></blockquote>
<blockquote><font size="-4" color="#000000"><br></font></blockquote>
<blockquote><font size="-4" color="#000000"><br></font></blockquote>
<blockquote><font size="-4"
color="#000000">display/d.m/d.m.tcl</font></blockquote>
<blockquote><font size="-4" color="#000000"><br></font></blockquote>
<blockquote><font size="-4" color="#000000">row
205</font></blockquote>
<blockquote><font size="-4" color="#000000">proc Dm::_create_intro { }
{</font></blockquote>
<blockquote><font size="-4" color="#000000">&nbsp;&nbsp;&nbsp; global
dmpath</font></blockquote>
<blockquote><font size="-4" color="#000000">&nbsp;&nbsp;&nbsp; global
GRASSVERSION</font></blockquote>
<blockquote><font size="-4" color="#000000">+&nbsp;&nbsp; global
location_name</font></blockquote>
<blockquote><font size="-4" color="#000000">&nbsp;&nbsp;&nbsp;
variable max_prgindic</font></blockquote>
<blockquote><font size="-4" color="#000000"><br></font></blockquote>
<blockquote><font size="-4" color="#000000">&nbsp;&nbsp;&nbsp; set top
[toplevel .intro -relief raised -borderwidth 2]</font></blockquote>
<blockquote><font size="-4" color="#000000"><br></font></blockquote>
<blockquote><font size="-4" color="#000000">&nbsp;&nbsp;&nbsp; wm
withdraw $top</font></blockquote>
<blockquote><font size="-4" color="#000000">&nbsp;&nbsp;&nbsp; wm
overrideredirect $top 1</font></blockquote>
<blockquote><font size="-4" color="#000000"><br></font></blockquote>
<blockquote><font size="-4" color="#000000">&nbsp;&nbsp;&nbsp; set
ximg&nbsp; [label $top.x -image [image create photo -file
&quot;$dmpath/intro.gif&quot;] ]</font></blockquote>
<blockquote><font size="-4" color="#000000"><br></font></blockquote>
<blockquote><font size="-4" color="#000000">&nbsp;&nbsp;&nbsp; set
frame [frame $ximg.f -background white]</font></blockquote>
<blockquote><font size="-4" color="#000000">-&nbsp;&nbsp;&nbsp; set
lab1&nbsp; [label $frame.lab1 -text &quot;GRASS $GRASSVERSION GIS
Manager&quot; \</font></blockquote>
<blockquote><font size="-4" color="#000000">+&nbsp;&nbsp;&nbsp; set
lab1&nbsp; [label $frame.lab1 -text &quot;GRASS $GRASSVERSION GIS
Manager - $location_name&quot; \</font></blockquote>
<blockquote><font size="-4" color="#000000"><br></font></blockquote>
<blockquote><font size="-4" color="#000000">row
846</font></blockquote>
<blockquote><font size="-4" color="#000000">proc main {argc argv}
{</font></blockquote>
<blockquote><font size="-4" color="#000000">&nbsp;&nbsp;&nbsp; global
auto_path</font></blockquote>
<blockquote><font size="-4" color="#000000">&nbsp;&nbsp;&nbsp; global
GRASSVERSION</font></blockquote>
<blockquote><font size="-4" color="#000000">+&nbsp;&nbsp; global
location_name</font></blockquote>
<blockquote><font size="-4" color="#000000"><br></font></blockquote>
<blockquote><font size="-4" color="#000000">&nbsp;&nbsp;&nbsp; wm
withdraw .</font></blockquote>
<blockquote><font size="-4" color="#000000">-&nbsp;&nbsp; wm title .
[G_msg &quot;GRASS $GRASSVERSION GIS
Manager&quot;]</font></blockquote>
<blockquote><font size="-4" color="#000000">+&nbsp;&nbsp; wm title .
[G_msg &quot;GRASS $GRASSVERSION GIS Manager -
$location_name&quot;]</font></blockquote>
<blockquote><br></blockquote>
<div>Also it's useful to add the location name to x0 (x1,x2,etc.)
monitor name in<font color="#000000">
display/drivers/XDRIVER/XDRIVER24/Graph_Set.c</font></div>
<div><br></div>
<div>Bye</div>
<x-sigsep><pre>-- 
</pre></x-sigsep>
<div><font face="Verdana" size="-4"
color="#000000"
>____________________________________________________________________<span
></span>____</font></div>
<div><font face="Courier New" size="-4"
color="#000000">||&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Lorenzo
Moretti&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e-mail:
lorenzo.moretti@bologna.enea.it&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></div
>
<div><font face="Courier New" size="-4" color="#000000">||/|/|&nbsp;
ENEA prot/idr&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Web:
http://wwwamb.bologna.enea.it/&nbsp;&nbsp;&nbsp;&nbsp;</font></div>
<div><font face="Courier New" size="-4" color="#000000">||&nbsp;&nbsp;
|&nbsp; via Don Fiammelli, 2&nbsp;&nbsp; FTP:
ftp://ftpamb.bologna.enea.it/&nbsp;(ris.)</font></div>
<div><font face="Courier New" size="-4" color="#000000">~~~~~~&nbsp;
40128 BOLOGNA - ITALY&nbsp; Ph: +39-0516098086&nbsp; Fax:
+39-0516098131</font></div>
<div><font face="Courier New" size="-4"
color="#000000"
>____________________________________________________________________<span
></span>____</font></div>
</body>
</html>