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


Attachment: console_example2.diff
Description: Binary data









_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to