• src/syncterm/syncterm.c

    From Deucе@1:103/705 to Git commit to main/sbbs/master on Wednesday, September 25, 2024 21:56:43
    https://gitlab.synchro.net/main/sbbs/-/commit/3247302d708bbf2569409083
    Modified Files:
    src/syncterm/syncterm.c
    Log Message:
    Start UIFC in insert mode.

    Per comment on reddit by dialsoft, the lack of an insert key on
    laptops can make manipulating the phonebook more difficult. Since
    all the other UIFC functions have an insert alternate, they don't
    need any changes now that there's a manual, but for editing a
    string, the insert key is the only way to toggle overstrike.

    Since the insert mode toggle persists, simply starting in overstrike
    mode should be fine.

    Maybe some weird control key of function key can be used (though
    I guess laptops don't have function keys either anymore).
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on ChromeOS)@1:103/705 to Git commit to main/sbbs/master on Saturday, September 28, 2024 18:01:29
    https://gitlab.synchro.net/main/sbbs/-/commit/e04a5488f935fdc648f88036
    Modified Files:
    src/syncterm/syncterm.c
    Log Message:
    Add missing period in "Upgrade detected" help text.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Sunday, September 29, 2024 18:10:09
    https://gitlab.synchro.net/main/sbbs/-/commit/acf5fca632a92e2ba9323396
    Modified Files:
    src/syncterm/syncterm.c
    Log Message:
    Fix bool inversion introduced by 8f7cfadf44

    quitting needs to be set to true, not false when quitting. :(
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Sunday, October 13, 2024 22:48:50
    https://gitlab.synchro.net/main/sbbs/-/commit/09daa29e768b4c5f870af086
    Modified Files:
    src/syncterm/syncterm.c
    Log Message:
    Get correct Haiku file paths.

    It appears the "right" place to put downloads is on the Desktop...
    and the OS won't tell you that.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Friday, January 03, 2025 13:15:43
    https://gitlab.synchro.net/main/sbbs/-/commit/1af568c2496675d12b963ce6
    Modified Files:
    src/syncterm/syncterm.c
    Log Message:
    Annotate missing commas
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Wednesday, January 08, 2025 20:52:24
    https://gitlab.synchro.net/main/sbbs/-/commit/3ae264bc2c45beff90e5c30f
    Modified Files:
    src/syncterm/syncterm.c
    Log Message:
    Initialize bbs->fast_connected
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Thursday, January 16, 2025 11:33:16
    https://gitlab.synchro.net/main/sbbs/-/commit/599aea8e39f425078a6f6f8d
    Modified Files:
    src/syncterm/syncterm.c
    Log Message:
    Fix OSS appearence in Audio settings.
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Wednesday, January 22, 2025 20:50:27
    https://gitlab.synchro.net/main/sbbs/-/commit/85f37c8f0f7a65194544346c
    Modified Files:
    src/syncterm/syncterm.c
    Log Message:
    If stdout is a tty, use ANSI output mode

    Should make DigitalMan happy by making help output be in the console
    on Windows with syncterm.com. Hopefully syncterm.exe doesn't get
    the help output hosed by this.

    Also, if the output mode is ANSI, don't require a key press to exit.
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Wednesday, January 22, 2025 20:53:00
    https://gitlab.synchro.net/main/sbbs/-/commit/470f017137e276001a36ffc9
    Modified Files:
    src/syncterm/syncterm.c
    Log Message:
    Add an extra newline after displaying usage.
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Thursday, January 23, 2025 05:04:57
    https://gitlab.synchro.net/main/sbbs/-/commit/1987338c571f4b1eff57cdab
    Modified Files:
    src/syncterm/syncterm.c
    Log Message:
    This is what 470f0171 was when I committed it. :(
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Saturday, January 25, 2025 00:34:52
    https://gitlab.synchro.net/main/sbbs/-/commit/8de3080760ec09d5f09c7c4e
    Modified Files:
    src/syncterm/syncterm.c
    Log Message:
    Don't show a size until we get the content-length or start getting bytes

    Prevents cached lists from showing zero.
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Sunday, March 15, 2026 14:09:13
    https://gitlab.synchro.net/main/sbbs/-/commit/2c65f4bde3b1958a96c50a60
    Modified Files:
    src/syncterm/syncterm.c
    Log Message:
    Fix multiple bugs in syncterm.c

    - get_xdg_path(): strcat("syncterm") ignored bufsz, return NULL if
    the path would overflow the buffer.
    - webget calloc: add NULL check, wrap download block in if(reqs!=NULL)
    to avoid NULL dereference on allocation failure.
    - Progress bar: change %.*s to %*s so spaces are actually printed,
    and scale percentage from 0-100 to 0-10 to match the bar width.

    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Sunday, March 15, 2026 19:01:12
    https://gitlab.synchro.net/main/sbbs/-/commit/12fd92f158ca258ca2524ed6
    Modified Files:
    src/syncterm/syncterm.c
    Log Message:
    Fix webget progress bar wrapping in showbuf window

    The showbuf content area is 70 chars wide (74 - 2 borders - 2 padding),
    but the progress line was 73 chars, causing the bar to wrap. Reduce size
    field widths from %9s to %7s — no information is lost since byte_estimate_to_str() with precision=3 produces at most 7 characters.

    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Thursday, April 02, 2026 19:59:03
    https://gitlab.synchro.net/main/sbbs/-/commit/9ad6ac0765a4f972aa08b93c
    Modified Files:
    src/syncterm/syncterm.c
    Log Message:
    Use XDG_DOWNLOAD_DIR on *nix

    Default to $HOME/Downloads

    The default download directory on all *nix builds (except macOS)
    was previously $HOME. This meant that ZModem auto-downloads can
    place files directly in your home directory, potentially without
    you noticing if it's fast enough.

    While it would request confirmation if it's overwriting, if it's
    a file that doesn't exist, it would be dropped right there. This
    is potentially VERY BAD, it could create a .bash_profile if you're
    using .profile for example, a .xsessionrc, etc. files that are
    automatically executed and assumed trusted, but often don't exist
    already on most systems.

    While this technically isn't *quite* as bad as memory errors where
    the remote will potentially have full access to your system, it's
    much more trivial to turn into a real exploit.

    Reported by JQuast on IRC.
    Thanks again for reaching out and reporting these security issues
    with SyncTERM.

    I'd like to take this time to clarify that you SHOULD NOT use
    SyncTERM to access a POSIX shell, there's a LOT of sequences that
    "standard" terminal emulators have specifically stopped supporting
    because they pose clear security risks. SyncTERM gleefully supports
    these sequences. If you us this for a shell and ssh to untrusted
    systems, copy/paste commands in or out of the terminal, or even
    run things like curl and support redirects, there are strange gotchas
    waiting for you.
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Saturday, April 25, 2026 04:52:26
    https://gitlab.synchro.net/main/sbbs/-/commit/ed82082bbd196b30c4f880dd
    Modified Files:
    src/syncterm/syncterm.c
    Log Message:
    syncterm: runtime-init popup_q_mutex for Win32 portability

    PTHREAD_MUTEX_INITIALIZER isn't a constant expression under xpdev's
    Win32 pthread wrapper, so the static initializer broke the mingw64
    build. Initialize the mutex with pthread_mutex_init() at the top of
    main() before any thread that could post to the popup queue.

    Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)