Commit Graph
16 Commits
Author SHA1 Message Date
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
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 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
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
Claude a630d0b455 Merge main: the engine's terminals, with SSH built in
SSH's shell asks for the terminal type the picker has, as Telnet and
rlogin do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSV65geuGd6zMt2V6r
2026-11-12 13:49:03 +00:00
Claude fe56f25743 Windows and macOS: SSH by libdmodemssh, built in
The Windows app runs libdmodemssh on a thread that posts its events to
the main window, with a login dialog that fits its questions; the
Windows 95 build keeps Windows' ssh.exe in a pseudo console.  The macOS
app's SSHConnection polls it on a thread for the main queue, with
SwiftUI alerts for a new host, a password or the server's questions;
PtySpawn goes.  libssh and mbedTLS are built universal for macOS by the
repository's CMake.  Linux CI logs in to a real sshd; docs follow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSV65geuGd6zMt2V6r
2026-11-12 13:09:00 +00:00
Claude 14865afcd8 Linux: draw the terminals from the engine instead of VTE, with a terminal type picker
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSahRp96gCgqn8dFBk
2026-11-12 12:58:40 +00:00
Claude ae974b3851 Read greetings from more sound files than WAV
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
2026-11-11 14:24:21 +00:00
Claude 3be1b49e86 Contributor agreement check: Claude's commits on this repository's branches are exempt
As bbs: commits by Claude (noreply@anthropic.com) on a branch of the
repository itself are not checked; on a fork's pull request they still are.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSQaj3bYPQDZU4qf9U
2026-11-08 11:42:24 +00:00
Claude eb6ecf573d Contributor agreement: CONTRIBUTING.md and a sign-off check on pull requests
Each contribution comes with the suite's contributor agreement (the one
bbs, menu and brand already use): the contributor keeps the copyright
and licenses it to the D-Modem Authors under the repository's licence
and any other terms, commercial ones included.  Each commit's
Signed-off-by line says they agree.  The new workflow checks for that
line on every commit of a pull request, except pull requests from the
owner, the organization's members and bots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSQaj3bYPQDZU4qf9U
2026-11-07 10:58:30 +00:00
Claude db26d85be0 Merge main: the deep scarlet banner
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRVTPinTtLUajudobBC
2026-11-06 17:23:35 +00:00
NeoandClaude 82fd1227d9 Banner: deep scarlet #c8102e (#4)
Claude-Session: https://claude.ai/code/session_01B82eRR7XmhWoFbzJFFFqde

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-06 06:02:18 -08:00
Claude 11a023bf0b README and the design notes, with the brand's banner
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRVTPinTtLUajudobBC
2026-11-06 13:57:33 +00:00
Claude feb8e66d11 CI for the three apps; a configurator's end found after a long screen
- .github/workflows/build.yml: Linux (with the tests, and again with
  ASan and UBSan), Windows 95 and later with Open Watcom, Windows with
  MSVC, and macOS with XcodeGen and xcodebuild.
- libdmodemctl: a line over 4 KiB keeps its end, not its start.  AT!CF
  sends its screens with no line ends and its OK after the last one, so
  the OK was lost and the app stayed in the configurator after Alt-X.
- Windows: the pages without WS_CLIPCHILDREN, so that the page paints
  inside its group boxes.
- Screenshots of the Windows app, run under Wine against dmodemd.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRVTPinTtLUajudobBC
2026-11-06 13:56:38 +00:00
Claude 5efc5539c0 Banner: Scarlet a little more purple
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRR7XmhWoFbzJFFFqde
2026-11-06 13:26:53 +00:00
Claude 5ca1071891 README: add the header banner
The 1280x320 banner from D-Modem/brand (banner/gui@2x.png), kept at
.github/banner.png.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRR7XmhWoFbzJFFFqde
2026-11-06 13:23:12 +00:00