• graphics.js limited to 16-color ANSI

    From Codefenix@VERT/CONCHAOS to Digital Man on Wednesday, April 22, 2026 08:40:54
    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 ]=-
  • From Digital Man@VERT to Codefenix on Wednesday, April 22, 2026 10:29:39
    Re: graphics.js limited to 16-color ANSI
    By: Codefenix to Digital Man on Wed Apr 22 2026 08:40 am

    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?).

    No, Ctrl-A codes are limited to the usual ANSI.SYS/CGA palette.
    --
    digital man (rob)

    Synchronet "Real Fact" #16:
    Synchronet first supported FidoNet networking (with SBBSFIDO) in 1992
    Norco, CA WX: 62.0°F, 61.0% humidity, 1 mph WSW wind, 0.00 inches rain/24hrs ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net