• exec/user_settings.js

    From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Friday, September 22, 2023 19:19:48
    https://gitlab.synchro.net/main/sbbs/-/commit/0d2fa10a4180dcd71bfe8a1a
    Added Files:
    exec/user_settings.js
    Log Message:
    Clean-up naming, use of global variables, remove text.dat reversion

    ---
    þ 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 Friday, September 22, 2023 19:19:48
    https://gitlab.synchro.net/main/sbbs/-/commit/5cd91025cb1cb3c45c83ede1
    Modified Files:
    exec/user_settings.js
    Log Message:
    Fix the terminal type display

    pass undefined to termdesc.type() when editing current user

    ---
    þ 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 Friday, September 22, 2023 19:44:04
    https://gitlab.synchro.net/main/sbbs/-/commit/c0831592a816ab970c8474b4
    Modified Files:
    exec/user_settings.js
    Log Message:
    We can't make a copy of 'user', need to create a new User() instance

    ... or else any changes we make aren't saved (we're just modifying this
    object in memory).

    Fix the heading (user alias is displayed, not name).

    Fix the mouse hot-spots.

    Fix the "None" default download protocol (requires latest text.js).

    Fix the hot-key option (inverted logic).

    Don't display the [K] Command Shell option if there's only one available.

    ---
    þ 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 Friday, September 22, 2023 20:44:27
    https://gitlab.synchro.net/main/sbbs/-/commit/35b9254e93c2a452f1d36281
    Modified Files:
    exec/user_settings.js
    Log Message:
    Fix the 'M' mouse hotspot

    Also clear the screen immediately cause it can take a noticable amount
    of time to read/parse the file.ini and main.ini files.

    ---
    þ 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 Friday, September 22, 2023 22:12:16
    https://gitlab.synchro.net/main/sbbs/-/commit/696679e8f158faead771217a
    Modified Files:
    exec/user_settings.js
    Log Message:
    Style update: white-space and parenthesis

    Fix-up the require() statements.

    ---
    þ 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 Saturday, September 23, 2023 14:07:55
    https://gitlab.synchro.net/main/sbbs/-/commit/6e2771064bad8f04fe9b13ba
    Modified Files:
    exec/user_settings.js
    Log Message:
    Move the 'Q' hotspot to just *after* the display of the prompt

    Fixes issue #645

    ---
    þ 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 Saturday, September 23, 2023 21:49:57
    https://gitlab.synchro.net/main/sbbs/-/commit/fa5877aa7c6819f4a2e4a58a
    Modified Files:
    exec/user_settings.js
    Log Message:
    Use the word Only from the text.dat (for localization)

    ---
    þ 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 Tuesday, October 31, 2023 22:18:14
    https://gitlab.synchro.net/main/sbbs/-/commit/291caf91a7ff5700ff9ebe2c
    Modified Files:
    exec/user_settings.js
    Log Message:
    Multi-language support and other niceties

    The get_lang_count(), get_lang_list(), and get_lang_desc_list() functions are more or less ported from load_cfg.c. If we ever need these in any other JS files, they should be moved to a load-lib.

    Re-synchronized this code with sbbs_t::maindflts():
    - Don't accept keys for settings we didn't display
    - Remove support for Auto-Login by IP address (chopping block feature)
    - This is even a tad better as a translated (to another language)
    UserDefaultsHdr string (if/when there is one) would be displayed
    immediately upon a new language file being selected

    Fixed a bug where the user online's command shell was used as the default rather than the selected user's command shell (thisuser).

    Fixed a bug where 'None' was hard-coded rather than use the text.dat string.

    No longer needs/loads text.js (use the hard-coded string IDs in sbbs v3.20)
    for a little speed boost.

    ---
    þ 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 Sunday, November 12, 2023 17:04:49
    https://gitlab.synchro.net/main/sbbs/-/commit/02f38bc126647487daef7813
    Modified Files:
    exec/user_settings.js
    Log Message:
    Fix a few text.dat string length checks (oops)

    Finish removing the AutoLogonViaIP support from this script

    ---
    þ 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 Saturday, January 27, 2024 17:48:50
    https://gitlab.synchro.net/main/sbbs/-/commit/704eba931651e21f8d85874c
    Modified Files:
    exec/user_settings.js
    Log Message:
    Fix error with PETSCII_UPPERLOWER use

    line 445: Error: can't convert PETSCII_UPPERLOWER to an integer

    reported by Nelgin

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Nigel Reed@VERT to Git commit to main/sbbs/master on Tuesday, January 30, 2024 15:52:19
    https://gitlab.synchro.net/main/sbbs/-/commit/0fe4894c8676232d072251ba
    Modified Files:
    exec/user_settings.js
    Log Message:
    Fix signature using wrong filename

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Tuesday, January 30, 2024 15:52:19
    https://gitlab.synchro.net/main/sbbs/-/commit/1917099ba9f7dabd7940a2a7
    Modified Files:
    exec/user_settings.js
    Log Message:
    Merge branch 'fix_usersettings_sig' into 'master'

    Fix signature using wrong filename

    See merge request main/sbbs!391

    ---
    þ 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 Monday, February 12, 2024 10:49:39
    https://gitlab.synchro.net/main/sbbs/-/commit/4d6691289e7e409b0b93ab98
    Modified Files:
    exec/user_settings.js
    Log Message:
    Enable raw input mode when prompting for backspace key

    Since the user we're editing here is not a pointer to the current user, changing the USER_SWAP_DELETE settings before this prompt doesn't prevent
    the DEL->BS translation from happening. Raw input mode does.

    Without this change, it would appear the user's backspace key would toggle between sending either ^H or DEL for the backspace key (for terminals that actually send DEL).

    ---
    þ 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 Monday, March 11, 2024 14:07:39
    https://gitlab.synchro.net/main/sbbs/-/commit/4ddf62f3007b4eb1826e81fa
    Modified Files:
    exec/user_settings.js
    Log Message:
    Don't allow terminal columns and rows to be set to -1

    Range check return value of console.getnum(), as is done in useredit.cpp.

    The user hitting ^C at eithe of the terminal columns or rows prompts would
    set that value -1.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Saturday, August 17, 2024 18:07:24
    https://gitlab.synchro.net/main/sbbs/-/commit/c41be9894d0ae62487b5d992
    Modified Files:
    exec/user_settings.js
    Log Message:
    Defense against TypeError: xtrn_area.editor[thisuser.editor] is undefined

    ---
    þ 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 Friday, October 11, 2024 19:38:33
    https://gitlab.synchro.net/main/sbbs/-/commit/122fec62e5950f649e966fb2
    Modified Files:
    exec/user_settings.js
    Log Message:
    Clean up the default transfer protocol selection

    was printing "None (auto-hangup)" in some cases. Wasn't very pretty or clear
    to the user what was being asked (e.g. if they accidentically entered this selection/prompt).

    Setup for localization using gettext.js.

    Using console.newline() in place of (now deprecate) console.crlf().

    ---
    þ 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 Saturday, December 27, 2025 01:28:17
    https://gitlab.synchro.net/main/sbbs/-/commit/0dfb142e2b305a69bffd5bf7
    Modified Files:
    exec/user_settings.js
    Log Message:
    Retain the last attribute set in the prompt string

    console.putmsg() saves/restores the attributes by default

    ---
    þ 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 Saturday, January 03, 2026 00:16:44
    https://gitlab.synchro.net/main/sbbs/-/commit/987eb6e3c6bdbf6caab1abb5
    Modified Files:
    exec/user_settings.js
    Log Message:
    Use bbs.select_shell() and select_editor() functions

    ---
    þ 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 Saturday, January 03, 2026 03:07:29
    https://gitlab.synchro.net/main/sbbs/-/commit/ac73681210b264342f82eec0
    Modified Files:
    exec/user_settings.js
    Log Message:
    Update the comment header block (sbbs v3.21 is required)

    ---
    þ 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 Saturday, January 03, 2026 17:22:56
    https://gitlab.synchro.net/main/sbbs/-/commit/53612dd2efd46d63c7b0c55b
    Modified Files:
    exec/user_settings.js
    Log Message:
    Use local 'User' instance (instead of global 'user') if user not logged-on yet

    i.e. user is still going through new user registration

    This fixes a regression in v3.21 whereby a new user turns off auto-terminal detection in the new user default/settings screen, but it's not shown as such (still says "Auto"). I'm pretty sure this is due to the differences of the in-memory 'useron' versus the new User class instance, but it got pretty
    deep in the weeds of the New Terminal Abstraction flags() stuff, so I just
    went with this hack.

    ---
    þ 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 Saturday, January 03, 2026 22:16:21
    https://gitlab.synchro.net/main/sbbs/-/commit/c132b9167e5b8508995961cb
    Modified Files:
    exec/user_settings.js
    Log Message:
    Fix issue with selecting language during new user registration

    Wasn't taking immediate effect

    ---
    þ 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 Sunday, January 18, 2026 20:26:33
    https://gitlab.synchro.net/main/sbbs/-/commit/afda526188d773600e18a1f5
    Modified Files:
    exec/user_settings.js
    Log Message:
    Work-around for Guest users changing their shell or editor

    We need *both* the local thisuser object and the global 'user' object to reflect their changes.

    ---
    þ 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 Sunday, January 18, 2026 21:32:49
    https://gitlab.synchro.net/main/sbbs/-/commit/c521f68d2ef9e2c107dbc421
    Modified Files:
    exec/user_settings.js
    Log Message:
    Fix issue with Guest user changing the terminal settings and language

    So there's 5 major test scenarios for this one script:
    1. new user changing their settings during registration
    2. regular user logged-in and changing their settings
    3. guest user logged-in and changing their (temporary) settings
    4. sysop using ;uedit command to change their own settings
    5. sysop using ;uedit command to change other user's settings

    Having all 5 scenarios work as expected is tricky:
    - current settings/mode is displayed/reflected in the output of the menu
    - changes made by the user are immediately reflected in the dislpayed settings - changes made by the user are saved (or at least remain "current") after quit

    ---
    þ 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 Thursday, January 22, 2026 22:12:11
    https://gitlab.synchro.net/main/sbbs/-/commit/c748069f67d92f0ce8fd4bad
    Modified Files:
    exec/user_settings.js
    Log Message:
    Provide keys to gettext() for easier customization/localization of strings

    - no_external_editors
    - choose_protocol_or_none

    ---
    þ 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 Monday, February 16, 2026 13:39:46
    https://gitlab.synchro.net/main/sbbs/-/commit/26628eb508fc527f44fe8766
    Modified Files:
    exec/user_settings.js
    Log Message:
    More customizeable text via modopts

    ---
    þ 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 Monday, February 16, 2026 16:29:28
    https://gitlab.synchro.net/main/sbbs/-/commit/2e5b692882996e082c774915
    Modified Files:
    exec/user_settings.js
    Log Message:
    Revert "More customizeable text via modopts"

    This reverts commit 26628eb508fc527f44fe8766caf5ca1a785b81e8.

    ---
    þ 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 Monday, February 16, 2026 22:59:49
    https://gitlab.synchro.net/main/sbbs/-/commit/fb91acbcb9cf3ae4a3d4ed42
    Modified Files:
    exec/user_settings.js
    Log Message:
    Allow [user_settings] prompt = something in modopts

    And other minor fix-ups

    ---
    þ 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 Monday, February 16, 2026 23:00:40
    https://gitlab.synchro.net/main/sbbs/-/commit/244674fdbde99da4427577c0
    Modified Files:
    exec/user_settings.js
    Log Message:
    Fix copy/paste error

    ---
    þ 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 Monday, February 16, 2026 23:07:10
    https://gitlab.synchro.net/main/sbbs/-/commit/065fdb0f0f738781fd82b05c
    Modified Files:
    exec/user_settings.js
    Log Message:
    Fix formatting issues only (no functional change)

    ---
    þ 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 18, 2026 17:01:34
    https://gitlab.synchro.net/main/sbbs/-/commit/b1bb2d2c1bd085078699a142
    Modified Files:
    exec/user_settings.js
    Log Message:
    When changing from no-external editor to an external editor...

    default to the configured new user external editor

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