otpcli.c: implement -i mode for totp
commit5ed0e5b866b35807e77ac3840127b8ca19840962
authorKyle J. McKay <mackyle@gmail.com>
Sat, 19 Aug 2023 03:42:34 +0000 (18 20:42 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Sat, 19 Aug 2023 03:42:34 +0000 (18 20:42 -0700)
treebc972c77a7002dbff3a4907813aa35e804d6b77e
parent69309b9bdc5d9b89185c55f0e5dded26e0c1cfb8
otpcli.c: implement -i mode for totp

Add the necessary code to show a repeating update of the current
password and the number of seconds left before it becomes invalid
and a new password will be generated.

As always, Ctrl-C can be used to exit interactive mode, but also
make it possible to exit interactive mode by simply pressing the
<return> key.
otpcli.c