This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
PTS's profile picture

[1.31] Rudimentary colour for screens and consoles

Started by PTS, 10 March 2012 - 10:25 AM
PTS #1
Posted 10 March 2012 - 11:25 AM
Making a GUI would really be so much better if the term API had some colour functionality. Nothing fancy, just basic colours and a function that prints text in colour, on the choosen background colour. Think of how older BIOS versions look. Seeing how screen peripherials are coming up, think of all the things that'd be made possible!

If colours would postpone the release too much, all that I ask for is an invertWrite function that prints black-on-white, for highlighting the current menu choice, for instance.
Casper7526 #2
Posted 10 March 2012 - 11:28 AM
The "background" is black because of the image file being black :mellow:/>/>
We had colored text a few versions back, but it breaks other functions which make it unreliable. IE lots of string functions, lots of print/write/term functions. Maybe one day we'll color again, but until then we gotta stick to editing the font file if we want crazy stuff on screen ;)/>/>
PTS #3
Posted 10 March 2012 - 12:06 PM
Oh, bummer. What about the inverted mode? Any chances?