I'm running octave 3.8 with the gui in Ubuntu 14.04. I have an infinite loop somewhere in my program and it seems like the terminal doesn't respond to the typical keypresses to stop execution. (eg. Ctrl+C, Ctrl+Z) When I run programs in the terminal, I can just press Ctrl+C, but that doesn't seem to work here. What can I do to halt execution?
Asked
Active
Viewed 3.6k times
17
-
1When you started the GUI for the first time on Octave 3.8, you should have gotten a warning that the GUI was experimental. You will notice that you need to use `--force-gui` too as well. You should try Octave 4.0, the first release with GUI as stable. – carandraug Oct 08 '15 at 11:44
-
2@carandraug I'm using octave v.4.0.0 GUI (ubuntu 16.04) and I see the same issue. I can't cancel a command running midway, not even with ctrl+c on the command window. Even though it looks like it's stopped, by CPUs are still working like crazy. – Felipe Feb 15 '17 at 03:29
-
2Same in 4.4.1 ... Ctrl+C answer below did work – KornMuffin Aug 26 '18 at 17:17
3 Answers
10
To stop a running command or script in octave GUI or prompt:
- Ctrl+C
you will see:
less -- (f)orward, (b)ack, (q)uit
To abort (and close the GUI or command line):
- Control+C
To just stop printing the output of the command or script (?):
- q
- Enter

Kenny Evitt
- 9,291
- 5
- 65
- 93

Alabi Temitope
- 405
- 5
- 16
-
Thanks for the review of answer post on how stop execution in gui command window for octave 3.8.1 @kenny-evitt – Alabi Temitope Apr 30 '18 at 01:09
1
It's a long-running bug that hasn't been fixed since 2012, run with --no-gui
if possible.

Alexander Solovets
- 2,447
- 15
- 22
1
after going through lots of bugs report and all.
Finally by hitting (ctr + c + Enter) at command window (below the pause statment) execution gets terminated.
hope it works for u too.

Abhijit_STACK
- 11
- 4
-
1but after hitting to many times (like 10 times) the whole software is getting terminated.so sick with this. installing another version will it solve this ? – Abhijit_STACK Jan 26 '19 at 16:38