• exec/user_settings.js

    From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Tue Oct 31 22:18:14 2023
    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.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Sun Nov 12 17:04:48 2023
    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
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Sat Jan 27 17:48:50 2024
    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
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nigel Reed@1:103/705 to Git commit to main/sbbs/master on Tue Jan 30 15:52:18 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/0fe4894c8676232d072251ba
    Modified Files:
    exec/user_settings.js
    Log Message:
    Fix signature using wrong filename
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to Git commit to main/sbbs/master on Tue Jan 30 15:52:18 2024
    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
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Mon Feb 12 10:49:38 2024
    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).
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Mon Mar 11 14:07:38 2024
    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.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Sat Aug 17 18:07:24 2024
    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
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Fri Oct 11 19:38:32 2024
    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().
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Fri Oct 25 14:50:52 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/566a09f509b60d9ffa8fe378
    Modified Files:
    exec/user_settings.js
    Log Message:
    Update the node*/terminal.ini for every iteration of this menu

    (as is/was done in useredit.cpp)

    Fix the default download protocol columning display (missing final
    newline in many cases).
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Sun Oct 27 22:44:48 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/84cfdbe4524e8e247821bbac
    Modified Files:
    exec/user_settings.js
    Log Message:
    Use the new bbs.xfer_prot_menu() method

    In place of the copy/pasted/ported from C++ version of the same logic
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Wed Jan 1 23:47:28 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/928d7a652dc07608b758cc55
    Modified Files:
    exec/user_settings.js
    Log Message:
    Don't change user settings when the user hits Ctrl-C to abort

    ... or at least, try really hard not to
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Thu Jan 23 23:32:16 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/4a18c2c691037fcc96f179b2
    Modified Files:
    exec/user_settings.js
    Log Message:
    Use Archive.suopported_formats, if defined, instead of hard-coded list of file types

    Remove an apparent nnecessary reset of console.aborted flag
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Sat Feb 1 15:00:36 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/2af72560df16d9bf45c29de6
    Modified Files:
    exec/user_settings.js
    Log Message:
    Default "Foward email to netmail" answer to the current setting

    As much as possible, ENTER should mean "no change".
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)