Examples for the history manager 69/9969/3
Sylvestre Ledru [Mon, 10 Dec 2012 11:01:12 +0000 (12:01 +0100)]
Change-Id: Ic198a24cfc4268367b9fc5905c42d6f32f178b1a

scilab/modules/history_manager/help/en_US/browsehistory.xml
scilab/modules/history_manager/help/en_US/displayhistory.xml
scilab/modules/history_manager/help/en_US/gethistory.xml
scilab/modules/history_manager/help/en_US/resethistory.xml

index cf61d28..56c6462 100644 (file)
         </para>
     </refsection>
     <refsection>
+        <title>Examples</title>
+        <programlisting role="example"><![CDATA[
+browsehistory()
+]]></programlisting>
+    </refsection>
+    <refsection>
         <title>History</title>
         <revhistory>
             <revision>
index 188dbdc..0eedea3 100644 (file)
         <title>Description</title>
         <para>displays current scilab history.</para>
     </refsection>
+    <refsection>
+        <title>Examples</title>
+        <programlisting role="example"><![CDATA[
+displayhistory()
+]]></programlisting>
+    </refsection>
+    
     <refsection role="see also">
         <title>See Also</title>
         <simplelist type="inline">
index fd638d3..ba6e5de 100644 (file)
         <title>Description</title>
         <para>returns current scilab history in a string matrix.</para>
     </refsection>
+    <refsection>
+        <title>Examples</title>
+        <programlisting role="example"><![CDATA[
+gethistory(1) // Return the last line
+gethistory() // Return all the line
+]]></programlisting>
+    </refsection>
+    
     <refsection role="see also">
         <title>See Also</title>
         <simplelist type="inline">
index 7187c60..d989840 100644 (file)
@@ -13,7 +13,7 @@
 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="resethistory">
     <refnamediv>
         <refname>resethistory</refname>
-        <refpurpose>Deletes all entries in the scilab history.</refpurpose>
+        <refpurpose>Deletes all entries in the Scilab history.</refpurpose>
     </refnamediv>
     <refsynopsisdiv>
         <title>Calling Sequence</title>
     </refsynopsisdiv>
     <refsection>
         <title>Description</title>
-        <para>Deletes all entries in the current scilab history.</para>
+        <para>Deletes all entries in the current Scilab history.</para>
     </refsection>
+    <refsection>
+        <title>Examples</title>
+        <programlisting role="example"><![CDATA[
+// !This will clear the full history!
+resethistory()
+]]></programlisting>
+    </refsection>
+    
     <refsection role="see also">
         <title>See Also</title>
         <simplelist type="inline">