Re: graphics.js limited to 16-color ANSI
By: Digital Man to Codefenix on Mon Apr 20 2026 12:54 pm
I don't know of any pending improvements to graphic.js, but it certainly is like most things in Synchronet, up for change as wanted or needed. If you feel like adding additional ANSI sequence support to graphic.js and submitting a PR, it'd likely be merged into master.
Yeah, I had a look, and it seems like quite the rabbit hole. :)
I believe the ANS->MSG conversion that happens within would make this challenging, at least in my use case, since I don't think you can do 256 colors with CTRL-A codes (can you?).
frame.js appears to have the same 16-color limitation as graphic.js upon initial glance.
I think I'll back-burner this idea for now, and settle for detecting 256-color sequences, and if found, output using plain old console.printfile instead as a workaround.
|08ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
|15 Ü|07 Ü |08Ü |11codefenix |08³
|15 Û|07ÛÛÛ|08Û |09ConstructiveChaos BBS |08³
|15 Þ|07ÜÛÜ|08Ý |01conchaos.synchro.net |08³ |08ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
|07
---
þ Synchronet þ -=[ ConstructiveChaos BBS | conchaos.synchro.net ]=-