Posts: 31
Threads: 8
Joined: Jul 2018
Reputation:
12
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
Posts: 18
Threads: 3
Joined: Nov 2019
Reputation:
3
mb it will be stupid tip, but use ; after last PRINT
Posts: 31
Threads: 8
Joined: Jul 2018
Reputation:
12
(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.
Posts: 1,763
Threads: 55
Joined: Aug 2019
Reputation:
24
11-17-2019, 10:23 PM
(This post was last modified: 11-17-2019, 10:38 PM by boriel.)
(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?
Posts: 31
Threads: 8
Joined: Jul 2018
Reputation:
12
(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
Posts: 1,763
Threads: 55
Joined: Aug 2019
Reputation:
24
11-19-2019, 11:14 PM
(This post was last modified: 11-19-2019, 11:15 PM by boriel.)
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.
Posts: 31
Threads: 8
Joined: Jul 2018
Reputation:
12
Gracias José, el problema está resuelto... the problem is solved
Posts: 47
Threads: 22
Joined: Mar 2019
Reputation:
0
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
Posts: 1,763
Threads: 55
Joined: Aug 2019
Reputation:
24
(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
Posts: 47
Threads: 22
Joined: Mar 2019
Reputation:
0
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
Posts: 1,763
Threads: 55
Joined: Aug 2019
Reputation:
24
02-03-2020, 05:54 PM
(This post was last modified: 02-03-2020, 05:58 PM by boriel.)
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.
Posts: 47
Threads: 22
Joined: Mar 2019
Reputation:
0
Yes now seems that work
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
Posts: 1,763
Threads: 55
Joined: Aug 2019
Reputation:
24
02-03-2020, 06:17 PM
(This post was last modified: 02-03-2020, 06:17 PM by boriel.)
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).
Posts: 47
Threads: 22
Joined: Mar 2019
Reputation:
0
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
Posts: 31
Threads: 8
Joined: Jul 2018
Reputation:
12
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.
|