The TV display driver uses $00 for a home and clear window. By default, the window is the whole screen. Look at the windowed text driver that's used for a list of the control codes. The VGA driver uses a different set of control codes, but $00 also does a Home and Clear Screen.
DISPLAY $00 : rem Send a $00 to the display to clear the screen
Thanks Mike! The tv_wtext.spin list of screen commands is very helpful.
One thing leads to another, and while viewing the code, I see many statements involving color. Is there a color version FemtoBasic with operating manual and examples?
There's no color version because the existing versions do color. Look again at the list of screen commands. You can set the color palette of each character in the TV version to one of 16 foreground / background pairs and each line in the VGA version. In the TV version, you can change the foreground and background color of any of the 16 palettes. In the VGA version, you set the foreground / background colors for each row of the display. This is a restriction of the VGA driver used.
The DISPLAY statement makes it easy to handle these screen command sequences.
It's possible to change to a different display driver. I've used Chip's 1024 x 768 pixel tile-based driver for example. It takes a little work to add it because the driver doesn't include much in the way of interface routines. FemtoBasic needs things like .dec / .bin / .hex / .str and ways to position the cursor, backspace, fiddle with color, etc.
Post Edited (Mike Green) : 5/3/2009 8:55:39 PM GMT
Thanks Mike! FemtoBasic has evolved into a very powerful and useful BASIC language. I'm working on some programming examples and test routines that will include many of the features. I also started a supplement to the FemtoBasic Manual that includes your good suggestions and information.
Comments
DISPLAY $00 : rem Send a $00 to the display to clear the screen
One thing leads to another, and while viewing the code, I see many statements involving color. Is there a color version FemtoBasic with operating manual and examples?
The DISPLAY statement makes it easy to handle these screen command sequences.
It's possible to change to a different display driver. I've used Chip's 1024 x 768 pixel tile-based driver for example. It takes a little work to add it because the driver doesn't include much in the way of interface routines. FemtoBasic needs things like .dec / .bin / .hex / .str and ways to position the cursor, backspace, fiddle with color, etc.
Post Edited (Mike Green) : 5/3/2009 8:55:39 PM GMT
I did a AiGeneric mod of Femto that does color, etc but currently only works under NTSC.
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Visit the: The Propeller Pages @ Warranty Void.
Post Edited (humanoido) : 5/4/2009 11:38:40 AM GMT