[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to know if a key is pressed without getting it?
From: |
Andreas Schwab |
Subject: |
Re: How to know if a key is pressed without getting it? |
Date: |
Mon, 27 Sep 2010 00:46:49 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Vinicius Jose Latorre <address@hidden> writes:
> Does anyone know how to know if a key is pressed without getting it in
> Emacs (like kbhit like function)?
input-pending-p is a built-in function in `C source code'.
(input-pending-p)
Return t if command input is currently available with no wait.
Actually, the value is nil only if we can be sure that no input is available;
if there is a doubt, the value is t.
Andreas.
--
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Re: How to know if a key is pressed without getting it?,
Andreas Schwab <=