<!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">- echo
"GRASS GRASS_VERSION_NUMBER > '" >>
"$cshrc"</font></blockquote>
<blockquote><font size="-4" color="#000000">+ echo
"GRASS GRASS_VERSION_NUMBER - $LOCATION_NAME > '" >>
"$cshrc"</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">- echo
"PS1='GRASS GRASS_VERSION_NUMBER:\w > '" >>
"$bashrc"</font></blockquote>
<blockquote><font size="-4" color="#000000">+ echo
"PS1='GRASS GRASS_VERSION_NUMBER:\w - $LOCATION_NAME > '"
>> "$bashrc"</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"> global
dmpath</font></blockquote>
<blockquote><font size="-4" color="#000000"> global
GRASSVERSION</font></blockquote>
<blockquote><font size="-4" color="#000000">+ global
location_name</font></blockquote>
<blockquote><font size="-4" color="#000000">
variable max_prgindic</font></blockquote>
<blockquote><font size="-4" color="#000000"><br></font></blockquote>
<blockquote><font size="-4" color="#000000"> 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"> wm
withdraw $top</font></blockquote>
<blockquote><font size="-4" color="#000000"> wm
overrideredirect $top 1</font></blockquote>
<blockquote><font size="-4" color="#000000"><br></font></blockquote>
<blockquote><font size="-4" color="#000000"> set
ximg [label $top.x -image [image create photo -file
"$dmpath/intro.gif"] ]</font></blockquote>
<blockquote><font size="-4" color="#000000"><br></font></blockquote>
<blockquote><font size="-4" color="#000000"> set
frame [frame $ximg.f -background white]</font></blockquote>
<blockquote><font size="-4" color="#000000">- set
lab1 [label $frame.lab1 -text "GRASS $GRASSVERSION GIS
Manager" \</font></blockquote>
<blockquote><font size="-4" color="#000000">+ set
lab1 [label $frame.lab1 -text "GRASS $GRASSVERSION GIS
Manager - $location_name" \</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"> global
auto_path</font></blockquote>
<blockquote><font size="-4" color="#000000"> global
GRASSVERSION</font></blockquote>
<blockquote><font size="-4" color="#000000">+ global
location_name</font></blockquote>
<blockquote><font size="-4" color="#000000"><br></font></blockquote>
<blockquote><font size="-4" color="#000000"> wm
withdraw .</font></blockquote>
<blockquote><font size="-4" color="#000000">- wm title .
[G_msg "GRASS $GRASSVERSION GIS
Manager"]</font></blockquote>
<blockquote><font size="-4" color="#000000">+ wm title .
[G_msg "GRASS $GRASSVERSION GIS Manager -
$location_name"]</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">|| Lorenzo
Moretti e-mail:
lorenzo.moretti@bologna.enea.it </font></div
>
<div><font face="Courier New" size="-4" color="#000000">||/|/|
ENEA prot/idr
Web:
http://wwwamb.bologna.enea.it/ </font></div>
<div><font face="Courier New" size="-4" color="#000000">||
| via Don Fiammelli, 2 FTP:
ftp://ftpamb.bologna.enea.it/ (ris.)</font></div>
<div><font face="Courier New" size="-4" color="#000000">~~~~~~
40128 BOLOGNA - ITALY Ph: +39-0516098086 Fax:
+39-0516098131</font></div>
<div><font face="Courier New" size="-4"
color="#000000"
>____________________________________________________________________<span
></span>____</font></div>
</body>
</html>