On Fri, 8 Mar 2019 09:05:14 -0500
Anthony Walter via lazarus <[email protected]> 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
-- 
_______________________________________________
lazarus mailing list
[email protected]
https://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to