[GRASS5] QGIS GRASS Shell (hell)

Hi,

I added shell to GRASS tools in QGIS:
http://mpa.itc.it/radim/qgis/shell1.png

It is very simple pseudoterminal implementing limited
subset of VT100 control characters and sequences.
There is no support for pseudoterminal in Qt, so it starts
in C: seteuid, openpty, fork, execl, fchown, fchmod, etc.
which certainly appreciate all Qt/OOP/C++ fans.
openpty is in libutil (on Linux), so I added check to configure
and ifdef in code for openpty. Other functions should be POSIX.

It does not support vertical moving => impossible to run programs
printing on the whole screen like mc, top etc.

It is very probable that you will find some problems with your
shell/distro/settings combination, please report important unsupported
control sequences.
I am not sure if we can get working without problems in all enviroments,
note that konsole has 19000 lines and I don't want to reimplement/include it.

Links: http://vt100.net/docs/vt100-ug/

Tom, could you find the openpty on Mac and try to compile?

Radim

hallo,
it seems to be working. will it support $GRASS_ADDON_PATH in the future?

system: debian - testing.

how is it? is grass going towards Qgis or Qgis towards GRASS :wink: ?

I would like to ask, how is it with the new mapcalculator? There is map
called "Output", when I try to perform calculation

+------+ +--------+
| 0 +--------+ Output |
+------+ +--------+

Is resulting to

r.mapcalc =(0)
syntax error, unexpected '=', expecting NAME or STRING
Parse error
Finished with error

Hot to set the name of the output map?

Jachym

On Thu, Oct 13, 2005 at 06:59:56PM +0200, Radim Blazek wrote:

Hi,

I added shell to GRASS tools in QGIS:
http://mpa.itc.it/radim/qgis/shell1.png

It is very simple pseudoterminal implementing limited
subset of VT100 control characters and sequences.
There is no support for pseudoterminal in Qt, so it starts
in C: seteuid, openpty, fork, execl, fchown, fchmod, etc.
which certainly appreciate all Qt/OOP/C++ fans.
openpty is in libutil (on Linux), so I added check to configure
and ifdef in code for openpty. Other functions should be POSIX.

It does not support vertical moving => impossible to run programs
printing on the whole screen like mc, top etc.

It is very probable that you will find some problems with your
shell/distro/settings combination, please report important unsupported
control sequences.
I am not sure if we can get working without problems in all enviroments,
note that konsole has 19000 lines and I don't want to reimplement/include it.

Links: http://vt100.net/docs/vt100-ug/

Tom, could you find the openpty on Mac and try to compile?

Radim

_______________________________________________
grass5 mailing list
grass5@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass5

--
Jachym Cepicky
e-mail: jachym.cepicky@centrum.cz
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/gnupg_public_key/
-----------------------------------------
OFFICE:
Department of Geoinformation Technologies
LDF MZLU v Brnì
Zemìdìlská 3
613 00 Brno
e-mail: xcepicky@node.mendelu.cz
URL: http://mapserver.mendelu.cz
Tel.: +420 545 134 514

On 10/14/05, Jachym Cepicky <jachym.cepicky@centrum.cz> wrote:

hallo,
it seems to be working. will it support $GRASS_ADDON_PATH in the future?

Yes, there are many details which must be done, for example
shell history, GRASS shell rc files etc.

I would like to ask, how is it with the new mapcalculator? There is map
called "Output", when I try to perform calculation

+------+ +--------+
| 0 +--------+ Output |
+------+ +--------+

Is resulting to

r.mapcalc =(0)
syntax error, unexpected '=', expecting NAME or STRING
Parse error
Finished with error

Hot to set the name of the output map?

Here http://mpa.itc.it/radim/qgis/mapcalc.png
you can see "Output" field under the canvas, try to
resize the window.

I know that the QCanvasView is not resized verticaly well.
I tried everything but it seems that there is a minimumHeight
somewhere set, but it is neither in QgsGrassMapcalc nor
in QgsGrassMapcalcView. Strange is also that
horizontal resizing works as expected.
Anybody has idea?

Radim

[...]
Here http://mpa.itc.it/radim/qgis/mapcalc.png
you can see "Output" field under the canvas, try to
resize the window.

I know that the QCanvasView is not resized verticaly well.
I tried everything but it seems that there is a minimumHeight
somewhere set, but it is neither in QgsGrassMapcalc nor
in QgsGrassMapcalcView. Strange is also that
horizontal resizing works as expected.
Anybody has idea?

Radim

I see. In my window manager (fluxbox) tt is not possible, to resize grass-tools window with mouse. I had to maximize it verticaly. Now I see, what's wrong.

thanks

Jáchym

--
Jachym Cepicky
e-mail: jachym.cepicky@centrum.cz
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/gnupg_public_key/
-----------------------------------------
OFFICE:
Department of Geoinformation Technologies
LDF MZLU v Brnì
Zemìdìlská 3
613 00 Brno
e-mail: xcepicky@node.mendelu.cz
URL: http://mapserver.mendelu.cz
Tel.: +420 545 134 514