Over the past week I've been revisiting some of my old ANSImations and attempting to "remaster" them with various improvements.
Tonight I ran into two weird glitches.
1. If you use putmsg() to write text in a color (say blue-on-black), then OVERWRITE that text with identical text in a different color (say red-on-black), it works as expected. But if instead you were to overwrite with BLACK-on-black, it does NOT work. The frame keeps the previous attributes (blue) instead of changing to black.
In contrast, console.putmsg() does NOT have this problem. It handles black-on-black just fine.
I presume there is a logic problem in Frame.prototype.putmsg(), but I haven't been able to figure it out.
2. If you put CTRL-A color codes within a string, they will consume the previous character. For example:
```
var lowRed = '\1N\1R\10';
var lowBlue = '\1N\1B\10';
console.putmsg(lowBlue+'TEST1 TEST1'+lowRed+' TEST1')
```
... will result in the characters `TEST1 TEST TEST1` being output. The second numeral "1" has been dropped.
This happens in both the console.putmsg() and the Frame.js .putmsg(). This seems wrong to me, but is it actually expected behavior?
I put together a short javascript test case if anyone wants to look:
https://gist.github.com/Kirkman/a7829b9fd99ba7106762c672f9df1a63
--Josh
////--------------------------------------------------
BiC -=-
http://breakintochat.com -=- bbs wiki and blog
---
þ Synchronet þ Guardian of Forever | guardian.synchro.net | St. Louis, MO