mirror of
https://github.com/D-Modem/gui.git
synced 2026-11-28 14:19:58 -08:00
docs: shorter README; features and build steps in docs/
Move the details of the Remote page, the terminal types and the menus of the Windows app to docs/features.md, and the build steps for each system to docs/building.md. The line about the Windows app on Linux and macOS does not change, so that PR #19 merges without a conflict. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B82eRSvurgAXJHmd8Fs4ud
This commit is contained in:
3 files changed
+69
-49
No files matched your search
@@ -14,18 +14,9 @@ libdmodemctl. Thus they operate in the same way.
|
||||
- **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`)
|
||||
- **File transfers** (Windows app): send and receive files on the modem line or on a Telnet, rlogin or SSH login. The protocols are the same as the D-Modem app: ZMODEM (with Automatic Receive when the remote side starts sz, rz or kermit -s, with Crash Recovery, and with zstd compression to the D-Modem BBS and app), YMODEM, YMODEM-G, XMODEM, XMODEM-1K, Kermit, Intel HEX, Motorola S-records and plain text. Use the Transfer menu, or the Send and Receive buttons of the Terminal page
|
||||
- **Copy and capture** (Windows app): select text with the mouse (Shift and the mouse when the remote side uses the mouse), then copy it. Paste to Host, Select All, Capture Text (to a file), Capture to Printer, and Print (the screen or the selection). Text that the remote side sends to its printer port goes to the printer. Use the Edit and Transfer menus, or click the right mouse button on the terminal
|
||||
- **ASCII Setup** (Windows app, Modem menu): the same items as HyperTerminal. For the data that you send: Enter sends CR LF, the local echo, and the line delay and character delay of a text file. For the data that you receive: an LF after each CR, 7-bit ASCII, and the wrap of long lines. The settings apply to the modem terminal and to the Remote terminal
|
||||
- **Terminal Settings** (Windows app, Modem menu): the same items as HyperTerminal, for the modem terminal and for the Remote terminal. They are what Backspace sends (Ctrl+H, Del, or Ctrl+H, Space, Ctrl+H), the function, arrow and Ctrl keys as terminal keys or Windows keys, the backscroll buffer lines, the font, the cursor, the Telnet terminal ID, and Exit program upon disconnecting. The status bar shows the connect timer during a call
|
||||
- **Call menu** (Windows app): Call (sessions with a name and a number, as the connection files of HyperTerminal), Wait for a Call (ATS0=1), Disconnect, and Send Break (Ctrl+Break: a COM port or a Telnet connection). Line Settings has the COM port settings: bits per second, data bits, parity, stop bits and flow control
|
||||
- **Remote**: log in to a server by SSH, Telnet or rlogin, in a separate terminal. SSH is built in, on libssh, and it uses the keys and the agent of OpenSSH and PuTTY
|
||||
- **Terminal types**: the terminal emulator of the D-Modem app, ported to C: xterm, DEC VT52 to VT525, ANSI-BBS, PETSCII, ATASCII, Viewdata, Minitel and Tektronix 4014, with sixel, ReGIS and Tektronix graphics
|
||||
- **The Windows app**: file transfers (ZMODEM, YMODEM, XMODEM and Kermit), copy and capture, and the ASCII Setup, Terminal Settings and Call menu of HyperTerminal. Refer to [Features](docs/features.md)
|
||||
- **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)
|
||||
@@ -61,46 +52,13 @@ Linux:
|
||||
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](https://github.com/clang-retro/dos-sdk/releases/tag/nightly)).
|
||||
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 Windows app on Linux or macOS: get [clang-retro MFC](https://github.com/clang-retro/mfc),
|
||||
clang and `llvm-rc` (on macOS, `brew install llvm`). Then:
|
||||
|
||||
cmake -S . -B build -DDMODEM_GUI_WINPORT=ON -DCLANG_RETRO_MFC=/path/to/mfc \
|
||||
-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
|
||||
cmake --build build --target dmodem-win32 && ./build/winport/dmodem-win32
|
||||
|
||||
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.
|
||||
For Windows (with clang-retro), macOS, and the Windows app on Linux and
|
||||
macOS, refer to [Building](docs/building.md).
|
||||
|
||||
## Documentation
|
||||
|
||||
- [Features](docs/features.md): each page and menu of the apps, with the details of the Windows app
|
||||
- [Building](docs/building.md): Linux, Windows with clang-retro, macOS, and the Windows app on Linux and macOS
|
||||
- [Design](docs/design.md): how the apps are built, what they share, hardware modems (the MultiTech MT9234MU), the Windows 9x notes, and the Windows app on Linux and macOS
|
||||
- [libdmodemctl](core/include/dmodemctl.h): the API of the library
|
||||
- [Documentation style](docs/STYLE.md): the rules for ASD-STE100 Simplified Technical English
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
# Building
|
||||
|
||||
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](https://github.com/clang-retro/dos-sdk/releases/tag/nightly)).
|
||||
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 Windows app on Linux or macOS: get [clang-retro MFC](https://github.com/clang-retro/mfc),
|
||||
clang and `llvm-rc` (on macOS, `brew install llvm`). Then:
|
||||
|
||||
cmake -S . -B build -DDMODEM_GUI_WINPORT=ON -DCLANG_RETRO_MFC=/path/to/mfc \
|
||||
-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
|
||||
cmake --build build --target dmodem-win32 && ./build/winport/dmodem-win32
|
||||
|
||||
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.
|
||||
@@ -0,0 +1,17 @@
|
||||
# Features
|
||||
|
||||
This page gives the details of the pages and menus of the apps. The
|
||||
[README](../README.md) gives a summary.
|
||||
|
||||
- **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`)
|
||||
- **File transfers** (Windows app): send and receive files on the modem line or on a Telnet, rlogin or SSH login. The protocols are the same as the D-Modem app: ZMODEM (with Automatic Receive when the remote side starts sz, rz or kermit -s, with Crash Recovery, and with zstd compression to the D-Modem BBS and app), YMODEM, YMODEM-G, XMODEM, XMODEM-1K, Kermit, Intel HEX, Motorola S-records and plain text. Use the Transfer menu, or the Send and Receive buttons of the Terminal page
|
||||
- **Copy and capture** (Windows app): select text with the mouse (Shift and the mouse when the remote side uses the mouse), then copy it. Paste to Host, Select All, Capture Text (to a file), Capture to Printer, and Print (the screen or the selection). Text that the remote side sends to its printer port goes to the printer. Use the Edit and Transfer menus, or click the right mouse button on the terminal
|
||||
- **ASCII Setup** (Windows app, Modem menu): the same items as HyperTerminal. For the data that you send: Enter sends CR LF, the local echo, and the line delay and character delay of a text file. For the data that you receive: an LF after each CR, 7-bit ASCII, and the wrap of long lines. The settings apply to the modem terminal and to the Remote terminal
|
||||
- **Terminal Settings** (Windows app, Modem menu): the same items as HyperTerminal, for the modem terminal and for the Remote terminal. They are what Backspace sends (Ctrl+H, Del, or Ctrl+H, Space, Ctrl+H), the function, arrow and Ctrl keys as terminal keys or Windows keys, the backscroll buffer lines, the font, the cursor, the Telnet terminal ID, and Exit program upon disconnecting. The status bar shows the connect timer during a call
|
||||
- **Call menu** (Windows app): Call (sessions with a name and a number, as the connection files of HyperTerminal), Wait for a Call (ATS0=1), Disconnect, and Send Break (Ctrl+Break: a COM port or a Telnet connection). Line Settings has the COM port settings: bits per second, data bits, parity, stop bits and flow control
|
||||
Reference in new issue
Block a user