1

In Geany, the Menu > Build > Execute command can be configured to send output to a terminal window.

For example: With the following command in Build Commands and a Python script in the active window, the Execute command will send output from the script into an interactive Python session in a terminal window.

/usr/bin/python3 -i '%f'

However, with Geany as I've configured it so far, the output goes to a new instance of terminal each time I run. I will quickly accumulate an unwieldy number of windows and if I want to see the result of a previous run it is not always obvious which window is the one.

So is there any way of getting this all to happen in the same terminal instance each time I run?

This is not about multiple instances of Geany, but about one instance of Geany generating multiple instances of terminal. The behavior I'm looking for is that of IDLE's F5.

0

See Geany's manual on Virtual terminal emulator (VTE) page and check Execute programs in VTE option:

Execute programs in the virtual terminal instead of using the external terminal tool. Note that if you run multiple execute commands at once the output may become mixed together in the VTE.

  • IMHO, this is not a Ubuntu related question – freezed Jun 1 '18 at 8:57
  • 2
    Questions about software development and its tools using Ubuntu are on topic here. It's not clear cut at which point a question looses its connection to Ubuntu to a point where it ceases to be on topic but I'd say this one still is. – David Foerster Jun 1 '18 at 17:34
  • I can run once. If I run again I get this error `` SyntaxError: invalid syntax >>> >>> File "<stdin>", line 1 /bin/sh /tmp/geany_run_script_18KBKZ.sh`` – Stephen Boston Jun 1 '18 at 21:48
  • I never encountered this geany_run_script.sh kind of error. Is it happening with different scripts or only with the same? – freezed Jun 2 '18 at 7:05
  • What's new? Is the question answered or this solutions is not working? – freezed Jun 12 '18 at 7:40

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.