On Ubuntu Linux here, when I call HideDisplay() and then call ShowDisplay(), the display will hide but not show again and the program will hang.
It does work on Raspberry Pi OS and AmigaOS 4, unless you unhide the program yourself before the program gets to it.
Code: Select all
DebugPrint("hiding in 2 seconds")
Wait(2, #SECONDS)
HideDisplay()
DebugPrint("showing in 2 seconds")
Wait(2, #SECONDS)
ShowDisplay()
DebugPrint("done")
WaitLeftMouse()