home bbs files messages ]

Just a sample of the Echomail archive

<< oldest | < older | list | newer > | newest >> ]

 Message 48089 
 Kirkman to All 
 Couple oddities 
 11 Nov 25 22:24:07 
 
TZUTC: -0600
MSGID: 53504.syncprog@1:103/705 2d7a148b
PID: Synchronet 3.21a-Linux guardian/8a076b781 Sep 03 2025 GCC 6.3.0
TID: SBBSecho 3.31-Linux master/d39e01091 Nov 03 2025 GCC 12.2.0
BBSID: GUARDIAN
CHRS: CP437 2
FORMAT: flowed
NOTE: SlyEdit 1.92b (2025-08-02) (ICE style)
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
 * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
SEEN-BY: 10/0 1 102/401 103/1 705 105/81 106/201 124/5016 128/187
SEEN-BY: 129/14 153/7715 154/110 214/22 218/0 1 215 610 700 810 226/30
SEEN-BY: 227/114 229/110 206 317 400 426 428 470 700 705 266/512 280/464
SEEN-BY: 291/111 301/1 320/219 322/757 342/200 396/45 460/58 633/280
SEEN-BY: 712/848 902/26 5075/35
PATH: 103/705 218/700 229/426


<< oldest | < older | list | newer > | newest >> ]

(c) 1994,  bbs@darkrealms.ca