[GRASS5] Need testers for tcltkgrass update for 5.7
glynn.clements at virgin.net
Sun Aug 15 20:26:33 EDT 2004
Michael Barton wrote:
> Finally, I'd like to add a 'quit GRASS' item to the menu, but can't figure
> out how to do this. Nothing I do seems to work. It either just quits tcltk
> or does nothing. Maybe it's not possible. Any suggestions?
I'm not sure that it's feasible. You could just kill the shell process
with a signal, but that might inhibit the usual shutdown sequence
(e.g. writing out the .bash_history file).
If you were willing to do without the shell altogether, you could
change Init.sh to run tcltkgrass in the foreground in place of the
shell. Then, exiting from tcltkgrass would automatically terminate the
Otherwise, the only reliable way to run an interactive shell such that
tcltkgrass could terminate it cleanly would be for tcltkgrass to
create a pseudo-tty and start the shell on the slave. Then, closing
the master will cause the shell to receive EOF. However, I don't think
that vanilla Tcl/Tk includes support for creating ptys.
Glynn Clements <glynn.clements at virgin.net>
More information about the grass-dev