[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Re[2]: GEM boost



Quoting Martin Tarenskeen <m.tarenskeen@zonnet.nl>:
I have an icon on my desktop that opens a Toswin2 window containing a
bash shell. On my Fedora Linux system it's a gnome terminal running bash.
Not much difference.

Not what I was talking about, but you are correct that these are functionally
the same.

What if the desktop routed stdin/stdout to a pipe for ALL programs, no matter if
they were TOS or PRG or whatever.   If at any time, the newly launched program
writes to this pipe, then open a new window at that time to display the text.
This stops poorly written GEM programs from destroying your screen with a
console write, and makes DEBUG output much simpler (no cout library needed).
Also .TOS and .PRG no longer have to be different.  Instead of just running a
shell, you could run any program directly - say double click on telnet and a
window will open as soon as it writes it's "telnet>" prompt.

You could even catch "Usage:" messages and pop up a .TTP box of sorts, possibly
by passing --help to the program and catching the results into a GEM dialog to
make passing of parameters simple an intuitive.