[GRASS5] open GRASS in own xterm

Justin Hickey jhickey at hpcc.nectec.or.th
Tue Mar 6 05:34:34 EST 2001


Hi Bernhard and Markus

Bernhard Reiter wrote:
> 
> On Mon, Mar 05, 2001 at 04:33:10PM +0000, Markus Neteler wrote:
> > On Mon, Mar 05, 2001 at 04:50:39PM +0100, Bernhard Reiter wrote:
> > > On Mon, Mar 05, 2001 at 04:24:56PM +0000, Markus Neteler wrote:
> 
> > > > as new users tend to start "grass5" with a double click in
> > > > a file explorer (especially the (former) Windows users) it
> > > > might be a good idea to start GRASS in an own "xterm" *if*
> > > > the DISPLAY variable is set (= Xwin running). This click-idea
> > > > of course doesn't currently work.
> 
> > > this is a task which the file manager has to solve.
> > > You can set the right options there.
> > > GRASS cannot do much about.
> > > (And it should not try.)
> 
> > What about users starting GRASS in
> > KDE-> K->execute
> > ?
> > Then GRASS crashes as well.
> 
> Well, it does not crash. KDE is starting it not correctly.
> Try to start gpg with KDE or any other command line tool.
> You can make KDE start it with a terminal window.
> We might add information for people so that KDE will recogise this
> in install packages, but I strongly vote against a dirty workaround.
> 
> > As GRASS needs a shell window, why not coding that?
> 
> Because GRASS does not even know how to get a shell windows in the
> environment. Standard terminals are gnome-terminal, xterm, rxvt,
> kterm...
> 
> It is a problem which just has not to be solved within GRASS.

For the new initialization code I was going to write after 5.0, I was
planning on implementing this. What I had planned was to use xterm by
default but allow users to set their own term program using an
environment variable if they want. I figured that since grass requires X
windows to run (required by d.mon) then this was a safe assumption to
make.

For grass5 -tcltk the GUI would start and it would create an xterm for
the grass shell. It would also provide a button to create another shell
if the first one is closed. I have tested this long ago and I can launch
the xterm from tcltkgrass.

For grass5 -text we can leave it as is but I was planning that the user
would not be allowed to start the GUI from this shell. They would have
to quit and run grass5 -tcltk. That is, the tcltkgrass command would
disappear.

Do you think this is feasible?

-- 
Sincerely,

Jazzman (a.k.a. Justin Hickey)  e-mail: jhickey at hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand
==================================================================
People who think they know everything are very irritating to those
of us who do.  ---Anonymous

Jazz and Trek Rule!!!
==================================================================

---------------------------------------- 
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'



More information about the grass-dev mailing list