Interesting. I've just tried this again and the original code posted by zeone3000 worked perfectly first time. I then checked which version I was using and it was DBProU77RC7. When I re-installed DBP9Ex the flickering returned so there's something else going on here.
When I added the two lines that Sedit suggested the exe wouldn't display at all for some odd reason

. The code I used is Sedit's original suggestion with only one extra sync added plus the sync on command as he suggests, i.e.
sync on
CLS RGB(255,0,0)
print "hello world"
sync
wait key
end
When I added the extra sync at the beginning as I suggested earlier, i.e.
sync on
sync
CLS RGB(255,0,0)
print "hello world"
sync
wait key
end
the code then worked perfectly. So I'm still baffled why Sedit's original suggestion worked. Here's what he said:
Quote: "If I place Sync on at the start then a sync command after print it works fine."
Perhaps he thought he'd mentioned the first sync - but hadn't?