Commit Graph
13 Commits
Author SHA1 Message Date
NeoandClaude 93febb3790 Draw the retro terminals in their machines' own fonts (#46)
The BBS and home computer terminal types now draw with their machines'
character ROM fonts, SyncTERM's copies of them from Synchronet's ciolib
(LGPL-2.0-or-later), instead of Unscii's lookalikes: the IBM VGA's code
page 437, RIPterm's 8x8, the C64's and C128's, the Atari 8-bit's, the
Amiga's Topaz, Prestel's and the Atari ST's.

- tools/gen_rom_fonts.py writes RomFonts.kt from allfonts.c; RomFont
  keeps a ROM in its machine's code order and doubles or halves it.
- MachineFonts reads each ROM in its machine's set, so a cell's code
  point gets the glyph its machine drew; what a ROM hasn't got comes
  from Unscii.
- ANSI-BBS takes SyncTERM's font selection (CSI 0 ; n SP D) for the
  fonts here, including the Amiga scene fonts.


Claude-Session: https://claude.ai/code/session_01B82eRSyCmXjaURxSYoHxCY

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-12 04:33:26 -08:00
NeoandClaude Opus 5.5 24db6fc483 BBS terminals: RIPscrip, Avatar, Amiga ANSI, Atari ST (Phase 7) (#43)
* Atari ST terminals, and pure white kept as a colour

The Atari ST's TOS VT52 in medium resolution (80x25, four colours) and
low (40x25, sixteen): ESC b and ESC c pens, reverse, wrap, the cursor
saved and hidden, the extra erases, line insert and delete, and the ST's
character set. Vt52Interpreter gains a character hook and an argument
hook for it; the machine size and palette set-up is shared with the
byte-oriented machines (useMachine, releaseMachine).

colorOverride's "none" was -1, which is also opaque white, so a machine's
pure white (the ST's screen, Viewdata's and the Minitel's white) fell back
to the theme's colour. "None" is now NO_COLOR (transparent black), and
overrides are kept opaque.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSyCmXjaURxSYoHxCY

* Avatar (AVT/0 and AVT/0+) over ANSI-BBS

FidoNet's compact codes taken in ANSI-BBS's intercept hook: ^L, ^Y's
repeat, ^V's PC attributes (DLE-quoted too), blink, cursor moves and
place, clear to the line's end, and AVT/0+'s insert mode, area scrolls,
clears and fills (through Rectangles), character delete and pattern
repeat. ANSI, music and the rest of ANSI-BBS work underneath.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSyCmXjaURxSYoHxCY

* Amiga ANSI

ANSI-BBS in Latin-1, drawn 8x8 (Unscii's glyphs, Topaz's size; the
generator now adds Latin-1's to the 8x8 set) in colours from the Amiga's
12-bit palette. An ANSI-BBS profile can now carry its own sixteen colours
(AnsiBbsProfile.colors), which its interpreter puts over the theme's and
takes back off when another profile takes over. The per-profile render
test now uses the profile's character set, as connecting does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSyCmXjaURxSYoHxCY

* RIPscrip 1.54

ANSI-BBS whose lines starting !| (or ^A|, ^B|) are RIP's commands on a
640x350 EGA screen over an 80x43 text window: lines in their styles and
thickness, rectangles, bars, circles, ellipses, arcs, pies, Beziers,
polygons and polylines, flood fills, BGI's fill patterns and the host's,
text, the palette, the viewport and text window, the clipboard, text
blocks, and mouse regions and buttons. ESC [ ! answers RIP's version, and
ESC [ 1 ! and 2 ! turn it off and on. Line continuation and the CR LF
ending a RIP line are the line's own.

Raster gains ellipses, patterned fills, flood fill, a clip rectangle and
grab and put, and draws shrunk glyphs with their rows merged (a thin
stroke was lost). Taps: an interpreter can take a tap at a point on the
screen (TerminalEmulator.tap); Android's view and the iOS screen (through
TerminalBridge.tap) send what it gives, so RIP's buttons work.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSyCmXjaURxSYoHxCY

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-10 18:16:53 -08:00
NeoandClaude c0bf3e41a2 ANSI-BBS as SyncTERM is: VGA font, 80x25, ANSI music, iCE, speed, doorway (#36)
The ANSI-BBS profile gets its own interpreter, a VtInterpreter subclass
through two new hooks (a code point taken before the parser, a CSI
carried out before it), adding CTerm's sequences without copying the
parser:

- an 80x25 screen drawn in a VGA's 8x16 code page 437 (Unscii-16, public
  domain, the two glyphs it lacks drawn in the generator); BitmapFont
  now takes a height, and both apps shape the cells by it
- ANSI music: CSI | always, CSI N and a bare CSI M as CSI = n M allows
  (a bare CSI M only when a PLAY string follows, so DL still works),
  parsed by AnsiMusic (PLAY's notes, lengths, dots, octaves, tempo,
  articulation, kept from string to string) and played as square waves
  on Android (AudioTrack) and iOS (AVAudioEngine)
- iCE colours when the remote asks (CSI ? 33 h), over the user's setting
- the line speed to show text at (CSI * r, for ANSI animations), paced
  by the Android session and the iOS model
- doorway mode (CSI = 255 h): keys as NUL and a PC's scan code
- font selection (CSI SP D) taken and ignored: only code page 437 is there


Claude-Session: https://claude.ai/code/session_01B82eRSyCmXjaURxSYoHxCY

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-10 17:01:57 -08:00
NeoandClaude Opus 5.5 a2a7d36688 Commodore and Atari terminals: PETSCII and ATASCII (Phase 5, part of 7) (#35)
* Commodore terminals: PETSCII for the C64, C128, Plus/4, VIC-20 and PET

The Commodore 8-bits become terminal types, as CCGMS and Novaterm speak
PETSCII. A shared ByteControlInterpreter template does what a home
computer's screen editor did (octets read in the machine's own set, the
screen's size and palette set while it's the profile, a wrap as soon as
the last column is written, cursor keys wrapping round line ends, delete
and insert in the line, typing turned back into the set's codes); the
PetsciiInterpreter adds Commodore's codes: colours, cursor, HOME, CLR,
DEL, INST, RVS, the two sets, the bell, and the C128 and Plus/4 ESC
sequences. The profiles are a hierarchy (C64 <- C128 <- C128 80-column,
C64 <- Plus/4, C64 <- VIC-20, PET <- PET 80) changing only their screen,
palette, sets and extras.

The characters are drawn from 8x8 bitmaps: Unscii's glyphs (public
domain) for the code points Rebecca Bettencourt's Legacy Computing
mappings give each code, generated into LegacyCharsets.kt by
tools/gen_legacy_charsets.py. No Commodore ROM font is shipped. Android
and iOS draw them in square cells, the view fitted to the machine's
columns and no more than its rows.

Keys and typing go through the interpreter (TerminalEmulator.keyOctets
and charOctets), so a Commodore's cursor keys, F1-F8, CTRL and C= colours
and C= graphics send PETSCII; pasted Legacy Computing characters map
back. The key bar gets the Commodore pages (RUN/STOP, CLR/HOME, INST/DEL,
RVS, F-keys, colour swatches) through a new BarKey.Octets. Captures under
a Commodore profile are saved as .seq.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSyCmXjaURxSYoHxCY

* Atari terminals (ATASCII), and the doc comments the docs check wants

ATASCII joins PETSCII on the shared ByteControlInterpreter: an Atari
8-bit profile (and one with the XL's international set) speaks the
screen editor's codes as Ice-T and BobTerm do: cursor keys wrapping
round the screen, CLEAR, BACK S, TAB, EOL, delete and insert of lines
and characters, tab stops, the buzzer, ESC to show a control's
character, 0x80 up in inverse video. Keys and typing send ATASCII (CTRL
with a letter its graphic, the key bar's INV key the next character
inverse). The generator adds the two Atari sets, completing their
control codes' glyphs from the screen-code mappings and drawing the two
Unscii lacks. The tab stops move into the template for the C128 and the
Atari alike, and a profile names its capture extension (.seq for the
Commodores) instead of the session testing for one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSyCmXjaURxSYoHxCY

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-10 16:38:13 -08:00
Claude d527262420 AT command reference: follow D-Modem's, with each bump
tools/at_reference.py copies the D-Modem submodule's docs/at_commands.pdf
into the app's assets (and names its commit in their README); --check
fails when the two differ. The D-Modem bump workflow runs it with each
bump, and CI's docs job checks it. The copy here was from 7f53883: now
3f7d6b2's, the submodule's.

Signed-off-by: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRgas5TD8Qpbs8x2NK
2026-11-10 15:50:55 +00:00
NeoandClaude 5a2ca6e164 Add the site, with a settings reference made from the code (#26)
tools/settings_ref.py writes docs/settings.md from the apps'
ModemSettings: on Android each setting's DataStore key, kind, default and
comment (and it fails on a setting with no key); on iOS each setting and
the Keychain name of the secrets. The iOS settings that took the comment
of the one above them get their own.

The Pages workflow builds docs/ and the README with brand's theme, and
fails if docs/settings.md is out of date; the Android and Apple workflows
skip the site's files.


Claude-Session: https://claude.ai/code/session_01B82eRSqjp9Pn2KBr9N9LAn

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-05 18:12:28 -08:00
Claude 71c649bce1 README as a landing page; D-Modem-RE is now D-Modem; CI skips doc-only changes
The README, titled for Android only, now introduces the app on Android
and iOS with a short feature list, a quick start, the suite's
repositories and the licence. Its sections move to docs/: the modem's
lines, fax, adapters and phone lines, the app screen by screen, building,
the iOS app and the source layout.

D-Modem-RE becomes D-Modem in comments, docs, workflows and the
generator's header, as in brand's naming guide; the build info line says
'D-Modem core <commit>' for the submodule's commit. Identifiers and the
external/d-modem-re path keep their names.

The Android and Apple workflows no longer run for a change to Markdown,
docs/ or COPYING alone (tag pushes still run).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSqjp9Pn2KBr9N9LAn
2026-11-05 10:46:04 +00:00
Claude 24525a0d17 Rename the Android app to org.dmodem.app.android
The application id, namespace and Kotlin package of the Android app
are now org.dmodem.app.android (was com.neodesktop.dmodem), with the
JNI symbols (pty.c, jni.cpp's class name), ProGuard keeps, the USB
permission action, README and the generator scripts to match. The
shared Kotlin Multiplatform code moves to org.dmodem.app alongside it,
so the app now imports what it used to see as its own package.

The iOS bundle ids are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRipoddxponCaexwE4
2026-10-31 13:08:06 +00:00
Claude 9915decc6d Comments for every function: the last batch; CI checks it
The UI tests, Gradle's script, the iOS app and the native test hosts
(batch 6 of 8, comment lines only) and the checker's own. Every
function in the app is now documented; android.yml's docs job runs
tools/doc_check.py first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-27 08:23:54 +00:00
Claude 9b4debf4f5 Comments for every function: the first two batches; doc_check.py stricter
The tests' and shared code's functions in two of eight batches (comment
lines only). doc_check.py skips only lines of annotations alone, so a
function under an annotated property (@Volatile var) needs its own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-27 08:16:27 +00:00
Claude 84a7ff0a15 tools/doc_check.py: every function documented
A comment on the line just above each function (or above its
annotations) in Kotlin, Swift and shell, a docstring or comment in
Python; C and C++ through D-Modem-RE's own check. The README says so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-27 08:13:10 +00:00
Claude d716171658 USB serial: the 1100 or so adapters on FTDI, CP210x, PL2303 and CH34x chips under their makers' own IDs
usb-serial-for-android's table has only the chip makers' IDs (18); many
adapters carry their own. tools/usb-serial-ids/generate.py takes the IDs
(only the numbers) from Linux's drivers' tables (v6.12: 823 FTDI, 203
CP210x, 76 PL2303, 6 CH34x; not FTDI's JTAG and infrared boards) into
UsbSerialIds and the device filter, and UsbSerialAdapters' prober adds
them to the library's table for the bridge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-26 12:37:37 +00:00
Claude 7a986263e6 The country's call progress tones: dial, ringing, busy, congestion
D-Modem-RE's ITU table (dsp/tones.cpp, 192 countries after E.180) in
the shared Kotlin (tones/: generated by tools/country_tones.py, checked
against the submodule by CountryTonesSourceTest), with a synthesizer
for its tones (two frequencies, or one modulated; the cadence, its
edges ramped).

Android:
- Settings: the country picked from the list (searched, each with its
  tones, a button to hear them), for the modem (its line settings, how
  it hears busy) and the tones; "Call progress tones" on or off
- dialling a directory entry plays a second of the country's dial tone
  before ATD
- CallProgress plays the busy tone on BUSY, the congestion tone for a
  dial that ends (NO CARRIER, NO DIALTONE) before the far end answered,
  and the ringing tone while the other phone rings on the phone-to-phone
  line (no network there to play one); a handshake stops them
- CallTones plays them on the phone's speaker, in their own stream

iOS: the country picker in Settings (it had the setting, not the UI).

Tests: CountryTonesTest (the table, each tone's frequencies and cadence,
on the JVM and natively), CallTonesTest (when each plays; a second of
the UK's dial tone, stopping, the preview).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-18 23:24:55 +00:00