[GRASS-dev] Re: winGRASS

Glynn Clements glynn at gclements.plus.com
Mon Dec 18 10:01:56 EST 2006


Moritz Lennert wrote:

> - trying to create a new location from a georeferenced file or from an
> EPSG code, I get:
> 
> couldn't execute "c:\grass\grass-6.3.cvs\etc\grass-xterm-wrapper": no such
> file or directory

> I imagine that wingrass should'nt even call grass-xterm-wrapper since we
> don't have an xterm, or ?

It may suffice to set GRASS_XTERM to a command which is compatible
with an xterm, e.g. a batch file which ignores everything before the
"-e" switch and runs the command which follows it in a Windows console
(e.g. using the "start" command).

Ideally, on Windows, grass-xterm-wrapper should be a .bat/.cmd script
which ignores GRASS_XTERM and does this automatically.

Programs which use a console for simple printf/fgets-style dialogue
should work in either a Windows console or rxvt (xterm, etc), but
programs which use pdcurses will only work in a console.

The Windows console (and DOS) have specific operations for setting
colours etc, whereas conventional terminals (and Unix curses
implementations) use escape sequences embedded within the text sent to
the terminal. Consequently, programs which use a port of a Unix-style
curses library will work in an rxvt (etc) but not a console, while
programs which use pdcurses will work in a console but not an rxvt.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list