• exec/textedit.js

    From Deuc¿@VERT to Git commit to main/sbbs/master on Monday, March 03, 2025 09:07:35
    https://gitlab.synchro.net/main/sbbs/-/commit/bb89ab6ce5b2da497bfb7f1e
    Added Files:
    exec/textedit.js
    Log Message:
    Start of a text.dat editor

    Right now it's just a text.dat browser, but it's already somewhat
    useful, so I'm comitting it.

    Up/Down = Change entry
    CTRL-G = Go to entry by number
    PageUp/PageDown = Change output method (putmsg, mnemonics, print)
    Q = Quit
    Left/Right = Move the cursor around in the source text

    This must be ran from the terminal server, it's really not reasonable
    to do a text.dat editor as stand-alone.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Monday, March 03, 2025 09:17:17
    https://gitlab.synchro.net/main/sbbs/-/commit/406c1bef80be806ab79f5d48
    Modified Files:
    exec/textedit.js
    Log Message:
    Add example args for MsgAttr as well.

    Nicer example than MsgSubj IMO.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Monday, March 03, 2025 09:25:19
    https://gitlab.synchro.net/main/sbbs/-/commit/89feb588ad1d026c7f331911
    Modified Files:
    exec/textedit.js
    Log Message:
    FileInfoEditPrompt uses mnemonics() as well.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Monday, March 03, 2025 10:54:23
    https://gitlab.synchro.net/main/sbbs/-/commit/051cf24f70f353218ba96238
    Modified Files:
    exec/textedit.js
    Log Message:
    Some more mnemonics() and do theoretical 40-col support

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Monday, March 03, 2025 12:13:08
    https://gitlab.synchro.net/main/sbbs/-/commit/581d79d4f9214989e48b7d0a
    Modified Files:
    exec/textedit.js
    Log Message:
    Actually allow editing (and some other fixes)

    Home/End move the the expected place.
    CTRL-Q now quits, not Q
    CTRL-R "runs" a message (ie: doesn't abort) useful for @EXEC:noyesbar@
    CTRL-Z undoes all changes (reloads text.dat value)
    CTRL-V allows entering a hex value
    ^ allows entering a CTRL-code
    \ allows an escape character

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Monday, March 03, 2025 13:10:53
    https://gitlab.synchro.net/main/sbbs/-/commit/402b9a701fbc1d550b8efaa6
    Modified Files:
    exec/textedit.js
    Log Message:
    Don't subtract one from TOTAL_TEXT anymore

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Monday, March 03, 2025 14:00:05
    https://gitlab.synchro.net/main/sbbs/-/commit/db0539fbc69b926acc59bcd3
    Modified Files:
    exec/textedit.js
    Log Message:
    Always pass P_NOATCODES when calling print()

    This is to work around an issue when fiddling with text data, and
    will likely be able to be removed at some point.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Monday, March 03, 2025 14:13:13
    https://gitlab.synchro.net/main/sbbs/-/commit/874d23794025e2c35b624727
    Modified Files:
    exec/textedit.js
    Log Message:
    Ah, here's the point the P_NOATCODES can be removed.

    That was quick!

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Monday, March 03, 2025 15:30:53
    https://gitlab.synchro.net/main/sbbs/-/commit/a42f6a8e37d291ed341a2110
    Modified Files:
    exec/textedit.js
    Log Message:
    Add CTRL-S to "save"

    This simply writes changed values to ctrl/textedit.ini, you can
    copy these into the appropriate text.ini or text.dat.

    I haven't dug in to see if text.dat has different encoding than ini
    or anything, and I think that if you want to use this to build a
    full text.dat, you would want to do it a bit at a time, so a follow-
    on utility to convert text.ini to text.dat is likely the easiest way
    to do this stuff.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Monday, March 03, 2025 15:30:53
    https://gitlab.synchro.net/main/sbbs/-/commit/69adca057f25b42f97b52842
    Modified Files:
    exec/textedit.js
    Log Message:
    Load saved textedit.ini at start.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Monday, March 03, 2025 16:24:41
    https://gitlab.synchro.net/main/sbbs/-/commit/21d30e104d9e6fedc5db6e96
    Modified Files:
    exec/textedit.js
    Log Message:
    Remove cleartoeos() hack

    It's in JS now.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net