/usr/share/psychtoolbox-3/PsychOneliners/sca.m is in psychtoolbox-3-common 3.0.9+svn2579.dfsg1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | function sca
% sca -- Execute Screen('CloseAll');
% This is just a convenience wrapper that allows you
% to save typing that long, and frequently needed, command.
% It also unhides the cursor if hidden, and restores graphics card gamma
% tables if they've been altered.
%
% History:
% 4/6/6 Written (MK).
% 5/31/8 Add CLUT restore call (MK).
% Unhide the cursor if it was hidden:
ShowCursor;
for win = Screen('Windows')
if Screen('WindowKind', win) == 1
if Screen('GetWindowInfo', win, 4) > 0
Screen('AsyncFlipEnd', win);
end
end
end
% Close all windows, release all Screen() ressources:
Screen('CloseAll');
% Restore (possibly altered) gfx-card gamma tables from backup copies:
RestoreCluts;
return;
|