1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- Created by GNU Texinfo 6.7, http://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>exit (GCL TK Manual)</title>
<meta name="description" content="exit (GCL TK Manual)">
<meta name="keywords" content="exit (GCL TK Manual)">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<link href="index.html" rel="start" title="Top">
<link href="wm.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="Control.html" rel="up" title="Control">
<link href="focus.html" rel="next" title="focus">
<link href="tk_002ddialog.html" rel="prev" title="tk-dialog">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.indentedblock {margin-right: 0em}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
div.lisp {margin-left: 3.2em}
kbd {font-style: oblique}
pre.display {font-family: inherit}
pre.format {font-family: inherit}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
span.nolinebreak {white-space: nowrap}
span.roman {font-family: initial; font-weight: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
ul.no-bullet {list-style: none}
-->
</style>
</head>
<body lang="en">
<span id="exit"></span><div class="header">
<p>
Next: <a href="focus.html" accesskey="n" rel="next">focus</a>, Previous: <a href="tk_002ddialog.html" accesskey="p" rel="prev">tk-dialog</a>, Up: <a href="Control.html" accesskey="u" rel="up">Control</a> [<a href="wm.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
</div>
<hr>
<span id="exit-1"></span><h3 class="section">3.5 exit</h3>
<p>exit \- Exit the process
</p><span id="Synopsis-19"></span><h4 class="unnumberedsubsec">Synopsis</h4>
<p><b>exit </b><span class="roman">?</span><i>returnCode</i>?
</p>
<span id="Description-16"></span><h4 class="unnumberedsubsec">Description</h4>
<p>Terminate the process, returning <i>returnCode</i> (an integer) to the
system as the exit status.
If <i>returnCode</i> isn’t specified then it defaults
to 0.
This command replaces the Tcl command by the same name.
It is identical to Tcl’s <b>exit</b> command except that
before exiting it destroys all the windows managed by
the process.
This allows various cleanup operations to be performed, such
as removing application names from the global registry of applications.
</p>
<span id="Keywords-19"></span><h4 class="unnumberedsubsec">Keywords</h4>
<p>exit, process
</p>
</body>
</html>
|