[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CTRL-C behavior in CLI
From: |
Tatsuro MATSUOKA |
Subject: |
CTRL-C behavior in CLI |
Date: |
Thu, 26 May 2016 13:35:04 +0900 (JST) |
This is transferred from
http://octave.1599824.n4.nabble.com/Octave-4-0-1-CTRL-C-questions-td4677114.html#a4677165
*******************
If CTRL-C is treated as a normal keystroke, what can I do to abort the script
if say, the script has a programming mistake that has an infinite number of
pause?
*******************************
However, a short script
more off
for i=1:5000; rand(5000,5000), end
disp('Outside for loop')
Execute the above and press Ctrl+C while for loop is active.
Ctrl+C aborts the loop and do not go disp('Outside for loop').
This behavior is what the original author perhaps expects, I think.
Ctrl-C issue discussed in other places are not simple
and it is not an issue of keystroke but an issue of treating interrupt.
Tatsuro
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- CTRL-C behavior in CLI,
Tatsuro MATSUOKA <=