most of my psychophysical programmes have this little piece of code:
while 1
[KeyIsDown, ~, KeyCode]=KbCheck;
if KeyIsDown
break;
end
end
when i paste that little bit of code onto the command line, nothing
happens until i press a key. at that point, the matlab prompt (>>)
returns, as well as the letter i just typed.
EXCEPT ON MY NEW IMAC
there, i can see the letter i just typed, but the prompt never returns
until i do a ctrl-C.
ANY IDEAS?!?!?
thanks
j
PS i have read the documentation, so i have also tried
the above with KbCheck(-1). no dice.
GetKeyboardIndices returns 3, so i also tried KbCheck(3). still no dice.
while 1
[KeyIsDown, ~, KeyCode]=KbCheck;
if KeyIsDown
break;
end
end
when i paste that little bit of code onto the command line, nothing
happens until i press a key. at that point, the matlab prompt (>>)
returns, as well as the letter i just typed.
EXCEPT ON MY NEW IMAC
there, i can see the letter i just typed, but the prompt never returns
until i do a ctrl-C.
ANY IDEAS?!?!?
thanks
j
PS i have read the documentation, so i have also tried
the above with KbCheck(-1). no dice.
GetKeyboardIndices returns 3, so i also tried KbCheck(3). still no dice.