On 04/05/17 12:00, Graeme Geldenhuys wrote:
On 2017-05-04 12:03, Mark Morgan Lloyd wrote:>> I've not used Freevision/Turbovision before, but am 
experimenting with>> James Clarke's DialEdit as an experiment to see whether I can create a>> fallback 
user interface for use if an interactive program is running in>> a shell session. The Lazarus side of things 
isn't a problem, I know from>> the past how to break out before the GUI is initialised and so on.> I was 
mistaken, this can't be done easily so there's no advantage in > trying to build a single program for both GUI and 
text modes.>

And it wouldn’t be right if I didn’t offer up an alternative.

Agreed, such as --help or --version output. However it looks as though it's important to check anything that attempts this on e.g. the system text-mode console or over something really crude like telnet... and I hope you're doing that for fpGUI since you keep telling us how good it is :-)

So as you can see, what you want to do is possible. Maybe LCL just needsmore 
work around its initialization code - being less eager toinitialize its GUI. ;-)

I think it could probably be done by slipping a unit in just before cthreads, provided that this terminated aggressively. That's actually less intrusive that the editing I've been doing in the .lpr initialisation block, but it would mean splitting out e.g. text-mode --help and graphics-mode --about into separate places.

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to