#Public Screens
How to open a public screen:
struct Screen *Pub=OpenScreenTags(0, SA_PubName, "MyPubScreen", TAG_DONE);
PubScreenStatus(Pub, 0);
/* Use the screen… */ PubScreenStatus(Pub, PSNF_PRIVATE); while
(CloseScreen(Pub)==0)
Delay(25);
Read over that carefully – there are three things here you need to remember
when dealing with public screens:
1) They open in PRIVATE mode so you have to call PubScreenStatus
to make it into a publicly available screen
2) You have to take it private again before you start trying to
close it.
3) CloseScreen() may fail. This will happen if there is a visitor
window on your public screen.
The program that opens the screen is responsible for closing it, or so I've
heard folks at Commodore say. Me, I think the last program out should be
responsible for closing the screen…
…Steve