[QGIS-trac] Re: [Quantum GIS] #1680: New GRASS shell does not display command gui

Quantum GIS qgis at qgis.org
Wed May 6 14:00:12 EDT 2009


#1680: New GRASS shell does not display command gui
-----------------------------------------------------+----------------------
        Reporter:  cgsbob                            |         Owner:  nobody
            Type:  bug                               |        Status:  new   
        Priority:  major: does not work as expected  |     Milestone:        
       Component:  GRASS                             |       Version:  HEAD  
      Resolution:                                    |      Keywords:        
Platform_version:                                    |      Platform:  Debian
        Must_fix:  No                                |   Status_info:  0     
-----------------------------------------------------+----------------------
Comment (by cgsbob):

 I decided to get brave and dive into the QGIS code :-)  I know...my
 changes are very basic.

 Anyways...I changed src/plugins/grass/qgsgrassshell.cpp so that I'm able
 to get the gui when I start a GRASS command without any arguments and I
 set the GIS_LOCK to the process id, so I can run GRASS' d.* commands.

 {{{
 Index: src/plugins/grass/qgsgrassshell.cpp
 ===================================================================
 --- src/plugins/grass/qgsgrassshell.cpp (revision 10746)
 +++ src/plugins/grass/qgsgrassshell.cpp (working copy)
 @@ -102,10 +102,11 @@

      // Set shell program enviroment variables
      env << "GRASS_MESSAGE_FORMAT=";
 -    env << "GRASS_UI_TERM=1";
 +    // env << "GRASS_UI_TERM=1";
      env << "GISRC_MODE_MEMORY";
      env << "PS1=GRASS > ";
      env << "TERM=vt100";
 +    env << "GIS_LOCK=$$";
      terminal->setEnvironment(env);

      // Look & Feel
 }}}

 Maybe I should submit a separate ticket and suggest that the GRASS Shell
 should have a configuration file that would allow GRASS power users to set
 up their own GRASS environment?

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/1680#comment:2>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list