Add examples for tohome & prompt. Disable the warning for console 32/9732/2
Sylvestre Ledru [Mon, 19 Nov 2012 09:31:58 +0000 (10:31 +0100)]
Change-Id: I54fc097e6b0d9492cc438ad17f28f4a396b4a01a

scilab/modules/console/help/en_US/console.xml
scilab/modules/console/help/en_US/prompt.xml
scilab/modules/console/help/en_US/tohome.xml

index 62bfece..eccdf19 100644 (file)
@@ -10,7 +10,7 @@
  * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
  *
  -->
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="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="console" xml:lang="en">
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="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" scilab:needs-examples="no" xml:id="console" xml:lang="en">
     <refnamediv>
         <refname>console</refname>
         <refpurpose>Keyboard Shortcuts in the Console Window</refpurpose>
index 48bc2d1..00b62d8 100644 (file)
             <literal>prompt(userprompt)</literal> sets the prompt.
         </para>
     </refsection>
+    <refsection>
+        <title>Examples</title>
+        <programlisting role="example"><![CDATA[
+currentPrompt = prompt();
+disp(currentPrompt); // Probably "-->"
+
+[currentPrompt, pauseLevel] = prompt();
+disp(pauseLevel); // Probably 0
+
+prompt(">>"); // Create a new prompt just for the next command
+
+ ]]></programlisting>
+    </refsection>
+    
     <refsection role="see also">
         <title>See Also</title>
         <simplelist type="inline">
index d302d3a..1087dd9 100644 (file)
             </note>
         </para>
     </refsection>
+    <refsection>
+        <title>Examples</title>
+        <programlisting role="example"><![CDATA[ 
+rand(10,10)
+tohome();
+ ]]></programlisting>
+    </refsection>
+    
     <refsection role="see also">
         <title>See Also</title>
         <simplelist type="inline">