• Colors and text.ini problems

    From poindexter FORTRAN@1:103/705 to All on Wed Jul 10 09:37:00 2024
    Subject: Colors and text.ini problems
    @MSGID: <668EB8AC.68131.dove.sync@realitycheckbbs.org>
    @TZ: c1e0

    I'm trying to change colors on some of my prompts. For example, I'm trying to change the "545 LastFewCallersFmt" entry by creating ctrl\text.ini with the line:

    LastFewCallersFmt: "\r\n\1n\1h\1c%-2d \1n\1g%-6u \1b\1h%-25.25s \1m%-25.25s \1n\1m%02u:%02u \1h%-8.8s \1n\1m%3d"

    (this is all on one line, terminated with a Windows CR/LF)


    I recycled the servers, but still don't see the new colors reflected when I log in again. Am I missing something?

    --pF
    ---
    þ Synchronet þ .: realitycheckbbs.org :: scientia potentia est :.
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to poindexter FORTRAN on Wed Jul 10 10:19:06 2024
    Re: Colors and text.ini problems
    By: poindexter FORTRAN to All on Wed Jul 10 2024 09:37 am

    Subject: Colors and text.ini problems
    @MSGID: <668EB8AC.68131.dove.sync@realitycheckbbs.org>
    @TZ: c1e0

    I'm trying to change colors on some of my prompts. For example, I'm trying to change the "545 LastFewCallersFmt" entry by creating ctrl\text.ini with the line:

    LastFewCallersFmt: "\r\n\1n\1h\1c%-2d \1n\1g%-6u \1b\1h%-25.25s \1m%-25.25s \1n\1m%02u:%02u \1h%-8.8s \1n\1m%3d"

    (this is all on one line, terminated with a Windows CR/LF)


    I recycled the servers, but still don't see the new colors reflected when I log in again. Am I missing something?

    That text.dat string is used when sbbs writes to the the (legacy) data/logon.lst. The colors you see when you login are likely from the logonlist.js module, which parses the data/logon.json file and uses the [logonlist] last_few_callers_fmt value from ctrl/modopts.ini to display the eached logged login. This format is different than the text.dat string since it supports more login-types.

    So in short, set [logonlist] last_few_callers_fmt instead. The default format can be seen in exec/logonlist.js.
    --
    digital man (rob)

    Rush quote #72:
    He's noble enough to know what's right, but weak enough not to choose it
    Norco, CA WX: 82.4øF, 60.0% humidity, 7 mph WNW wind, 0.00 inches rain/24hrs --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to poindexter FORTRAN on Wed Jul 10 11:47:18 2024
    Re: Colors and text.ini problems
    By: Digital Man to poindexter FORTRAN on Wed Jul 10 2024 10:19 am

    Re: Colors and text.ini problems
    By: poindexter FORTRAN to All on Wed Jul 10 2024 09:37 am

    Subject: Colors and text.ini problems
    @MSGID: <668EB8AC.68131.dove.sync@realitycheckbbs.org>
    @TZ: c1e0

    I'm trying to change colors on some of my prompts. For example, I'm trying to change the "545 LastFewCallersFmt" entry by creating ctrl\text.ini with the line:

    LastFewCallersFmt: "\r\n\1n\1h\1c%-2d \1n\1g%-6u \1b\1h%-25.25s \1m%-25.25s \1n\1m%02u:%02u \1h%-8.8s \1n\1m%3d"

    (this is all on one line, terminated with a Windows CR/LF)


    I recycled the servers, but still don't see the new colors reflected when I log in again. Am I missing something?

    That text.dat string is used when sbbs writes to the the (legacy) data/logon.lst. The colors you see when you login are likely from the logonlist.js module, which parses the data/logon.json file and uses the [logonlist] last_few_callers_fmt value from ctrl/modopts.ini to display the eached logged login. This format is different than the text.dat string since it supports more login-types.

    So in short, set [logonlist] last_few_callers_fmt instead. The default format can be seen in exec/logonlist.js.

    BTW, I went and checked the wiki and this is already documented there: https://wiki.synchro.net/module:logonlist#format
    --
    digital man (rob)

    Sling Blade quote #16:
    Karl Childers (to Doyle, re: lawn mower blade): I aim to kill you with it. Mmm. Norco, CA WX: 88.1øF, 51.0% humidity, 6 mph W wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From poindexter FORTRAN@1:103/705 to Digital Man on Wed Jul 10 14:52:49 2024
    Subject: Colors and text.ini problems
    @MSGID: <668F02B1.68135.dove.sync@realitycheckbbs.org>
    @REPLY: <668EC28A.52068.sync@vert.synchro.net>
    @TZ: c1e0
    Re: Colors and text.ini problems
    By: Digital Man to poindexter FORTRAN on Wed Jul 10 2024 10:19 am

    So in short, set [logonlist] last_few_callers_fmt instead. The default forma can be seen in exec/logonlist.js.

    That worked - I need to work on the format for modopts.ini, but in the meantime I changed logonlist.js directly and put it in the mods directory. Thanks!
    ---
    þ Synchronet þ .: realitycheckbbs.org :: scientia potentia est :.
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)