Hi,
I ran into a strange thing in my program, which after narrowing down to a piece of test code, might be a bug in the RUN statement.
In my program I am using the bottom line (locate 25,1) as status line. This all works fine, and the printing on that line and elsewhere on screen doesn't cause screen scrolling. In some part of the program, I can choose to restart and do this with the RUN statement, as this makes sure all files are closed and variables 'forgotten'.
After this re-RUN, the program screen starts scrolling when printing on line 23. This isn't an issue at first run.
This small piece of code shows the issue. First time you see a scrolling counter, and the two bottom lines are static as expected. After re-RUN, line 24 is also used and the screen starts scrolling. The status line (25) then also scrolls away.
I've been messing with CLS, changing to different SCREEN, making sure last print command isn't at bottom etc.
It looks like a re-RUN isn't a 100% clean restart of the program?
If you enable the GOTO Start line (jumps to line 1) the program doesn't break. But then all garbage is not cleared ;-)
Any thoughts?
Start:
INPUT "Press enter to RUN"; x$
'GOTO Start