diff --git a/tty-clock.1 b/tty-clock.1 index 2b98ff5..9c023c1 100644 --- a/tty-clock.1 +++ b/tty-clock.1 @@ -61,6 +61,12 @@ Pause and resume clock, timer or countdown. Z Restart the timer or countdown (see \fB-p\fR below). This command has no effect on regular time display. .TP ++ +Add one minute to the timer/countdown. +.TP +- +Subtract one minute to the timer/countdown. +.TP Q Quit. .SH "OPTIONS" diff --git a/ttyclock.c b/ttyclock.c index 9712087..a692a0c 100644 --- a/ttyclock.c +++ b/ttyclock.c @@ -1,6 +1,6 @@ /* * TTY-CLOCK Main file. - * Copyright © 2009-2018 tty-clock contributors + * Copyright © 2009-2021 tty-clock contributors * Copyright © 2008 Martin Duquesnoy * All rights reserved. * @@ -631,6 +631,16 @@ key_event(void) ttyclock.lt_paused = ttyclock.lt; break; + case '+': + if(ttyclock.lt_origin) + ttyclock.lt_origin += 60; + break; + + case '-': + if(ttyclock.lt_origin) + ttyclock.lt_origin -= 60; + break; + case ' ': if(!ttyclock.lt_paused) ttyclock.lt_paused = ttyclock.lt;