• exec/fseditor.js

    From rswindell@VERT to CVS commit on Monday, April 15, 2019 23:57:27
    exec fseditor.js 1.90 1.91
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv28983

    Modified Files:
    fseditor.js
    Log Message:
    Better support for terminals > 80 columns wide:
    Don't use a hard-coded value of 76 for word_wrap length argument.
    Don't use the default length of 79 for the quote_msg() call.
    Display a full bar across the screen for the quote window separator



    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Tuesday, April 16, 2019 18:58:29
    exec fseditor.js 1.91 1.92
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv22099

    Modified Files:
    fseditor.js
    Log Message:
    when wrapping quoted text, leave room for ' > '


    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Sunday, April 28, 2019 00:49:25
    exec fseditor.js 1.92 1.93
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv26993

    Modified Files:
    fseditor.js
    Log Message:
    Better support for:
    - terminals with widths > 132 columns (e.g. quote section separator)
    - terminals that don't support CP437 (ex-ASCII) - use console.print()
    - terminals that send 0x7f for the backspace key (when at the end of the line
    treat DEL the same as backspace)



    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Sunday, May 19, 2019 23:18:32
    exec fseditor.js 1.93 1.94
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv28189

    Modified Files:
    fseditor.js
    Log Message:
    FSEditor will now (by default) save messages/files with long-line paragraphs rather than word-wrapped lines, leaving it to the things that display messages to perform any line-wrapping as needed.

    If you want/need the old behavior, set soft_cr=true in the [fseditor] section of your ctrl/modopts.ini file (new feature/section).



    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From mark lewis@VERT to digital man on Monday, May 20, 2019 10:09:10
    On 2019 May 20 01:18:32, rswindell wrote to CVS commit:

    Modified Files:
    fseditor.js
    Log Message:
    FSEditor will now (by default) save messages/files with long-line paragraphs rather than word-wrapped lines, leaving it to the things that display messages to perform any line-wrapping as needed.

    cool!

    If you want/need the old behavior, set soft_cr=true in the [fseditor] section of your ctrl/modopts.ini file (new feature/section).

    i like that... does this also mean that we should set the option in scfg for fseditor so that it also saves the COL control line??

    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
    ... Gates of Borg: "Resistance is futile. You WILL use Windows."
    ---
    * Origin: (1:3634/12.73)
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to mark lewis on Monday, May 20, 2019 09:41:12
    Re: exec/fseditor.js
    By: mark lewis to digital man on Mon May 20 2019 12:09 pm


    On 2019 May 20 01:18:32, rswindell wrote to CVS commit:

    Modified Files:
    fseditor.js
    Log Message:
    FSEditor will now (by default) save messages/files with long-line paragraphs rather than word-wrapped lines, leaving it to the things that display messages to perform any line-wrapping as needed.

    cool!

    If you want/need the old behavior, set soft_cr=true in the [fseditor] section of your ctrl/modopts.ini file (new feature/section).

    i like that... does this also mean that we should set the option in scfg for fseditor so that it also saves the COL control line??

    It shouldn't need the COLS control line. That's really only for editors that artificially shorten "paragraphs" due to line-wrapping and fseditor.js now doesn't do that (by default).

    digital man

    This Is Spinal Tap quote #27:
    As long as there's, y'know, sex and drugs, I can do without the rock and roll. Norco, CA WX: 62.5°F, 54.0% humidity, 5 mph ENE wind, 0.05 inches rain/24hrs

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From mark lewis@VERT to Digital Man on Monday, May 20, 2019 15:35:28
    On 2019 May 20 11:41:12, you wrote to me:

    i like that... does this also mean that we should set the option in
    scfg for fseditor so that it also saves the COL control line??

    It shouldn't need the COLS control line. That's really only for
    editors that artificially shorten "paragraphs" due to line-wrapping
    and fseditor.js now doesn't do that (by default).

    ok... i thought the COLS control line was also to help other readers but yeah, if fseditor doesn't do that any more, i can see where it isn't needed in the same way that golded doesn't...

    are my long line paragraphs, like the one i just wrote above, still coming in with hard CRs in them?

    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
    ... Cats & Dogs are Household Schedulers
    ---
    * Origin: (1:3634/12.73)
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to mark lewis on Monday, May 20, 2019 14:06:02
    Re: exec/fseditor.js
    By: mark lewis to Digital Man on Mon May 20 2019 05:35 pm


    On 2019 May 20 11:41:12, you wrote to me:

    i like that... does this also mean that we should set the option in
    scfg for fseditor so that it also saves the COL control line??

    It shouldn't need the COLS control line. That's really only for
    editors that artificially shorten "paragraphs" due to line-wrapping
    and fseditor.js now doesn't do that (by default).

    ok... i thought the COLS control line was also to help other readers but yeah, if fseditor doesn't do that any more, i can see where it isn't needed in the same way that golded doesn't...

    Yeah, it was to assist readers in re-wrapping a message to know whether existing line-breaks were hard or soft (based on the original column width).

    are my long line paragraphs, like the one i just wrote above, still coming in with hard CRs in them?

    Here's a hexdump of your message as stored here:

    190: 20 74 68 6F 75 67 68 74 - 20 74 68 65 20 43 4F 4C thought the COL
    1a0: 53 20 63 6F 6E 74 72 6F - 6C 20 6C 69 6E 65 20 77 S control line w
    1b0: 61 73 20 61 6C 73 6F 20 - 74 6F 20 68 65 6C 70 20 as also to help
    1c0: 6F 74 68 65 72 20 72 65 - 61 64 65 72 73 20 62 75 other readers bu
    1d0: 74 20 79 65 61 68 2C 20 - 0D 0A 69 66 20 66 73 65 t yeah, ..if fse
    1e0: 64 69 74 6F 72 20 64 6F - 65 73 6E 27 74 20 64 6F ditor doesn't do
    1f0: 20 74 68 61 74 20 61 6E - 79 20 6D 6F 72 65 2C 20 that any more,
    200: 69 20 63 61 6E 20 73 65 - 65 20 77 68 65 72 65 20 i can see where
    210: 69 74 20 69 73 6E 27 74 - 20 6E 65 65 64 65 64 20 it isn't needed
    220: 69 6E 20 74 68 65 20 0D - 0A 73 61 6D 65 20 77 61 in the ..same wa
    230: 79 20 74 68 61 74 20 67 - 6F 6C 64 65 64 20 64 6F y that golded do
    240: 65 73 6E 27 74 2E 2E 2E - 0D 0A 0D 0A 61 72 65 20 esn't.......are
    250: 6D 79 20 6C 6F 6E 67 20 - 6C 69 6E 65 20 70 61 72 my long line par
    260: 61 67 72 61 70 68 73 2C - 20 6C 69 6B 65 20 74 68 agraphs, like th

    It contains CRLF (0D 0A) pairs within your long line paragraph. Calling these sequences of characters a "hard CR" seems odd to me, but yeah, they're there.

    digital man

    This Is Spinal Tap quote #31:
    Viv Savage: Quite exciting, this computer magic!
    Norco, CA WX: 66.3°F, 53.0% humidity, 12 mph ENE wind, 0.05 inches rain/24hrs

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Wednesday, May 22, 2019 19:43:52
    exec fseditor.js 1.94 1.95
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv15279

    Modified Files:
    fseditor.js
    Log Message:
    When editing an existing file/message, use the current terminal screen width for the word_wrap line length (not the default, 79 cols).



    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Thursday, July 18, 2019 15:56:14
    exec fseditor.js 1.95 1.96
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv19715

    Modified Files:
    fseditor.js
    Log Message:
    Auto-determine maximum printable header field values (columns - 7), rather
    than hard-code to 60 chars - better support for wide terminals.
    Write the newly-defined "3rd line" (editor details) to the result.ed file
    (this is used by latest sbbs for EDITOR msg header field).
    Always write the result.ed file when creating a message, even if the subject was not changed. "edit_top==5" is a strange way to determine that you're editing a message, but okay...



    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Thursday, July 18, 2019 15:58:47
    exec fseditor.js 1.96 1.97
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv20332

    Modified Files:
    fseditor.js
    Log Message:
    Typo. :-{



    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Friday, August 02, 2019 01:39:45
    exec fseditor.js 1.97 1.98
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv7460

    Modified Files:
    fseditor.js
    Log Message:
    Auto-detect ZMODEM upload of message text file. Receive the file, discarding any previously quoted/typed text and save as the final message text (no editing). Useful for upload of pre-written messages or ANSI art or whatever.



    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From DeucĘ@VERT to Git commit to main/sbbs/master on Monday, February 05, 2024 16:46:17
    https://gitlab.synchro.net/main/sbbs/-/commit/66ed218f8a1032c16a674b62
    Modified Files:
    exec/fseditor.js
    Log Message:
    Fix up UTF-8 support enough so Keyop can enter a ť.

    This removes the -utf8 option and stores the line strings as unicode
    strings if the terminal supports utf8.

    A shitty inkey() wrapper and a shitty putc() wrapper were added to
    deal with this.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deuc┬┐@VERT to Git commit to main/sbbs/master on Tuesday, February 06, 2024 13:32:14
    https://gitlab.synchro.net/main/sbbs/-/commit/bf95f8a8de3a67c0ae535cab
    Modified Files:
    exec/fseditor.js
    Log Message:
    If the terminal is UTF-8 and the to/subject/from is NOT, xlat to
    utf-8 at start.

    This may be the issue Keyop was seeing.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Wednesday, February 07, 2024 22:39:05
    https://gitlab.synchro.net/main/sbbs/-/commit/4677e09239d1a05fa389ec75
    Modified Files:
    exec/fseditor.js
    Log Message:
    Pass K_UTF8 mode flag to console.inkey()

    Since this script supports/expects UTF-8 character sequences for UNICODE characters (not a CP437 translated version of mappable chars).

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deuc┬┐@VERT to Git commit to main/sbbs/master on Wednesday, February 14, 2024 22:18:04
    https://gitlab.synchro.net/main/sbbs/-/commit/1388056c41d00fbaabc4ba63
    Modified Files:
    exec/fseditor.js
    Log Message:
    Some cleanup, no functional change.

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