$KEYS_QUEUED_COUNT
–
Number of bytes immediately available for reading
$KEYS_QUEUED_COUNT
contains the number of bytes at the end of the input queue immediately available for reading.
Links
BashSupport Pro is a Zsh IDE with support for $KEYS_QUEUED_COUNT – try it now!