Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
There is a picture on the top half of the screen (LOAD IMAGE). On the lower half is varying text (generated wint PRINT). Is there a way to clear the lower half of the screen only, keeping the picture on the top half in place. I have OPTION LCDPANEL CONSOLE active.
matherp Guru
Joined: 11/12/2012 Location: United KingdomPosts: 8578
Posted: 06:57pm 09 Jan 2020
Copy link to clipboard
Print this post
BOX 0,MM.VRES\2,MM.HRES,MM.VRES,,0,0
hkoetz Newbie
Joined: 30/03/2019 Location: NetherlandsPosts: 19
Posted: 02:49pm 11 Jan 2020
Copy link to clipboard
Print this post
The attached photo shows what happens. How do I print and clear inside the box?
hkoetz Newbie
Joined: 30/03/2019 Location: NetherlandsPosts: 19
Posted: 03:26pm 11 Jan 2020
Copy link to clipboard
Print this post
I get it. You paste a box filled with background colour over the text.
Thx
matherp Guru
Joined: 11/12/2012 Location: United KingdomPosts: 8578
Posted: 03:42pm 11 Jan 2020
Copy link to clipboard
Print this post
Not sure what you are trying to do. If you want to constrain the console to work inside the box it can't be done. In a program you just use normal drawing commands as per the MM2/MM+/MMX manuals
Turbo46
Guru
Joined: 24/12/2017 Location: AustraliaPosts: 1593
Posted: 11:39pm 12 Jan 2020
Copy link to clipboard
Print this post
Sorry but I have not use the BOX command yet. But if you use [lw] = 0:
BOX 0,MM.VRES\2,MM.HRES,MM.VRES,0,0,0
Does it draw a box without a border? If so can you use:
To clear the area and position the cursor to where you want it?
BillKeep safe. Live long and prosper.
robert.rozee Guru
Joined: 31/12/2012 Location: New ZealandPosts: 2286
Posted: 03:18am 13 Jan 2020
Copy link to clipboard
Print this post
it looks like hkoetz is trying to create an adventure game, using one of the screen modes provided by the apple ][. as i recall, the apples had a split-screen mode where the top half was graphics, while the bottom half supported about a dozen lines of text. this text, when scrolling, did not affect the graphic image.
peter: does the MZ version of mmbasic support VT100 escape sequences? if it did, it would be easy to set up a text window smaller than the whole screen. does it support some sort of cursor positioning? i've never used mmbasic on an MZ processor myself.
if not already there, it would be useful if all versions of mmbasic that support redirecting the console to an attached LCD also supported VT100 escape sequences, or at least some subset thereof.
cheers, rob :-)
matherp Guru
Joined: 11/12/2012 Location: United KingdomPosts: 8578
Posted: 07:58am 13 Jan 2020
Copy link to clipboard
Print this post
MZ MMBasic is the same as MM+ with respect to screen/console handling - no more, no less