• exec/fseditor.js

    From deuce@VERT to CVS commit on Thursday, July 23, 2015 19:32:31
    exec fseditor.js 1.80 1.81
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv8379

    Modified Files:
    fseditor.js
    Log Message:
    Copy the quote line from the quote buffer into the message rather than inserting the quote line as-is.

    The inerting method would mean that edits made to a quoted line were also
    made in the quote buffer (which is supposed to be read-only).




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From deuce@VERT to CVS commit on Wednesday, July 29, 2015 18:39:23
    exec fseditor.js 1.81 1.82
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv6316

    Modified Files:
    fseditor.js
    Log Message:
    Go back to the pre-0.75 behaviour of always ending lines with CRLF on output.

    Previously, this was done as Synchronet didn't natively support re-wrapping
    to the console screen width (and word_wrap() didn't exist), so fseditor
    needed a way to distinguish between "soft" and "hard" CRs when unwrapping.

    This is no longer the case, so the space-newline pair for soft CRs is no
    longer useful. Instead, it can now cause an issue where a blank line is rendered in some terminals when there is a soft CR after a character in the second-last column.

    The space was added for FTS-0001 compatability, but since we will now use
    CRLF pairs, this is no longer an issue.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Sunday, December 17, 2017 20:19:23
    exec fseditor.js 1.82 1.83
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv15587

    Modified Files:
    fseditor.js
    Log Message:
    Change the PageUp and PageDown ctrl-key mapping to Ctrl-P (previous)
    and Ctrl-N (next) instead Ctrl-O and Ctrl-P, to be compatible with the internal mapping now in sbbs. Doesn't work in quote mode for some reason.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Tuesday, January 30, 2018 17:13:21
    exec fseditor.js 1.83 1.84
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv22724

    Modified Files:
    fseditor.js
    Log Message:
    Strip control characters (if any) from values read from editor.inf
    drop file.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Wednesday, March 21, 2018 10:54:35
    exec fseditor.js 1.84 1.85
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv8956

    Modified Files:
    fseditor.js
    Log Message:
    Remove CTRL-N to "select none" (deselect all) in quote mode since DigitalMan decided that CTRL-N should be page-down. This should fix page down in quote mode which has been broken since 1.83 three months ago (with a mention in the log that the commit broke fseditor.js)




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Wednesday, March 21, 2018 10:55:20
    exec fseditor.js 1.85 1.86
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv9243

    Modified Files:
    fseditor.js
    Log Message:
    Add CTRL-N to ctrlkey passthru and remove CTRL-O.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Wednesday, March 21, 2018 12:02:24
    exec fseditor.js 1.86 1.87
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv16989

    Modified Files:
    fseditor.js
    Log Message:
    Add CTRL-\ as a synonym for CTRL-S to avoid collision with Xon.
    Missing synonym since 1.74 (over 8 years ago)



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Wednesday, March 21, 2018 12:18:16
    exec fseditor.js 1.87 1.88
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv19010

    Modified Files:
    fseditor.js
    Log Message:
    Update the help text to list all keys.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Tuesday, June 05, 2018 23:25:18
    exec fseditor.js 1.88 1.89
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv27754

    Modified Files:
    fseditor.js
    Log Message:
    Use the js.on_exit() method of restoring the bbs.sys_status and console.ctrlkey_passthru values. This allows these critical session
    settings to be restored even if/when fseditor.js crashes/abends
    (e.g. exits unexpectedly due to unhandled JS exception).



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Thursday, November 08, 2018 17:02:36
    exec fseditor.js 1.89 1.90
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv3627

    Modified Files:
    fseditor.js
    Log Message:
    Detect if the user disconnects, save the file (draft in-progress) and return
    1 (indication of error).



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Monday, May 20, 2019 01: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 12: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 11: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 17: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 16: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 21: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 17: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 17: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 03: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 rswindell@VERT to CVS commit on Sunday, August 04, 2019 17:05:48
    exec fseditor.js 1.98 1.99
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv30385

    Modified Files:
    fseditor.js
    Log Message:
    Some basic UTF-8 support for message header fields (e.g. Subject) and message text and quoted text. Enabled with the "-utf8" command-line option or by setting utf8_support=true in the [fseditor] section of modopts.ini.
    When UTF-8 support is enabled, the corresponding SCFG toggle option
    ("Support UTF-8 Encoding") should also be set to "Yes".
    This is still a work-in-progress and UTF-8 character input and inserting
    ASCII chars on lines that contain UTF-8 is still problematic.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Monday, August 19, 2019 16:43:39
    exec fseditor.js 1.99 1.100
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv18310

    Modified Files:
    fseditor.js
    Log Message:
    Added a Ctrl-AN to the end of quoted text blocks. When quoting a message
    which uses Ctrl-A codes, this resets the attributes back to "normal" so the reply text doesn't "inherit" the original message's attributes.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Monday, August 19, 2019 18:23:03
    exec fseditor.js 1.100 1.101
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv342

    Modified Files:
    fseditor.js
    Log Message:
    Now that the CVS revision is 5 chars (1.10x), this messed up the status line (became a blank/solid blue line).
    Remove one space between "CTRL-K for help" and "Insert/Overwrite Mode" to accommodate the new longer revision. This should work for 898 more revisions.
    < 80 col terminals likely have a different issue wiht the status line
    we should look at as well.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Monday, August 19, 2019 21:15:01
    exec fseditor.js 1.101 1.102
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv28788

    Modified Files:
    fseditor.js
    Log Message:
    Remove the hack from rev 1.100 and fix make_strings() with regards to
    setting normal/lightgray text attributes when saving message text to file: WHITE is 0x0f (high-intensity lightgray). LIGHTGRAY is 0x07.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Friday, August 30, 2019 22:13:58
    exec fseditor.js 1.102 1.103
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv18780

    Modified Files:
    fseditor.js
    Log Message:
    Support default_tabstop setting in [fseditor] section of modopts.ini Store/restore the user's choosen tabstop value (if not the same as the default) in/from user's props file (data/user/####.ini).



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Sunday, April 26, 2020 01:21:00
    exec fseditor.js 1.103 1.104
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv20523

    Modified Files:
    fseditor.js
    Log Message:
    Better error reporting upon failure opening/creating files.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¨@VERT to Git commit to main/sbbs/master on Monday, March 29, 2021 09:37:26
    https://gitlab.synchro.net/main/sbbs/-/commit/fbc4388850dd489bc8dc0bab
    Modified Files:
    exec/fseditor.js
    Log Message:
    Don't use handle_backspace() to handle delete.

    While they both delete a character, delete at the end of a line will
    move the next line up instead of moving this line up.

    Fixes #243

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¨@VERT to Git commit to main/sbbs/master on Monday, April 12, 2021 13:20:34
    https://gitlab.synchro.net/main/sbbs/-/commit/011ae39c681714539aedeec2
    Modified Files:
    exec/fseditor.js
    Log Message:
    Do not use js.report_error()

    Properly throw an error instead.

    ---
    þ 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