Skip to content

Settings: the connection path at the top, as PCOMM draws its link - #13

Open
Neo-Desktop wants to merge 3 commits into
mainfrom
claude/project-thread-0xgx4j
Open

Neo-Desktop wants to merge 3 commits into
mainfrom
claude/project-thread-0xgx4j

Conversation

@Neo-Desktop

Copy link
Copy Markdown
Contributor

Requested by Sydney · project thread

What

The Settings page now opens with a diagram of how a call is made, modelled on PCOMM's "Connection Overview": four steps joined by one line, each with its role above the icon and what it is set to below.

  • SIP: Terminal, D-Modem, SIP (registers as the account, or anonymous), then the phone network or SIP addresses.
  • USB modem or codec: Terminal, D-Modem, the USB modem or ALSA codec, then its phone line.
  • A modem that already runs: Terminal, its port (the device path, TCP address or COM port), the modem, then its phone line.

When idle, the diagram shows the line settings as they are. A step that still needs setting up is red, its line is dashed, and one line underneath says what's missing. When starting, dialling or online, the steps light up green as the call goes, and the CONNECT text appears.

Linux, five line settings

How

  • core/src/path.c adds dmc_path, which holds the steps and their wording so that all three apps say the same. It has tests in dmodemctl_test.
  • Linux: linux/src/pathview.c (Cairo and GtkImage).
  • Windows: windows/src/pathview.cpp, plain GDI that works on Windows 95. The icons are Wingdings glyphs, and the ports are labelled USB, COM and TCP.
  • macOS: macos/DModem/PathView.swift.
  • docs/design.md describes it.

Tested

  • The Linux build and ctest pass with ASan and UBSan.
  • The screenshots above are from the Linux app running under Xvfb.
  • The Windows build cross-compiles with MinGW (i686). Open Watcom and MSVC are left to CI.
  • macOS is left to CI.

The Android and iOS apps get the same diagram in D-Modem/app.


Generated by Claude Code

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
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTvKupDGEromPgYtjG
@Neo-Desktop Neo-Desktop self-assigned this Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants