discard-input

discard-input is a built-in function in `C source code'.

(discard-input)

Discard the contents of the terminal input buffer.
Also end any kbd macro being defined.