[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Ctrl-C and try-catch
From: |
Paul Kienzle |
Subject: |
Ctrl-C and try-catch |
Date: |
Fri, 12 Dec 2003 16:42:31 -0500 |
User-agent: |
Mutt/1.2.5.1i |
The following code prints 'no' if I hit control C or 'yes' if it
runs to completion:
octave> try; for i=1:100000, x=i+1; end; 'yes', catch, 'no', end;
ans = no
Is there any way to stop a try-catch from catching Ctrl-C? Or detect
if Ctrl-C is pressed so that I can throw it again in the interrupt?
Or tell Ctrl-C to return to the top level, skipping all try-catch
blocks?
Thanks,
Paul Kienzle
address@hidden
-------------------------------------------------------------
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
-------------------------------------------------------------
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Ctrl-C and try-catch,
Paul Kienzle <=