waiting-for-user-input-p
waiting-for-user-input-p is a built-in function in `C source code
'.
(waiting-for-user-input-p)
Return non-nil if Emacs is waiting for input from the user.
This is intended for use by asynchronous process output filters and sentinels.