help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Signal handling?


From: Peter Brinkmann
Subject: Signal handling?
Date: Wed, 31 Oct 2001 23:54:45 -0600
User-agent: Mutt/1.2.5i

Hi!
How can I change the way octave handles signals (keyboard interrupt in
particular)? 

Consider, for example, the following code:
        try
                try
                        while 1
                        end
                catch
                        disp('Catch 1')
                end
                disp('foo')
        catch
                disp('Catch 2')
        end

After hitting Ctrl-C in order to break the infinite loop, I'd like to
continue with the line that displays 'foo' (that's the way matlab handles
the keyboard interrupt), but octave skips to the next catch block instead.
How can I fix this?
Thanks,
        Peter



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]