[Lazarus] Run External Console on Linux?

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Mar 8 17:06:05 CET 2019


On Fri, 8 Mar 2019 09:05:14 -0500
Anthony Walter via lazarus <lazarus at lists.lazarus-ide.org> wrote:

> Has anyone come up with a decent way to run and debug console
> applications using an external terminal program on Linux?
> 
> That is, you are writing a ReadLn and WriteLn console application in
> Lazarus, and when you run the program you can get an external program
> like gnome-terminal to popup. Then gnome-terminal hosts your console
> application until either your console application terminates or you
> close gnome-terminal.
> 
> I really don't like using the built in Lazarus terminal window. ReadLn
> doesn't work very well with it. It doesn't popup when you run or
> terminal the console application when closed. I'd really like to
> simulate an external terminal program like Lazarus does on Windows.
> (Please don't respond with why they are different. I understand the
> reasons)

This works on many Linux distros:

Run / Run Parameters / Use Launching application

/usr/bin/xterm -T 'Lazarus Run Output' -e
$(LazarusDir)/tools/runwait.sh $(TargetCmdLine)

Probably there are similar flags for gnome-terminal.

Mattias


More information about the lazarus mailing list