The cardstatus binary can be used to dynamically monitor SCardStatus(),
to get information about a currently inserted card.  It only reports
information about the first card found, with no subcriteria for
selection among multiple cards or readers provided with
the application.

When run it does an SCardEstablishContext() call, gets the reader list,
connects to the first card found, and goes into a loop calling SCardStatus()
to get the current state of the card.  

NOTE: cardstatus dynamically refreshes in-place on the screen using
     VT100 control sequences, and so a VT100-compatible terminal
     is required to use it.  A spinner is displayed to indicate
     activity.  If the spinner stops or never moves, it means
     something is hung, probably in SCardStatus()

This utility can be used to verify the correct behavior of libregression.so.1,
another tool provided in the pcsctools distribution.  THe way it works is,
if cardstatus is invoked with the -n flag alone, SCardStatus() will be
called with a null reader list, and demonstrate whether or not
libregression is in effect.
