Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | # Copyright (c) 1993 The Regents of the University of California. |
2 | # Copyright (c) 1994-1996 Sun Microsystems, Inc. | |
3 | # See the file "license.terms" for information on usage and redistribution | |
4 | # of this file, and for a DISCLAIMER OF ALL WARRANTIES. | |
5 | # | |
6 | # | |
7 | ||
8 | =head1 NAME | |
9 | ||
10 | Tk::exit - End the application | |
11 | ||
12 | =for category Binding Events and Callbacks | |
13 | ||
14 | =head1 SYNOPSIS | |
15 | ||
16 | use Tk qw(exit); | |
17 | ... | |
18 | B<exit>?(I<returnCode>)?; | |
19 | ||
20 | =head1 DESCRIPTION | |
21 | ||
22 | Terminate the process, returning I<returnCode> to the | |
23 | system as the exit status. | |
24 | If I<returnCode> isn't specified then it defaults | |
25 | to 0. | |
26 | ||
27 | If calling C<exit> from code invoked via a Tk callback then | |
28 | this Tk version of C<exit> cleans up more reliably than using | |
29 | the perl C<exit>. | |
30 | ||
31 | =head1 KEYWORDS | |
32 | ||
33 | exit, process | |
34 | ||
35 | =cut | |
36 |