How can we run an IDE-Tool in console-mode?
How can we run an IDE-Tool in console-mode?
See the title. It should be simple but i have no idea.
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Re: How can we run an IDE-Tool in console-mode?
You have to set a terminal emulator as the program to execute (for example xterm). Then in the parameters, you pass:
The -e works for most terminal emulators. It may be different for some.
Code: Select all
-e <your real program>
quidquid Latine dictum sit altum videtur
Re: How can we run an IDE-Tool in console-mode?
thanks, but this will not work with parameters and flags for runprogram
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Re: How can we run an IDE-Tool in console-mode?
i feel stupid. all of the following (except the last one) work from a terminal but don't work as tool commandline (i.e. nothing happens):
<edit>
Not exactly true. If i don't use -e, but just the bare terminal binary path then i see something flashing up.
Code: Select all
xfce4-terminal -e "/home/user/purebasic_tools/MergeTool"
/usr/bin/xfce4-terminal -e "/home/user/purebasic_tools/MergeTool"
xfce4-terminal -e "sleep 1"
/usr/bin/xfce4-terminal -e "sleep 1"
/usr/bin/xfce4-terminal.wrapper
/usr/bin/xfce4-terminal.wrapper -e "sleep 1"
/usr/bin/xfce4-terminal.wrapper -e \"sleep 1\"
Not exactly true. If i don't use -e, but just the bare terminal binary path then i see something flashing up.