otpcli.c: ignore -i when output is not a tty
commit50ec40d26ddf449dbebda44e4ef5fd7e20adff97
authorKyle J. McKay <mackyle@gmail.com>
Sat, 19 Aug 2023 00:39:41 +0000 (18 17:39 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Sat, 19 Aug 2023 00:39:41 +0000 (18 17:39 -0700)
treea64c95496578f53af95595e56ef2cf8db24a4e74
parent9de64e14bcdc16c1cb3983cd7a8e04769c2cb524
otpcli.c: ignore -i when output is not a tty

The positioning codes while simplisitic do actually require a real
tty in order to have the desired output effect.

Ignore -i with a warning if the output is not to a tty.
otpcli.c