Bump version numbers to 6.2.0
[scilab.git] / scilab / modules / core / help / pt_BR / quit.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="quit" xml:lang="pt">
3     <refnamediv>
4         <refname>quit</refname>
5         <refpurpose>Decresce o nível de pausa ou termina o Scilab</refpurpose>
6     </refnamediv>
7     <refsynopsisdiv>
8         <title>Seqüência de Chamamento</title>
9         <synopsis>quit</synopsis>
10     </refsynopsisdiv>
11     <refsection>
12         <title>Descrição</title>
13         <para>
14             O comando <literal>quit</literal> tem dois significados diferentes
15             dependendo do contexto de chamamento:
16         </para>
17         <variablelist>
18             <varlistentry>
19                 <term>
20                     Se não houver <literal>pause</literal> ativo,
21                 </term>
22                 <listitem>
23                     <para>
24                         Então o comando <literal>quit</literal> faz o Scilab terminar,
25                         mesmo que o comando seja chamado dentro de uma função.
26                     </para>
27                 </listitem>
28             </varlistentry>
29             <varlistentry>
30                 <term>
31                     Se houver <literal>pause</literal> ativo,
32                 </term>
33                 <listitem>
34                     <para>
35                         Então o comando <literal>quit</literal> aborta instruções
36                         iniciadas neste nível de pausa e termina o nível de pausa
37                         corrente.
38                     </para>
39                 </listitem>
40             </varlistentry>
41         </variablelist>
42     </refsection>
43     <refsection>
44         <title>Exemplos</title>
45         <programlisting role="example"><![CDATA[
46 // Saindo do Scilab
47 function foo(x),if x then quit,end,endfunction
48 foo(%t) //quits scilab
49
50 //terminando instrução iniciada num contexto de pausa
51 function foo(x),if x then quit,end,endfunction
52 pause
53 foo(%t) //retorna ao nível de prompt principal
54
55 function foo1(x),
56   mprintf('P1\n')
57   if x then pause, mprintf('P2\n'),end,
58   mprintf('P3\n')
59 endfunction
60
61 foo1(%t) //enter com quit no prompt seguinte
62  ]]></programlisting>
63     </refsection>
64     <refsection role="see also">
65         <title>Ver Também</title>
66         <simplelist type="inline">
67             <member>
68                 <link linkend="pause">pause</link>
69             </member>
70             <member>
71                 <link linkend="break">break</link>
72             </member>
73             <member>
74                 <link linkend="abort">abort</link>
75             </member>
76             <member>
77                 <link linkend="exit">exit</link>
78             </member>
79         </simplelist>
80     </refsection>
81 </refentry>