[GRASS-dev] Re: [GRASS GIS] #757: WinGRASS: GUI window from cmd line

GRASS GIS trac at osgeo.org
Tue Sep 22 17:34:16 EDT 2009

#757: WinGRASS: GUI window from cmd line
  Reporter:  silviap       |       Owner:  grass-dev at lists.osgeo.org
      Type:  task          |      Status:  new                      
  Priority:  trivial       |   Milestone:  6.4.0                    
 Component:  wxGUI         |     Version:  6.4.0 RCs                
Resolution:                |    Keywords:                           
  Platform:  MSWindows XP  |         Cpu:  Unspecified              
Comment (by glynn):

 Replying to [comment:7 cnielsen]:

 > A bit of misunderstanding here. GRASS is starting fine, but once open
 the dialogs of individual modules aren't opening when they are typed into
 the shell. Instead if you type {{{ r.walk }}} or whatever, the module's
 ascii help text is output to the shell (as required arguments are missing,
 ie. output) instead of opening a dialog window where the arguments may be

 When you run the command without arguments, the GUI interface is only
 generated if stdin is a terminal, according to isatty().

 On Windows, isatty() only recognises the standard Windows Command Prompt
 as a terminal. The MSys terminal (rxvt) isn't considered a terminal by
 isatty() (AFAICT, any child processes will have their standard descriptors
 connected to pipes).

 I'm not sure that there is anything which can be done about this, other
 than skipping the isatty() check altogether on Windows (although that may
 be an acceptable solution; I don't know of a reason why the check is
 actually necessary).

 You can still force a GUI using the --ui switch.

Ticket URL: <https://trac.osgeo.org/grass/ticket/757#comment:9>
GRASS GIS <http://grass.osgeo.org>

More information about the grass-dev mailing list