Hack-a-Day / basic-badge

2018 Hackaday Belgrade Hardware Badge
MIT License
36 stars 8 forks source link

New word for BASIC color #17

Closed szczys closed 6 years ago

szczys commented 6 years ago

Add a word in BASIC to allow simple foreground/background colors. Considering this is a retrocomputer, EGA 16-color palette would be amazing!

jaromir-sukuba commented 6 years ago

Since 0.29 there is new word color X,Y that sets foreground to color X and background to color Y, with X and Y being in range 0..15 Color palette isn't much optimized by now

jaromir-sukuba commented 6 years ago

Since 0.30 the color palette is now 16-color EGA

szczys commented 6 years ago

Tested and working.

Breaking from your demo code the colors don't reset to default on the prompt. I'm not sure this matters but thought I'd point it out.