Function: discard-input

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