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
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
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
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
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
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
The library now reads WAV of 8 to 32-bit PCM, floats, A-law, mu-law,
IMA and Microsoft ADPCM, AIFF and AIFF-C, and Sun/NeXT .au, at any rate
and channel count (dmc_audio_decode; dmc_wav_decode stays as its old
name). Each app hands the rest to the system's decoders:
- Linux: libsndfile when built with it (MP3, FLAC, Ogg Vorbis, Opus)
- Windows: the ACM codecs (MP3 and compressed WAVs), Windows 95 and up
- macOS: AVAudioFile (MP3, AAC/M4A, FLAC, ALAC, CAF)
The decoders were checked against ffmpeg's for each format, and fuzzed
under ASan and UBSan; the Windows path was run under Wine.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTvbHMpudRfQWK4c4H
libdmodemctl now drives dmodemd's V.253 voice mode: placing and
answering voice calls, the DLE stream and its events, G.711 mu-law,
DTMF, and an answering machine (greeting, beep, recording) that takes
messages as WAV files. It is off until the user turns it on.
Each app gains a Phone page: Linux (PulseAudio), Windows (waveOut and
waveIn, Windows 95 and later) and macOS (AVAudioEngine).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTvbHMpudRfQWK4c4H
The suite's licence, as D-Modem, bbs, menu and brand: the AGPL-3.0-only
by default, and a commercial licence from the D-Modem Authors for uses
that can't meet its terms (COMMERCIAL-LICENSE.md). The contributor
agreement grants the licence for both.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSQaj3bYPQDZU4qf9U
- windows/: the Windows app in plain Win32 C++ (ANSI APIs, Win95
common controls, Winsock 1.1), so that it runs on Windows 95 and
later: Modem, Terminal, Settings, Call Stats and Log pages over
libdmodemctl. dmodemd is started where Windows can run it; on 9x
the app reaches a modem over TCP or a COM port. build-watcom.sh
builds it with Open Watcom; CMake builds it with MinGW or MSVC.
- macos/: the SwiftUI app (XcodeGen project), with the terminal drawn
from libdmodemctl's screen, the SIP password in the keychain.
- The app icon (assets/dmodem.svg, from the brand's jack art) as .ico
and an asset catalogue, by tools/icons.js and tools/icons.py.
- libdmodemctl: anonymous enums (Swift imports them as constants),
Backspace as BS (the modem's S5), key table without designated
initialisers.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRVTPinTtLUajudobBC
A plain C library with no I/O of its own, so the Windows, macOS and
Linux apps can each be only views: the AT session (commands, their
responses, the call's state from the result codes, hanging up through
the escape), the settings model from AT!M, the call statistics from
AT#UD, a small ANSI terminal screen for the configurator, and reading
dmodemd's start-up lines. Tested against dmodemd's own output.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRVTPinTtLUajudobBC