diff pwm.1.xml @ 13:cf81eb0c2d5a

Warn before quitting if there are unsaved changes If there are unsaved changes emit a warning when the quit command is used. Only quit if the quit command is used twice with no other command in between. Add a new Quit command which immediatly quits pwm without a warning.
author Guido Berhoerster <guido+pwm@berhoerster.name>
date Mon, 07 Aug 2017 16:59:47 +0200
parents 8768fbd09bc5
children a01899a6e4bb
line wrap: on
line diff
--- a/pwm.1.xml	Thu Aug 03 10:22:07 2017 +0200
+++ b/pwm.1.xml	Mon Aug 07 16:59:47 2017 +0200
@@ -34,7 +34,7 @@
       <email>guido+pwm@berhoerster.name</email>
       <personblurb/>
     </author>
-    <date>3 August, 2017</date>
+    <date>6 August, 2017</date>
   </info>
   <refmeta>
     <refentrytitle>pwm</refentrytitle>
@@ -505,7 +505,25 @@
               <command>q</command>
               <sbr/>
             </cmdsynopsis>
-            <para>Quit <command>pwm</command>.</para>
+            <para>Quit <command>pwm</command>.  If running in interactive mode
+            and there are unsaved changes, <command>pwm</command> will not
+            terminate but display a warning message. If the quit command is
+            invoked twice consecutively, <command>pwm</command> will discard
+            unsaved changes and terminate.</para>
+          </listitem>
+        </varlistentry>
+        <varlistentry>
+          <term>Quit and discard unsaved changes</term>
+          <listitem>
+            <cmdsynopsis>
+              <command>Quit</command>
+            </cmdsynopsis>
+            <cmdsynopsis>
+              <command>Q</command>
+              <sbr/>
+            </cmdsynopsis>
+            <para>Quit <command>pwm</command> and discard any unsaved changes
+            without a warning.</para>
           </listitem>
         </varlistentry>
       </variablelist>