I didn't have geany on me and couldn't install it so I tried mapping the compile and build shortcuts to vim.
While the compile commands worked as expected in the terminal, I had trouble with the execute command.
On Geany, my fields are :
Set Build Commands > Execute: "./%e"
Tools > Terminal: xterm -fa 'Monospace' -fs 10 -e "/bin/sh %c"
[...]The marker "%c" is substituted with the name of the Geany run script, which is created in the temporary directory[...]
As I found online, the script is called geany_run_script.sh and personally, does 3 noticeable things:
- Run the execute command.
- Show the exit code of the executed program.
- Hold the terminal open and close it if the return key is pressed after the exit code has been returned.
I am having trouble with the latter 2, so I'm asking for either the code of geany_run_script.sh, or its temporary directory, or a bash script that accomplishes the above 3 tasks.
Regards,
Geuristic