Updated wikipage Managing CTRL+C in console application. (Signed-off-by:tioui).

git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@2146 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
eiffel-org
2019-04-17 14:06:41 +00:00
parent 0d6954fc22
commit 749b35b594

View File

@@ -1,4 +1,4 @@
[[Property:modification_date|Wed, 17 Apr 2019 14:03:36 GMT]]
[[Property:modification_date|Wed, 17 Apr 2019 14:06:41 GMT]]
[[Property:publication_date|Wed, 17 Apr 2019 14:02:25 GMT]]
[[Property:uuid|5CA34C5D-30F1-4D6F-9FE4-B555E541EA8C]]
[[Property:weight|4000]]
@@ -9,6 +9,8 @@ To manage the CTRL+C keys, you can use a <code>rescue</code> clause to detect th
To detect the exception, you can <code>inherit</code> from the <code>EXCEPTIONS</code> class and use an attachment test on <code>Exception_manager.last_exception</code>.
Note that this code does not work on Windows. If used on Windows, the application will quit, but the <code>rescue</code> call is not launched.
<code>
note
description: "Show how to quit an application using CTRL+C (without trace)."