Mercurial > projects > pwm
comparison 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 |
comparison
equal
deleted
inserted
replaced
12:8768fbd09bc5 | 13:cf81eb0c2d5a |
---|---|
32 <surname>Berhoerster</surname> | 32 <surname>Berhoerster</surname> |
33 </personname> | 33 </personname> |
34 <email>guido+pwm@berhoerster.name</email> | 34 <email>guido+pwm@berhoerster.name</email> |
35 <personblurb/> | 35 <personblurb/> |
36 </author> | 36 </author> |
37 <date>3 August, 2017</date> | 37 <date>6 August, 2017</date> |
38 </info> | 38 </info> |
39 <refmeta> | 39 <refmeta> |
40 <refentrytitle>pwm</refentrytitle> | 40 <refentrytitle>pwm</refentrytitle> |
41 <manvolnum>1</manvolnum> | 41 <manvolnum>1</manvolnum> |
42 <refmiscinfo class="source"/> | 42 <refmiscinfo class="source"/> |
503 </cmdsynopsis> | 503 </cmdsynopsis> |
504 <cmdsynopsis> | 504 <cmdsynopsis> |
505 <command>q</command> | 505 <command>q</command> |
506 <sbr/> | 506 <sbr/> |
507 </cmdsynopsis> | 507 </cmdsynopsis> |
508 <para>Quit <command>pwm</command>.</para> | 508 <para>Quit <command>pwm</command>. If running in interactive mode |
509 and there are unsaved changes, <command>pwm</command> will not | |
510 terminate but display a warning message. If the quit command is | |
511 invoked twice consecutively, <command>pwm</command> will discard | |
512 unsaved changes and terminate.</para> | |
513 </listitem> | |
514 </varlistentry> | |
515 <varlistentry> | |
516 <term>Quit and discard unsaved changes</term> | |
517 <listitem> | |
518 <cmdsynopsis> | |
519 <command>Quit</command> | |
520 </cmdsynopsis> | |
521 <cmdsynopsis> | |
522 <command>Q</command> | |
523 <sbr/> | |
524 </cmdsynopsis> | |
525 <para>Quit <command>pwm</command> and discard any unsaved changes | |
526 without a warning.</para> | |
509 </listitem> | 527 </listitem> |
510 </varlistentry> | 528 </varlistentry> |
511 </variablelist> | 529 </variablelist> |
512 </refsect2> | 530 </refsect2> |
513 </refsect1> | 531 </refsect1> |