Add command line option to suppress dialogs

Implement a -q/--quiet command line option to disable system dialogs
temporarily.

Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
Lukas Fleischer
2016-01-12 18:29:26 +01:00
parent 6d9129764b
commit c58087d591
6 changed files with 20 additions and 6 deletions

View File

@@ -61,6 +61,9 @@ enum ui_mode ui_mode = UI_CMDLINE;
/* Don't save anything if this is set. */
int read_only = 0;
/* Hide system dialogs if set. */
int quiet = 0;
/* Applications can trigger a reload by sending SIGUSR1. */
int want_reload = 0;