• src/syncterm/syncterm.c

    From Deuc¿@VERT to Git commit to main/sbbs/master on Thursday, March 14, 2024 10:29:34
    https://gitlab.synchro.net/main/sbbs/-/commit/45793a5709bdec5efbb0a155
    Modified Files:
    src/syncterm/syncterm.c
    Log Message:
    Use XDG paths, clean up code

    Instead of ~/.syncterm, use paths as specified in the XDG Base Directory Specification
    https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

    This should really have something that notifies a user everything
    moved and instructs them on where each thing should be placed to
    keep data from older versions.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Thursday, March 14, 2024 10:48:13
    https://gitlab.synchro.net/main/sbbs/-/commit/f9d921f8ded7b794652e5c04
    Modified Files:
    src/syncterm/syncterm.c
    Log Message:
    Move list into .config on *nix

    Per https://wiki.debian.org/XDGBaseDirectorySpecification, CONFIG
    should be fairly small files that you would want to maintain in
    a VCS... the list makes sense here.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Thursday, March 14, 2024 10:51:04
    https://gitlab.synchro.net/main/sbbs/-/commit/35f0feff4832a9e8bcbb5bc1
    Modified Files:
    src/syncterm/syncterm.c
    Log Message:
    Fix windows build

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Thursday, March 14, 2024 16:16:53
    https://gitlab.synchro.net/main/sbbs/-/commit/cc8f53a57208dc0861d45def
    Modified Files:
    src/syncterm/syncterm.c
    Log Message:
    Add upgrade check and "help" text.

    It basically says "You should move files from where they are to
    where they should be".

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Thursday, March 14, 2024 16:19:56
    https://gitlab.synchro.net/main/sbbs/-/commit/af67404a3f56b11b9b01c159
    Modified Files:
    src/syncterm/syncterm.c
    Log Message:
    Fix random upper-case Letter.

    ---
    þ 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 Tuesday, April 23, 2024 00:25:42
    https://gitlab.synchro.net/main/sbbs/-/commit/668d2e5942618af91e8bb7e7
    Modified Files:
    src/syncterm/syncterm.c
    Log Message:
    Fix apparent missing return statement in get_win_filename()

    Found by MSVC warning

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT 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).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on ChromeOS)@VERT 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.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT 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. :(

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT 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.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT 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

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT 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

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT 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.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT 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.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT 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.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT 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. :(

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT 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.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT 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>

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¨@VERT 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>

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Tuesday, March 17, 2026 15:38:07
    https://gitlab.synchro.net/main/sbbs/-/commit/90fd3acb4c9be21bd8e75bcc
    Modified Files:
    src/syncterm/syncterm.c
    Log Message:
    Only require a port number for network connections.

    Fixes URI command-line arguments for non-network connections.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¨@VERT to Git commit to main/sbbs/master on Wednesday, March 18, 2026 17:35:47
    https://gitlab.synchro.net/main/sbbs/-/commit/8e735467d51fd58dfb4bf28e
    Modified Files:
    src/syncterm/syncterm.c
    Log Message:
    Fix 9 terminfo bugs and add 5 missing capabilities

    Bugs fixed:
    rmam: \E[7l -> \E[?7l (was resetting wrong mode, not DECAWM)
    rs1: \E[c -> \Ec (was sending DA query, not RIS)
    hts: \E[H -> \EH (was cursor home, not set tab stop)
    smglr: \E?69l -> \E[?69l (missing bracket)
    mgc: \e[69l -> \E[?69l (lowercase escape + wrong mode prefix)
    smglp/smgrp: \E[69h/l -> \E[?69h/l (bare mode 69 doesn't exist)
    ind: \E[S -> \n (SU doesn't move cursor; LF is correct per xterm)
    ri: \E[T -> \EM (SD doesn't move cursor; ESC M is correct per xterm)
    csr: remove duplicate entry

    New capabilities:
    vpa Ä vertical position absolute (CSI Pn d)
    khome Ä Home key (\E[H)
    kich1 Ä Insert key (\E[@)
    u6/u7 Ä cursor position report format and DSR query

    Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Thursday, March 19, 2026 14:38:35
    https://gitlab.synchro.net/main/sbbs/-/commit/e89754f2017a212123986411
    Modified Files:
    src/syncterm/syncterm.c
    Log Message:
    Fix zombie process on window close while connected (ticket 229)

    CIO_KEY_QUIT is pushed once when the window closes. After the main
    loop consumes it, check_exit() sets quitting but UIFC_XF_QUIT was
    never set, so any subsequent uifc.list() call blocks forever waiting
    for input from the dead window.

    Fix: check_exit() now returns true immediately if quitting is already
    set, and sets UIFC_XF_QUIT alongside quitting so all uifc calls bail
    out instead of blocking.

    Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT 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.

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