TV_Text Question
Philldapill
Posts: 1,283
I'm working with the TV_Text object. I've made simple custom made menus that are printed to the screen and are updated when the use gives input. My problem is that whenever I need to update the menu, I use TV.out($00) to clear the screen, and then reprint my menu. It·works fine, except for the little flicker each time it repaints the screen. Any way around this so that it makes a smooth transitioneach repaint? I'm thinking possibly making a "buffer" array·that is TV.cols x TV.rows long in which I can write everything to in one pass, then paint it in one quick pass instead of line by line, or character by character. Anyone know of a better way?
Comments
<Edit>
It's pretty-much a drop-in for TV_Text
</Edit>
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheers,
Simon
www.norfolkhelicopterclub.co.uk
You'll always have as many take-offs as landings, the trick is to be sure you can take-off again ;-)
BTW: I type as I'm thinking, so please don't take any offense at my writing style
I've had no problems with using tv.out($01) which puts cursor at the top left without clearing the screen and overwriting what already exists. Add your own method and you can set exactly where to write to.
"Home" and overwriting will be the recommended way to avoid flicker. You should modify action of 13 ("CR") to delete the rest of the line (do it siilar as the TAB-action woks). I did that some months ago, but it seems it has vanished from my posted MPE_TEXT somehow ... funny..