summaryrefslogtreecommitdiff
path: root/anzeige.c
diff options
context:
space:
mode:
Diffstat (limited to 'anzeige.c')
-rw-r--r--anzeige.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/anzeige.c b/anzeige.c
index 36465a3..8f5953a 100644
--- a/anzeige.c
+++ b/anzeige.c
@@ -70,10 +70,15 @@ int main(int argc, char **argv)
}
time_t next_update = 0;
+ scroll_data . shine_until = time(NULL) + 10;
int i=0;
while (scroll_data . keep_running) {
+ if (got_input()) {
+ next_update = 0; // update now!
+ scroll_data . shine_until = time(NULL) + 60;
+ }
if ((time(NULL) >= next_update) && (scroll_data . update == 0)) {
next_update = time(NULL) + 60; // one minute ahead