Slimelite BBS

BetterCloseScreen.lha

Back to sys

Ensure public screens always get closed

Size
65K (67,009 bytes)
Added
2026-11-20 17:29
Downloads
1
Long Description
This is a little Shell program which patches CloseScreen() so that it can never fail for public screens. If closing would fail (usually due to a foreign 'visitor' window) then it waits one second & tries again, until it succeeds. I wrote this patch because Ringhio notifications (e.g. from TuneNet) seem to prevent most Amiga programs from closing their screen (including all MUI ones!), because they wrongly assume the screen closed correctly. Changes for this release: * Programs using CloseScreen(NULL) will no-longer crash. Thanks to Chris Young for the bug report. * Quitting with Ctrl-C will now abort any CloseScreen() calls that have gotten stuck waiting for the screen to close. * Refactored the patching code into a separate reusable module. :-)
SHA-256
00d3e794ab29164d5287055b6a39a44f7abc1885440daf80048edf652ccd6d96