![]() |
Disable scroll - Printable Version +- Forum (https://www.boriel.com/forum) +-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11) +---- Forum: How-To & Tutorials (https://www.boriel.com/forum/forumdisplay.php?fid=13) +---- Thread: Disable scroll (/showthread.php?tid=907) Pages:
1
2
|
Disable scroll - Alessandro - 11-17-2019 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 ![]() RE: Disable scroll - Week of the agents - 11-17-2019 mb it will be stupid tip, but use ; after last PRINT RE: Disable scroll - Alessandro - 11-17-2019 (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. RE: Disable scroll - boriel - 11-17-2019 (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 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? RE: Disable scroll - Alessandro - 11-18-2019 (11-17-2019, 10:23 PM)boriel Wrote: I will add a -D DISABLE_PRINT_SCROLL flag when compiling so scroll is disabled. Is it a temporary measure until you correct the bug? All right, as long as it removes that annoying effect ![]() RE: Disable scroll - boriel - 11-19-2019 For the moment, try downloading this version: http://www.boriel.com/files/zxb/zxbasic-1.9.9-beta1-win32.zip http://www.boriel.com/files/zxb/zxbasic-1.9.9-beta1.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. RE: Disable scroll - Alessandro - 11-20-2019 Gracias José, el problema está resuelto... the problem is solved ![]() RE: Disable scroll - maeloterkim - 02-03-2020 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 RE: Disable scroll - boriel - 02-03-2020 (02-03-2020, 12:57 PM)maeloterkim Wrote: [...] Try adding a ; (semicolon) after the "hello" so it reads: print at 23, 0; "hello"; and tell me if it works ![]() RE: Disable scroll - maeloterkim - 02-03-2020 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 RE: Disable scroll - boriel - 02-03-2020 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-1.9.9-beta2-win32.zip http://www.boriel.com/files/zxb/zxbasic-1.9.9-beta2.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. RE: Disable scroll - maeloterkim - 02-03-2020 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 RE: Disable scroll - boriel - 02-03-2020 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" ![]() RE: Disable scroll - maeloterkim - 02-03-2020 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 ![]() RE: Disable scroll - Alessandro - 04-29-2020 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. |