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
2026-11-20 10:44:54 +00:00
2026-11-20 10:44:54 +00:00
2026-11-20 10:44:54 +00:00
2026-11-20 10:44:54 +00:00
2026-11-20 10:44:54 +00:00
2026-11-20 10:44:54 +00:00

D-Modem/gui: D-Modem on the desktop

D-Modem desktop apps

Native apps for D-Modem on Windows, macOS and Linux.

Each app starts dmodemd (or connects to a dmodemd that already runs). It shows the modem as a desktop program. You can dial and answer from a window, change the settings without AT commands, and see the results of the last call. All three apps are thin native shells over one small C library, libdmodemctl. Thus they operate in the same way.

  • Modem: the state of the call, dial, answer and hang up, and the line that the modem uses
  • Phone: voice calls through the sound card (dial, answer, keypad), and an answering machine that takes messages on this computer when you enable it (disabled by default)
  • Terminal: the AT console, and the setup screens of the modem (AT!CF, AT!CT)
  • Remote: log in to a server by SSH, Telnet or rlogin, in a separate terminal. SSH is built in, on libssh: it uses the keys, agent, config and known hosts of OpenSSH. It can use or import the .ppk keys of PuTTY. It uses Pageant on Windows, and an ssh-agent on Linux and macOS. On Windows 95, SSH needs CryptoAPI (Windows 95 OSR2, or Internet Explorer 3 or later)
  • Terminal types: the two terminals use the emulator of the D-Modem app, ported to C: xterm, the VT52 to VT525 of DEC, ANSI-BBS (with Avatar, RIPscrip and Amiga ANSI), the PETSCII of the Commodores, the ATASCII of the Atari 8-bit and the ST, Viewdata, the Minitel and the Tektronix 4014. They have sixel, ReGIS and Tektronix graphics, and the font of each machine (the SyncTERM copies of their ROMs, LGPL-2.0-or-later: core/licenses/syncterm-fonts-LGPL-2.0.txt)
  • Settings: each modem setting as a native control, from AT!M
  • Call Stats: the rate, modulation, error control and line figures of the last call (AT#UD, ATI11)
  • Line settings: a SIP account, a USB modem, or a modem that already runs (dmodemd, or a hardware modem such as the MultiTech MT9234MU)
  • Windows 95 and later: plain Win32, built with clang-retro. On Windows 9x, the app connects to a modem through TCP or a COM port
Windows macOS Linux
Toolkit Win32, C++ SwiftUI GTK 4, libadwaita
Runs on Windows 95 and later macOS 13 and later GTK 4.10 and libadwaita 1.5 or later (Ubuntu 24.04, Fedora 40)

The Linux app's Settings page The Windows app's Terminal with the modem's setup screen

The Linux app's Phone page The Windows app's Phone page taking a message

Quick start

Linux:

sudo apt install cmake libgtk-4-dev libadwaita-1-dev libpulse-dev \
    libsndfile1-dev
cmake -S . -B build && cmake --build build && ./build/linux/dmodem-gui

Windows: we build the Windows app with clang-retro. Get its toolchain package (clang-dos-linux-x86_64.tar.xz or clang-dos-windows-x86_64.zip, from the nightly release). Then set CLANG_DOS to the directory of the package:

# Windows 95, 98, ME, NT 4.0 and later (no C runtime DLL)
cmake -S . -B build/win9x -G Ninja -DCMAKE_BUILD_TYPE=Release \
    -DCLANG_DOS=/opt/clang-dos -DCMAKE_TOOLCHAIN_FILE=cmake/clang-retro.cmake
cmake --build build/win9x

# Windows 7 and later
cmake -S . -B build/win7 -G Ninja -DCMAKE_BUILD_TYPE=Release \
    -DCLANG_DOS=/opt/clang-dos -DCMAKE_TOOLCHAIN_FILE=cmake/clang-retro.cmake \
    -DCLANG_RETRO_CONFIG=win7
cmake --build build/win7

The app is in windows/dmodem.exe of the build directory. MSVC (cmake -S . -B build -A Win32) and MinGW also build the same code.

macOS: first use cmake -S . -B build -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" -DCMAKE_OSX_DEPLOYMENT_TARGET=13.0 && cmake --build build (this builds libssh, for SSH). Then use brew install xcodegen && cd macos && xcodegen && open DModem.xcodeproj.

The first CMake build downloads libssh and mbedTLS for SSH. This always occurs on Windows and macOS. Use -DDMODEM_GUI_SSH=OFF for a build with no SSH. On Linux, it occurs if the libssh of the system is older than 0.11.

The Settings page needs a dmodemd with AT!M (the main branch of D-Modem since D-Modem/D-Modem#103). The other pages operate with all versions of D-Modem 1.0.

Documentation

  • Design: how the apps are built, what they share, hardware modems (the MultiTech MT9234MU), and the Windows 9x notes
  • libdmodemctl: the API of the library
  • Documentation style: the rules for ASD-STE100 Simplified Technical English

The D-Modem suite

Repository What it is
D-Modem The open V.92 softmodem: dmodemd, libdmodem and the Asterisk, FreeSWITCH and ARI modules
app The D-Modem app for Android and iOS: a dial-up modem on a SIP call
gui D-Modem on the desktop: native apps for Windows, macOS and Linux
hardware pico-serial: RP2040 serial adapters and phone-line USB sticks
menu modemmenu: the login and menu dial-up callers reach
bbs A bulletin board for telnet, SSH, TN3270 and modem callers
go3270 A Go library for 3270 terminal servers, used by bbs
brand Logos, colours, type and the naming guide

Licence

AGPL-3.0-only (LICENSE), or a commercial licence from the D-Modem Authors (COMMERCIAL-LICENSE.md). Contributions come with a contributor agreement (CONTRIBUTING.md).

Languages
C 76.9%
C++ 19%
CMake 2.9%
Python 0.6%
Shell 0.5%