Commit Graph
95 Commits
Author SHA1 Message Date
Neo ed35ad2f70 Merge pull request #27 from D-Modem/claude/project-thread-u6e15a
Nightly release: the apps from main's newest build, each day
2026-11-20 22:38:58 -08:00
Claude 7ebf6e3c99 Nightly: the release lists a missing file by its name; no tag is no commit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRR6tKgobV4RbMTv4eL
2026-11-21 06:31:29 +00:00
Claude 970890b3f6 Nightly release: the apps from main's newest build, each day
nightly.yml takes the artifacts of the newest complete run of build.yml
on main and replaces the "nightly" pre-release with them. It stops
when main has no new commits. build.yml now packs each artifact as a
.tar.gz or .zip (an artifact does not keep the executable bit), and the
Linux (GTK 4) job uploads its app too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRR6tKgobV4RbMTv4eL
2026-11-21 06:29:32 +00:00
Neo cb35cb2eb5 Merge pull request #23 from D-Modem/claude/project-thread-b4zlk2
ZMODEM: zstd compression (CANZSTD/ZTZSTD)
2026-11-20 18:34:54 -08:00
Claude 46585abadd ZMODEM receiver: a quiet line in a file is an error, not the end
When noise damaged the ZDLE before a subpacket's ZCRCQ (or a ZEOF), the
sender waited for an answer that the receiver could not give, and the
receiver gave up after 10 s of quiet. It now sends ZRPOS, as for a bad
CRC, and gives up only after 4 quiet waits in a row. Found by CI on the
zstd noisy test; 49 noisy runs at 1 in 2000 to 1 in 3200 now all pass
(before, the first two failed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRR1WNeCEtXUcjE8RgY
2026-11-21 02:28:15 +00:00
Claude 66232933d4 Merge remote-tracking branch 'origin/main' into claude/project-thread-b4zlk2
# Conflicts:
#	windows/src/resource.h
#	windows/src/xfer.cpp
2026-11-21 02:08:33 +00:00
Neo 15df4fa46a Merge pull request #26 from D-Modem/claude/project-thread-g3spou
Add the Call menu and the COM port settings
2026-11-20 15:12:48 -08:00
Claude 4cd7fc8f56 Add the Call menu and the COM port settings
HyperTerminal's Call menu for the Windows app: Call (sessions with a
name and a number, kept in [sessions]), Wait for a Call (ATS0=1, sent
again when the modem opens), Disconnect, and Send Break.

Line Settings gets the COM port settings: bits per second, data bits,
parity, stop bits and flow control (none, Xon/Xoff, hardware).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRekyRUhR43KbmGNXK
2026-11-20 23:05:50 +00:00
Neo afa2c42587 Merge pull request #25 from D-Modem/claude/project-thread-g3spou
Add Terminal Settings, a connect timer and Send Break
2026-11-20 15:02:33 -08:00
Claude 8d6316e7ce Add Terminal Settings, a connect timer and Send Break
HyperTerminal's Terminal Settings for each terminal of the Windows app
([terminal], [remote_terminal]): Backspace (Ctrl+H, Del, or Ctrl+H Space
Ctrl+H), terminal or Windows keys, backscroll lines, font, cursor, the
Telnet terminal ID, and exit upon disconnecting.

The status bar shows the connect timer during a call. Send Break (Modem
menu, Ctrl+Break) sends a break on a COM port or as Telnet's IAC BRK.

Core: dmc_vt_set_scrollback and dmc_net_break, with tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRekyRUhR43KbmGNXK
2026-11-20 22:55:35 +00:00
Neo 4f7e90f598 Merge pull request #24 from D-Modem/claude/project-thread-g3spou
Add ASCII Setup to the Windows app
2026-11-20 14:48:59 -08:00
Claude 77a487fe4f Add ASCII Setup to the Windows app
The HyperTerminal ASCII Setup dialog (Modem menu), kept in [ascii]:
- Sending: Enter as CR LF, local echo, line and character delays.
- Receiving: an LF after each CR, 7-bit ASCII, wrap of long lines.

The receive items are in the core terminal (dmc_vt_set_ascii), with
tests. The settings apply to the modem and Remote terminals.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRekyRUhR43KbmGNXK
2026-11-20 22:42:03 +00:00
Claude ce1fa43f5c ZMODEM: zstd compression (CANZSTD/ZTZSTD)
ZMODEM with zstd as docs/zmodem-zstd.md of D-Modem specifies, on top of
the crash recovery of #22:

- core/src/zstd_codec.c: a Zstandard (RFC 8878) encoder and decoder for
  whole frames, and XXH64, in plain C (a port of the app's Zstd.kt; no
  libzstd).
- xfer_z.c: CANZSTD in ZRINIT ZF1, ZTZSTD in ZFILE ZF2. Each chunk of the
  file goes as one frame (64 KB, halved after a ZRPOS to 1 KB, doubled
  after an ACK); the receiver writes only whole frames, so positions stay
  file offsets and ZRPOS and crash recovery work as before. Files of 0
  bytes, with a compressed extension, or whose first 64 KB don't get 5%
  smaller go as they are. A ZTZSTD file is skipped when we did not set
  CANZSTD.
- dmc_xfer_options.no_zstd stops it, and dmc_xfer_zstd() tells if the file
  now goes with zstd (the status struct is not changed).
- Windows: Transfer > ZMODEM Compression (zstd), on by default, and
  "(zstd)" after the file name in the progress dialog.
- Tests: the specification's vector, XXH64, round trips, against the
  reference zstd CLI when installed; ZMODEM with zstd in memory (smaller
  on the line, a noisy line, off on either side, a .zip, resume).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRR1WNeCEtXUcjE8RgY
2026-11-20 22:38:20 +00:00
Neo fcbee27d5b Merge pull request #22 from D-Modem/claude/project-thread-g3spou
Add YMODEM-G, ZMODEM crash recovery, Skip file and text delays
2026-11-20 14:33:14 -08:00
Claude 804e52c4d4 Add YMODEM-G, ZMODEM crash recovery, Skip file and text delays
The transfer items of HyperTerminal that the GUI did not have:

- YMODEM-G (DMC_XFER_YMODEM_G): streamed blocks with no ACKs; an error
  ends the transfer. A sender asked with C does plain YMODEM, and the
  receiver takes the end of lrzsz's sb, which sends no empty block 0.
- ZMODEM crash recovery (dmc_xfer_options.resume, and the sender's
  ZCRECOV): a part of a file in the folder is continued with a ZRPOS
  from its length, a whole one is skipped, and a part is kept when the
  transfer stops. The dialogs list "ZMODEM with Crash Recovery".
- Skip file (dmc_xfer_skip): ZSKIP for ZMODEM, X in the ACK for Kermit.
  The progress dialog has a Skip file button.
- Plain text line and character delays (dmc_xfer_options), read from
  dmodem.ini [ascii] until the ASCII Setup dialog comes.

Also: a ZSKIP while the sender waits for a ZCRCQ's ACK now ends the
file; before, the sender failed with "no answer".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRekyRUhR43KbmGNXK
2026-11-20 22:27:22 +00:00
Neo 294cd25f5c Merge pull request #21 from D-Modem/claude/project-thread-g3spou
Add Copy, Capture and Print to the Windows terminals
2026-11-20 14:25:27 -08:00
Claude e6a3f4ad89 Add Copy, Capture and Print to the Windows terminals
The terminal control keeps a selection: drag with the left button,
double-click a word, Shift with the mouse when the remote takes it.
Copy (Ctrl+Insert), Paste to Host (Shift+Insert) and Select All are in
a new Edit menu and on the right button's menu, as HyperTerminal has
them.

capture.cpp adds Capture Text (the line's bytes to a file), Capture to
Printer (its text printed when you stop), each with Pause, and
Modem > Print (the screen or the selection). What the remote sends to
its printer port (CSI 5 i) now goes to the printer; before, the app
discarded it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRekyRUhR43KbmGNXK
2026-11-20 22:14:14 +00:00
Neo f1664a95ad Merge pull request #20 from D-Modem/claude/project-thread-g3spou
Add file transfers to the Windows app
2026-11-20 14:05:51 -08:00
Claude 3f33ae3065 Fix the xfer_test build on macOS
Include signal.h for kill, and define _DARWIN_C_SOURCE for mkdtemp.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRekyRUhR43KbmGNXK
2026-11-20 22:02:27 +00:00
Claude e5842d2223 Add file transfers to the Windows app
Port the file transfer protocols of the D-Modem app to libdmodemctl:
ZMODEM (with automatic receive for sz, rz and kermit -s), YMODEM,
XMODEM, XMODEM-1K, Kermit, Intel HEX, Motorola S-records and plain
text. Each transfer runs on its thread, with two queues to the app.

The Windows app gets a Transfer menu, Send File and Receive File
dialogs, a progress dialog, and Send and Receive buttons on the
Terminal page. A transfer uses the modem line or the Remote login.

Also:
- link_pump takes only as much session output as the port can hold.
  Before, a large output was cut.
- The winport shims for serial, pipes, the environment and Beep are
  guarded, because the latest clang-retro MFC layer has them.
- core/test/xfer_test tests each protocol on a clean and a noisy
  line, and against lrzsz and C-Kermit when they are installed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRekyRUhR43KbmGNXK
2026-11-20 22:01:10 +00:00
Neo b4ca7d5b4c Merge pull request #18 from D-Modem/claude/project-thread-q3zs8l
Build the Windows app for Linux and macOS over clang-retro MFC's Win32 layer (TCP and SSH first pass)
2026-11-20 12:08:14 -08:00
Claude cea7aec05e winport: give llvm-rc app.rc by a relative path (macOS paths look like options)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRhKGCaYUyYtH7Boap
2026-11-20 14:01:37 +00:00
Claude f354ab01d0 Build the Windows app for Linux and macOS over clang-retro MFC's Win32 layer
First pass: TCP and SSH. With -DDMODEM_GUI_WINPORT=ON and CLANG_RETRO_MFC
set to a clang-retro MFC checkout, winport/ builds libwinport.a with the
MFC Makefile, converts app.rc with res2cpp.py, and links the same Win32
sources (now listed once, in windows/sources.cmake) as dmodem-win32.

The layer does not have serial ports, pipes or audio yet: winport/include
and winport/src/stubs.cpp supply stand-ins that fail, to remove when the
layer gets these functions. DMODEM_WINPORT blocks in the app: the settings
in ~/.config/D-Modem, TCP as the default line, ~/.ssh and '/' for SSH,
Unicode marks in the path view (no Wingdings), and group boxes put under
the other controls (the layer's hit test stops at HTTRANSPARENT).

CI builds it on Linux and macOS, and on Linux starts it in Xvfb against
a test modem on the TCP port (winport/test/smoke.sh).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRhKGCaYUyYtH7Boap
2026-11-20 13:58:32 +00:00
Neo d44aadb1ac Merge pull request #17 from D-Modem/claude/project-thread-q3zs8l
Add SSH to the Windows 95 build
2026-11-20 05:55:55 -08:00
Claude e4190ee1c3 gai_strerror.c: compile to nothing on systems other than Windows
The macOS Xcode project compiles each file of ssh/src, and this one
included <winsock2.h>.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRhKGCaYUyYtH7Boap
2026-11-20 10:54:11 +00:00
Claude 6916b16111 Keep if_nametoindex in libssh's ssh_is_ipaddr for Linux and macOS
The patch renamed both calls in misc.c; the second ssh_is_ipaddr is the
one for systems other than Windows, where dmodem_if_nametoindex was not
defined.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRhKGCaYUyYtH7Boap
2026-11-20 10:47:47 +00:00
Neo 83cdbd2665 Merge pull request #13 from D-Modem/claude/project-thread-0xgx4j
Settings: the connection path at the top, as PCOMM draws its link
2026-11-20 02:45:44 -08:00
Claude 579fc9a706 Add SSH to the Windows 95 build
The win32-picolibc build (Windows 95, 98, ME, NT 4.0 and later) now has
libssh and mbedTLS, as the other builds do. DMODEM_GUI_SSH is ON for
every build.

- mbedTLS: CryptGenRandom of CryptoAPI, found at run time, in place of
  BCryptGenRandom (Vista) before Vista; picolibc's gmtime_r and the
  Windows zeroize in place of gmtime_s and memset_s.
- libssh: SHGetSpecialFolderPathA (IE4 shell), if_nametoindex (Vista) and
  WSAStringToAddressA (Winsock 2) found at run time before Vista, with
  USERPROFILE and inet_addr in their place; picolibc build flags and a
  <direct.h>.
- gai_strerrorA with FormatMessageA (mingw-w64's calls FormatMessageW).
- agent.c: strcasecmp for _stricmp on picolibc.

The app still imports only DLLs that every Windows 95 has; the 9x and
NT 4.0 import checks pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRhKGCaYUyYtH7Boap
2026-11-20 10:44:54 +00:00
Claude fd8be5cce4 Merge remote-tracking branch 'origin/main' into claude/project-thread-0xgx4j
# Conflicts:
#	docs/design.md
2026-11-20 10:38:04 +00:00
Neo 1eee72ae9e Merge pull request #16 from D-Modem/claude/project-thread-q3zs8l
Build the Windows app with clang-retro
2026-11-20 02:33:09 -08:00
Claude 47a11a3f1d Build the Windows app with clang-retro
Replace Open Watcom (windows/build-watcom.sh) and MSVC in CI with
clang-retro: cmake/clang-retro.cmake, a CMake toolchain file that takes
the clang-dos toolchain package (CLANG_DOS) and a --config target
(CLANG_RETRO_CONFIG).

- Windows 95 and later: win32-picolibc (static C library, no msvcrt.dll),
  no SSH. CI checks its imports for 9x and NT 4.0.
- Windows 7 and later: win7, with libssh and mbedTLS built for it.
- CI runs the tests of both builds in Wine.
- picolibc names for _snprintf, _stricmp and _strnicmp; a main for
  picolibc's start-up code; DMODEM_GUI_SSH to turn the SSH build off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRhKGCaYUyYtH7Boap
2026-11-19 11:42:05 +00:00
Neo 5a99e31910 Merge pull request #15 from D-Modem/claude/project-thread-2y4er4
Support the MultiTech MT9234MU: find it on Linux, page ATI11
2026-11-17 03:13:26 -08:00
Claude 6324b7fff4 Ship MultiTech's mts_mt9234mu.fw for Linux
linux/firmware has MultiTech's firmware for the MT9234MU, with a
README that gives its source (linux-firmware before June 2026), that
its licence is unknown, and that the AGPL and commercial licences do
not apply to it.

cmake --install puts it in share/dmodem-gui/firmware; with
-DDMODEM_GUI_INSTALL_FIRMWARE=ON also in /lib/firmware (and as
mts_mt9234zba.fw). When a modem has no firmware, Settings now names
the shipped copy and where to copy it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTNWiwCE3duMg28226
2026-11-16 21:15:43 +00:00
Claude f9cdab9b95 Support the MultiTech MT9234MU: find it on Linux, page ATI11
- libdmodemctl: a command's response in pages (ATI11 on the Agere
  modems, the MultiTech MT9234 among them) stops at "Press any key".
  The session now sends a space at that prompt, for 8 pages at most,
  and keeps the prompt out of the response. So the Call Stats page
  gets the full report instead of a timeout. Text typed in the
  terminal is left to the user. A test covers it.
- Linux: usbmodem.c finds an MT9234MU or MT9234ZBA-USB in sysfs. The
  line settings show its ttyUSB with a "Use" button, or say that it
  needs mts_mt9234mu.fw (or the ti_usb_3410_5052 driver). Its port
  opens with RTS/CTS (the modem's &K3).
- docs/design.md: hardware modems on each system, the firmware file
  and the country setting (AT%T19).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTNWiwCE3duMg28226
2026-11-16 19:55:14 +00:00
Neo 56370b0ced Merge pull request #14 from D-Modem/claude/project-thread-fur9m9
docs: rewrite the documentation in Simplified Technical English
2026-11-15 21:44:21 -08:00
Claude 73c988c678 docs: keep the shared suite table the same as in the other repositories
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRRR4BV2CBsQMqfrT6
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-14 10:30:14 +00:00
Claude 4f09eabbea docs: rewrite README and design in Simplified Technical English
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRRR4BV2CBsQMqfrT6
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-14 10:29:47 +00:00
Claude 66c4b39401 docs: add the STE style guide and require it in CONTRIBUTING.md
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRRR4BV2CBsQMqfrT6
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-14 10:28:35 +00:00
Claude b71ec471b6 docs: the connection path on Linux, five line settings
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTvKupDGEromPgYtjG
2026-11-13 14:33:06 +00:00
Claude efe498686e dmc_path: a modem that already runs isn't itself to set, only its port
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTvKupDGEromPgYtjG
2026-11-13 14:32:33 +00:00
Claude 622dab60b1 Settings: the connection path at the top, as PCOMM draws its link
The Settings page now opens with how a call is made: the terminal, the
modem, the line and what it reaches (or a port, the modem and its line
for a modem that already runs), each step's role above its icon and
what it is below, one line joining them. Idle it shows the line
settings as they are (a step still to set in red, its line dashed, and
a line saying what); starting, dialling and online it lights as the
call goes.

libdmodemctl's dmc_path has the steps and their words, tested; Linux
draws them with Cairo, Windows with GDI (Windows 95's Wingdings), macOS
in SwiftUI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTvKupDGEromPgYtjG
2026-11-13 14:30:58 +00:00
Neo 6483b867c1 Merge pull request #12 from D-Modem/claude/project-thread-gxvnan
Anonymous SIP: dial a SIP address with no account (Linux, Windows, macOS)
2026-11-12 11:32:32 -08:00
Claude 50844a1e6f Anonymous SIP: dial a SIP address with no account (Linux, Windows, macOS)
A "No account (anonymous)" switch in the line settings starts dmodemd
with SIP_LOGIN=anonymous: nothing registered, sip:user@host (or
user@host) dialled as it is from "Anonymous", for the Modem page's
data calls and the Phone page's voice calls; the account's fields are
hidden (Linux, macOS) or greyed (Windows) and kept.  The number fields
say they take a SIP address too.  Needs D-Modem with the anonymous user
agent (D-Modem/D-Modem#112).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSJKSd2kxxKFZAiaXQ
2026-11-12 19:25:20 +00:00
Neo 258d0abf59 Merge pull request #11 from D-Modem/claude/project-thread-eywog3
SSH: PuTTY keys (.ppk) used or imported; Pageant on Windows, an ssh-agent on Linux and macOS
2026-11-12 10:25:31 -08:00
Claude bc449e67ea Windows: the key file's open dialog sized for the Windows SSH runs on (MSVC has no OPENFILENAME_SIZE_VERSION_400) 2026-11-12 15:50:24 +00:00
Claude 86d41bfcc0 SSH engine: agent.c's functions documented 2026-11-12 15:48:28 +00:00
Claude 9886e736a4 macOS: the SSH login's popover (the way, a key file, the agent's socket) and PuTTY key import; docs 2026-11-12 15:45:51 +00:00
Claude 5e1a895245 Windows: the SSH Login dialog (keys and Pageant, the agent alone, a key file) and PuTTY key import 2026-11-12 15:44:04 +00:00
Claude 089d9e3555 SSH: PuTTY's .ppk keys, Pageant and OpenSSH's agent on Windows, an agent's socket chosen; the Linux app's login menu and PuTTY key import 2026-11-12 15:40:10 +00:00
Neo 34610baca6 Merge pull request #10 from D-Modem/claude/project-thread-eywog3
Built-in SSH on libssh for every desktop app
2026-11-12 05:53:14 -08:00