Welcome
The correct behaviour is that your example should display a black screen.
Print() must be repeated every cycle, it is cleared after every
Sync() (in a standard setup)
You also have to
Sync() every cycle.
Your code should look like this:
SetWindowTitle( "1st" )
SetWindowSize( 1024, 768, 0 )
// set display properties
SetVirtualResolution( 1024, 768 )
SetOrientationAllowed( 1, 1, 1, 1 )
do
print ("Hello World")
Sync()
loop
As you progress you will use the
createText() function and associated commands. These remain on screen and are massively more versatile.
Why did it appear to work on Android? You did a single Sync and then nothing else. So you got the result of one Sync, essentially a frozen screen. In Windows because of the double-buffering system, it takes 2 Syncs right at the start of the program to get things going.