![]() |
Color control codes - Printable Version +- Forum (https://www.boriel.com/forum) +-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11) +--- Thread: Color control codes (/showthread.php?tid=113) |
Color control codes - LCD - 05-21-2009 Hallo boriel, you wrote, the control codes can be used like in BasIn, I tested it: Code: print at 0,0;"\{i7}\{p2}\{b1}Test" Code: print at 0,0;"\{i7p2b1}Test" Quote:The escape sequences for control characters are as follows: Btw: Release 1.2.1 is excellent. My latest test Program needed 8 Kb before, now it is only 4 Kb... Re: Color control codes - boriel - 05-21-2009 LCD Wrote:Hallo boriel, you wrote, the control codes can be used like in BasIn, I tested it:Yes: Didn't know BASIN allowed that. Which version do you have? I will implement it, anyway. Quote:Btw: Release 1.2.1 is excellent. My latest test Program needed 8 Kb before, now it is only 4 Kb...Errr. It needs 4Kb less to load, but once run, the HEAP zone will be created and it will take another 4Kb (Heap is the temporary memory for string management). So you ended up using 8kb again. In the next releases a new flag for the heap will be used so you can specify a 1024bytes heap, etc. Re: Color control codes - LCD - 05-21-2009 boriel Wrote:Release 15 beta, but it was implemented earlier. It was described in chapter "the .bas file format". There are also other escape sequences like Puond Sterling code too...LCD Wrote:Hallo boriel, you wrote, the control codes can be used like in BasIn, I tested it:Yes: Didn't know BASIN allowed that. Which version do you have? boriel Wrote:This is what I expected, 4K less to load is still very good result... I hope, the heap does not go over 49152, because this will surely cause a nice crash if I switch the bank on Spectrum 128Quote:Btw: Release 1.2.1 is excellent. My latest test Program needed 8 Kb before, now it is only 4 Kb...Errr. It needs 4Kb less to load, but once run, the HEAP zone will be created and it will take another 4Kb (Heap is the temporary memory for string management). So you ended up using 8kb again. In the next releases a new flag for the heap will be used so you can specify a 1024bytes heap, etc. ![]() Re: Color control codes - LCD - 06-25-2010 Now BorIDE can calculate the available free space correctly, after compilation. If you find some time (next month, I suppose), boriel, please check the colour codes again, in print at 0,0;"\{i7p2b1}Test" as it still refuses to work :wink: maybe for 1.2.6 Final? Re: Color control codes - boriel - 06-25-2010 LCD Wrote:Now BorIDE can calculate the available free space correctly, after compilation. If you find some time (next month, I suppose), boriel, please check the colour codes again, inThis is not implemented yet. Only: Code: print at 0,0;"\{i7}{p2}{b1}Test" I will try this weekend, but the @label bug is more important at the moment. Re: Color control codes - LCD - 06-25-2010 boriel Wrote:Quote from BasIN instruction as in the first post:LCD Wrote:Now BorIDE can calculate the available free space correctly, after compilation. If you find some time (next month, I suppose), boriel, please check the colour codes again, inThis is not implemented yet. Only: Quote:so that for instance \{i6p1f1} is equivalent to \{i6}\{p1}\{f1}I understand that the @label bug is more important, so I wrote that this color codes are not THAT important. It was just that over one year ago you said, you will implement it anyway :wink:. No need to hurry. It was just a question :mrgreen: Re: Color control codes - britlion - 02-28-2012 LCD Wrote:I understand that the @label bug is more important, so I wrote that this color codes are not THAT important. It was just that over one year ago you said, you will implement it anyway :wink:. No need to hurry. It was just a question :mrgreen: 2.5 years ago ![]() Re: Color control codes - LCD - 02-28-2012 britlion Wrote:Oh, that long already? Oh my god!!!LCD Wrote:I understand that the @label bug is more important, so I wrote that this color codes are not THAT important. It was just that over one year ago you said, you will implement it anyway :wink:. No need to hurry. It was just a question :mrgreen: |