[GRASS-dev] a better console and better diff

Michael Barton michael.barton at asu.edu
Thu Dec 10 19:51:25 EST 2009


First, thanks to all who advised me on making a diff that actually  
patches correctly (I hope).

Here is a console with full autocomplete and calltips. For GRASS 6.5

I've put it on auto to show how it can work, but the autocompletion  
could move to control key combinations too.


--Type a grass command. When you get to the ".", it brings up an  
autocomplete list of relevant commands. Keep typing (or mouse up/down)  
until you find the one you want and hit return.

--Press <tab> to see full calltips of command syntax for each command  
entered (one command per line please)

--As you type the command arguments, hitting "=" and "," following an  
"=[string]" combination will bring up context-sensitive lists of  
relevant maps or other data sets (e.g. regions where appropriate).

--You can type ctrl-space to bring up a context sensitive list of maps  
for raster, vector, etc. at any place in the command.

--Pressing return on the command line will run it.

This will accept shell commands (redirects and pipes don't work but  
could), grass commands without arguments (brings up the GUI dialogs),  
and grass commands with the short form arguments (r.info mymap) as  
well as full grass commands with argument=value format.

****IMPORTANT WARNING***** Turn OFF the preferences/configuration for  
default raster color tables. This is causing a bug to affect any  
command entered from this console or the existing command prompt.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: console_example4.patch
Type: application/octet-stream
Size: 15707 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20091210/6b722a04/console_example4-0001.obj
-------------- next part --------------


============================

The following are the revised wxPython modules from which the diff is  
made. In your binary, they can drop in at...

$GISBASE/etc/wxpython/wxgui.py
$GISBASE/etc/wxpython/gui_modules/goutput.py


-------------- next part --------------
A non-text attachment was scrubbed...
Name: goutput.py
Type: text/x-python-script
Size: 43847 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20091210/6b722a04/goutput-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wxgui.py
Type: text/x-python-script
Size: 63573 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20091210/6b722a04/wxgui-0001.bin
-------------- next part --------------

____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University

Phone: 480-965-6262
Fax: 480-965-7671
www: www.public.asu.edu/~cmbarton, http://csdc.asu.edu









More information about the grass-dev mailing list