From: Amos Arieli on
I have a problem, which relates to a very useful matlab function
('keyinfo.dll'), which can read the keyboard instantaneously - without the
need to wait for 'return' (The function was downloaded from:
http://www.mathworks.com/matlabcentral/fileexchange/6605-get-keyboard-information).

However, after I use this function, the matlab-command-window accumulate the
characters typed. Now, if I want to use afterwards the command 'input' to
accept a variable, I need to manually delete the accumulated characters (e.g. CTRL U),
otherwise they will be part of the input. My question is whether there is a
way to cancel (delete/clear) the characters which are typed in the command
window from inside the program? Or whether there is a way to execute 'CTRL U' from inside the program?

Thanks,
Amos