On 7/22/22 13:46, Nightfox wrote:
> One caveat that I've found though is that if you're using background
> codes (which are numeric), I ended up splitting the string; otherwise
> it would interpret the nex number wrong.
>
> For instance, if you want to output a blue background (Ctrl-A + 4),
> then I'd do this in JavaScript:
>
> "\x01" + "4";
>
> Otherwise, if you have "\x014", then that would be interpreted as hex
> number 14, which would be interpreted as a different character.
Have you tried using the octal escape? "\001" instead? Not sure, but I
don't think I've seen an issue with it.
--
Michael J. Ryan - tracker1@roughneckbbs.com
---
þ Synchronet þ Roughneck BBS - roughneckbbs.com
--- SBBSecho 3.15-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
|