From 7f62fb185c2617eb308f7ca5fe8b9e18828cb772 Mon Sep 17 00:00:00 2001 From: Tim Hentenaar Date: Fri, 10 Oct 2014 01:55:14 +0200 Subject: Let SIGUSR1 trigger a reload In an effort to better integrate the import process with external applications, it's desirable to have a mechanism by which external programs can trigger a reload of calcurse's data. This patch adds that functionality via SIGUSR1. The reload request is handled in the main loop. When the user is currently entering data, the request is delayed until the main loop is re-entered. Signed-off-by: Tim Hentenaar Signed-off-by: Lukas Fleischer --- src/calcurse.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/calcurse.h') diff --git a/src/calcurse.h b/src/calcurse.h index 4a6ea24..ce19183 100644 --- a/src/calcurse.h +++ b/src/calcurse.h @@ -1096,6 +1096,7 @@ extern unsigned colorize; extern int foreground, background; extern enum ui_mode ui_mode; extern int read_only; +extern int want_reload; extern const char *datefmt_str[DATE_FORMATS]; extern int days[12]; extern const char *monthnames[12]; -- cgit v1.2.3-54-g00ecf