function HideCursorTest
% HideCursorTest confirms that cursor stays hidden while you wait for user
% input.
% 
% Denis Pelli 1/27/00
clear mex
hidecursor;
w=screen(0,'openwindow');
screen(w,'textsize',20);
screen(w,'drawtext','Hopefully the cursor is hidden. Please click.',50,100);
getclicks;
screen(w,'drawtext','Thanks. Hopefully the cursor is still hidden. Please type a character.',50,200);
getchar;
screen(w,'drawtext','Thanks. All done. Bye bye.',50,300);
waitsecs(1);
screen(w,'close');
showcursor;
