/usr/share/psychtoolbox-3/PsychOneliners/sca.m is in psychtoolbox-3-common 3.0.11.20131230.dfsg1-1build1.
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 31 32 33 34 35 36 37 | 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).
% 7/03/13 Add PsychJavaSwingCleanup 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;
% Call Java cleanup routine to avoid java.lang.outOfMemory exceptions due
% to the bugs and resource leaks in Matlab's Java based GUI:
if ~IsOctave && exist('PsychJavaSwingCleanup', 'file')
PsychJavaSwingCleanup;
end
return;
|