Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Disable scroll
#1
I noticed that v1.9.7 introduced upwards scrolling when a message is printed in the bottom lines of the screen.

Is there a way to disable this? In Ad Lunam, each time something is printed at lines 22-23, and this happens often, the screen scrolls and the information contained in it disappears. This is very annoying  Angry
Reply
#2
mb it will be stupid tip, but use ; after last PRINT
Reply
#3
(11-17-2019, 04:00 PM)Week of the agents Wrote: mb it will be stupid tip, but use ; after last PRINT

I appreciate your try, but honestly, I don't see how that should prevent the screen from scrolling when printing at line 23. And in fact, it doesn't.
Reply
#4
(11-17-2019, 04:31 PM)Alessandro Wrote:
(11-17-2019, 04:00 PM)Week of the agents Wrote: mb it will be stupid tip, but use ; after last PRINT

I appreciate your try, but honestly, I don't see how that should prevent the screen from scrolling when printing at line 23. And in fact, it doesn't.

This is a bug (just tested). It should not scroll.

Sorry, overlooked this message. And has been fixing another (really nasty & hidden) bug.
I will add a -D DISABLE_PRINT_SCROLL flag when compiling so scroll is disabled.
What do you think?
Reply
#5
(11-17-2019, 10:23 PM)boriel Wrote: I will add a -D DISABLE_PRINT_SCROLL flag when compiling so scroll is disabled.
What do you think?

Is it a temporary measure until you correct the bug? All right, as long as it removes that annoying effect  Smile
Reply
#6
For the moment, try downloading this version:
http://www.boriel.com/files/zxb/zxbasic-...-win32.zip
http://www.boriel.com/files/zxb/zxbasic-...ta1.tar.gz
http://www.boriel.com/files/zxb/zxbasic-1.9.9-beta1.zip

Compile with -D DISABLE_SCROLL to disable scroll completely. I will leave this flag even if the scroll is fixed.
Reply
#7
Gracias José, el problema está resuelto... the problem is solved  Smile
Reply
#8
Hi 

I tried     zxbasic-1.9.9-beta1.zip  and  zxbasic-1.9.9-beta1.tar.gz

for the problem of the scroll in the 23 line and do not work

I tried with 

a)   -D DISABLE_PRINT_SCROLL
b)   -D DISABLE_SCROLL

its another one?¿?¿?


you can try this simple program

print at 23,0;"hello"
print at 23,0;"hello"
print at 23,0;"hello"
pause 0 ' to see all the screen

Only must be one "hello" if there isn't  scroll
Reply
#9
(02-03-2020, 12:57 PM)maeloterkim Wrote: [...]

you can try this simple program

print at 23,0;"hello"
print at 23,0;"hello"
print at 23,0;"hello"
pause 0 ' to see all the screen

Only must be one "hello" if there isn't  scroll

Try adding a ; (semicolon) after the "hello" so it reads:
print at 23, 0; "hello";

and tell me if it works Smile
Reply
#10
if you try this  WITH semicolon  (the pause 0 and cls is only for the test)

print at 23,0;"01234567890123456789012345678912";
pause 0

print at 23,0;"h";
pause 0

cls

print at 23,31;"h";
print at 23,31;"h";
print at 23,31;"h";
pause 0 ' to see all the screen


have the same problem
Reply
#11
Yes, this is a bug. I'm fixing it.

EDIT: it seems the changes in 1.9.9-beta1 are lost. I'm uploading 1.9.9-beta2 again. It should work as expected.
Try it and tell me, please:

http://www.boriel.com/files/zxb/zxbasic-...-win32.zip
http://www.boriel.com/files/zxb/zxbasic-...ta2.tar.gz
http://www.boriel.com/files/zxb/zxbasic-1.9.9-beta2.zip

Wit this version your program should work either with -D DISABLE_SCROLL or without anything.
Reply
#12
Yes now seems that work  Smile

the scroll are disable

WITH and WITHOUT   -D DISABLE_SCROLL

maybe is posible to make this way

if the user wants to disable put  -D DISABLE_SCROLL

and if do not want don't put  -D DISABLE_SCROLL

this way is more flexible

now the compiler don't care about  -D DISABLE_SCROLL
Reply
#13
It does:if you don't use -D DISABLE_SCROLL it will scroll.

try without semicolon ";" at the end

Code:
print at 23, 31; "h"
print at 23, 31; "h"
print at 23, 31; "h"
The last "h" won't scroll unless something else is printed on the screen (it mimics the behaviour of the original Sinclair BASIC as much as possible). Smile
Reply
#14
the compiler DON'T CARE about the -D DISABLE_SCROLL

now printing with semicolon and without semicolon have the same behaviour

with and without  -D DISABLE_SCROLL

let me explain

if you print with semicolon don't scroll

whether you put  -D DISABLE_SCROLL or not

if you print without semicolon, then there is scroll

whether you put  -D DISABLE_SCROLL or not

now the problem is "fixed" in the way that mimics the spectrum behaviour

but not is stopping all the scroll with -D DISABLE_SCROLL if you print without semicolon

now you can forget the -D DISABLE_SCROLL  because the behaviour now is like the spectrum

or you can add the  -D DISABLE_SCROLL to disable the scroll ALWAYS with and without semicolon as an option Smile 

Reply
#15
Hi, I just found that in version 1.9.9 the -D DISABLE_SCROLL option does not work anymore. It does not prevent the screen from scrolling upwards like it did in 1.9.9 beta 1.

1.9.9 beta 2 works fine though. Beta 3 does not.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)