octave 3.8.1 can't stop execution in gui command window

wyverniv picture wyverniv · Oct 8, 2015 · Viewed 24k times · Source

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?

Answer

Alabi Temitope picture Alabi Temitope · Mar 13, 2017

To stop a running command or script in octave GUI or prompt:

  1. Ctrl+C

you will see:

less -- (f)orward, (b)ack, (q)uit

To abort (and close the GUI or command line):

  1. Control+C

To just stop printing the output of the command or script (?):

  1. q
  2. Enter