[GRASS-dev] GUI console example 2

Michael Barton michael.barton at asu.edu
Mon Dec 7 01:25:10 EST 2009


Here is a more developed version of the GUI console.

Integrating this diff in GRASS 6.5 (develbranch_6) will activate the  
current output window and make it an input console too. This also has  
command history and autocompletion for maps/data file entry.

History: press ctrl-up or ctrl-down arrows to move through the command  
history

Autocompletion: press ctrl-space when the cursor is positioned after  
an "=" (r.info map=^ for example). You'll get a list of maps/data  
elements. Use the arrow keys, mouse, or type the first few letters of  
a map name to scroll to the item you want. Press enter or click with a  
mouse to insert it.

Running commands: Place the cursor anywhere on a line with a command  
and press enter. The command will run. Non-interactive display  
commands (e.g., d.rast, d.grid, d.vect) will render in the display  
canvas and will be added to the layer tree for later manipulation. You  
can even position the cursor on commands echoed from using the menus,  
edit the command, press enter, and run the command again.

It does not yet incorporate Martin's GRASS command autocompletion, but  
these could be done as tooltips.

Michael


-------------- next part --------------
A non-text attachment was scrubbed...
Name: console_example2.diff
Type: application/octet-stream
Size: 8792 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20091206/a3f46ba1/console_example2.obj
-------------- next part --------------










More information about the grass-dev mailing list