octave 3.8.1 can't stop execution in gui command window

octave, ubuntu, user-interface

Solution

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

Problem

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?

Original source