• exec/fseditor.js

    From deuce@VERT to CVS commit on Wed Mar 21 06:54:00 2018
    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 Wed Mar 21 06:55:00 2018
    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 Wed Mar 21 08:02:00 2018
    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 Wed Mar 21 08:18:00 2018
    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 Tue Jun 5 19:25:00 2018
    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 Thu Nov 8 12:02:00 2018
    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 Mon Apr 15 21:57:00 2019
    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 Tue Apr 16 16:58:00 2019
    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 Sat Apr 27 22:49:25 2019
    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 Sun May 19 21:18:32 2019
    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 Mon May 20 08:09:10 2019
    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 Mon May 20 07:41:12 2019
    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 Mon May 20 13:35:28 2019
    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 Mon May 20 12:06:02 2019
    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 Wed May 22 17:43:52 2019
    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 Thu Jul 18 13:56:14 2019
    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 Thu Jul 18 13:58:47 2019
    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 Thu Aug 1 23:39:45 2019
    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 Sun Aug 4 13:05:48 2019
    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 Mon Aug 19 12:43:39 2019
    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 Mon Aug 19 14:23:03 2019
    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 Mon Aug 19 17:15:01 2019
    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 Fri Aug 30 18:13:58 2019
    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 Sat Apr 25 21:21:00 2020
    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 Mon Mar 29 05:37:26 2021
    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 Mon Apr 12 09:20:34 2021
    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 Mon Feb 5 16:46:17 2024
    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 Tue Feb 6 13:32:14 2024
    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 Wed Feb 7 22:39:05 2024
    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 Wed Feb 14 22:18:04 2024
    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