help-octave
[Top][All Lists]
Advanced

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

Re: Function atexit and Ctrl+C


From: pavel
Subject: Re: Function atexit and Ctrl+C
Date: Sun, 3 Feb 2019 18:23:23 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1

Hi Markus
Dne 03. 02. 19 v 17:50 "Markus Mützel" napsal(a):

I am not sure whether I understand your goal. But you could probably enclose 
your script inside an unwind-protect block like:
unwind_protect
   hf = figure;
   while 1
   endwhile
unwind_protect_cleanup
   close (hf);
end_unwind_protect

Your are the man! Thanks a lot, exactly what I was looking for. Ctrl+C does not skip the unwind block, working like a charm.

Thanks a lot,

Pavel.



reply via email to

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