external/d-modem-re: 1d7b572 -> 902fba1 (D-Modem's main), and its AT command reference.
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
external/d-modem-re: 9a8cb09 -> 1d7b572 (D-Modem's main), and its AT command reference.
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
D-Modem's main has its Cadmus2 soft modem in usb_cadmus2.cpp, which
usb_line.cpp now calls: the Android engine and native-test's USB
engines build it, its transfers counted as the others' are. native-test
builds, and its 14 tests pass.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSJKSd2kxxKFZAiaXQ
The SIP line's "No account: anonymous SIP" switch runs D-Modem's SIP
with no account (an empty user and domain: dmodemd's anonymous user
agent): nothing registered, sip:user@host (or user@host) dialled as it
is from "Anonymous". The phone's "Call a SIP address" places a voice
call to one (with an account too); a directory entry's number, and ATD
in the terminal, take one for data calls.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSJKSd2kxxKFZAiaXQ
The Remote screen keeps one key in the app: chosen from Files
(OpenSSH's, PEM, or PuTTY's .ppk turned into OpenSSH's form with the
same passphrase) or made here (Ed25519), its public key to copy, its
passphrase asked when connecting. SSHShell gains the engine's key
helpers (keyEncrypted, publicKey, exportKey, newKey), tested on Linux,
with a .ppk login against CI's sshd.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSV65geuGd6zMt2V6r
Both XCFrameworks' headers land in the app's one include/, so
CDModemSSH's module.modulemap goes in include/CDModemSSH/; each
slice's archive is lipo'd from one archive per arch.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSV65geuGd6zMt2V6r
The SSH client is the same as iOS's and the GUI's now: native-ssh, on
libssh, loaded as libdmodem_ssh_jni.so (NativeSsh.kt). SshLink polls
it on its own thread; its channels carry the shell, commands, the
port forwards (-L, -R, -D) and the forwarded agent's requests. Keys
stay the app's: SSH's wire form (SshWire.kt), OpenSSH's and PEM keys
read through the engine, PuTTY's .ppk read here, all on BouncyCastle.
The engine: commands can forward the agent, a write tells what's still
kept for the server (forwards hold back a fast sender), libssh built
WITH_SERVER (its callbacks for the agent's channels need it), and its
remote listen on port 0 patched to take the port from its own reply.
The unit tests build the JNI library for the host (buildHostSsh) and
run against it: OpenSSH's sshd, puttygen and Apache MINA's server.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSV65geuGd6zMt2V6r
native-ssh is the desktop apps' SSH engine (D-Modem/gui's ssh/), built
here from libssh's and mbedTLS's release tarballs for the host, Android
and Apple's systems. ios/build-native.sh makes it
DModemSSHNative.xcframework, each arch linked into one object whose only
globals are dmc_ssh_*, so its mbedTLS never meets the engine's.
DModemSSH's SSHShell keeps its API on it (SwiftNIO SSH goes), adding RSA,
keyboard-interactive and private keys; CI runs its tests and the
engine's against a real sshd.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSV65geuGd6zMt2V6r
- shared: TelnetCodec and RloginCodec (sans-I/O), and LoginBridge for Swift
- Android: rlogin directory entries (RloginLink on the shared codec)
- iOS: a Remote screen from the Terminal tab; SSH on SwiftNIO SSH
(ios/DModemSSH, tested against a real sshd), Telnet and rlogin on
Network with the shared codecs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSV65geuGd6zMt2V6r
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>
The shared code 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 (SoundFile,
a port of the desktop library's decoder: the same output on the same
files). The rest goes to the phone's own decoders:
- Android: MediaExtractor and MediaCodec (MP3, AAC/M4A, FLAC, Ogg,
Opus, AMR), off the main thread
- iOS: AVAudioFile (MP3, AAC/M4A, FLAC, ALAC, CAF)
The file pickers take any audio file now.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTvbHMpudRfQWK4c4H
Calls through D-Modem's V.253 voice mode, on the phone's earpiece or
loudspeaker and microphone: a number called, the ringing call answered,
the keypad (DTMF), mute. The answering machine, off until the user turns
it on, answers after the rings set, plays the greeting and a beep, and
keeps the caller's message as a WAV file on the phone.
The call is the shared Kotlin's VoiceJob (with G.711, tones and WAV
files, tested against a fake V.253 modem). Android has Home's Phone
section, a settings page and the incoming call popup's two new answers;
iOS a Phone tab. D-Modem bumped to main (Rockwell/USR voice, #109).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTvbHMpudRfQWK4c4H
* 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>
ProfileRenderTest draws a screen of each terminal type's own codes
through the Android view and keeps it as build/profiles/<id>.png. It
found the Tektronix drawing nothing in the app: the picture's raster
was made before the view sized its cells, and only replaced at flush,
after the drawing. PictureLayer now checks the size before each drawing.
docs/terminals.md lists the types, the graphics, how to test them (vttest
notes) and what isn't done.
Claude-Session: https://claude.ai/code/session_01B82eRSyCmXjaURxSYoHxCY
Co-authored-by: Claude <noreply@anthropic.com>
external/d-modem-re: 3f7d6b2 -> 5729391 (D-Modem's main), and its AT command reference.
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Graphics: Tektronix 4014, ReGIS and the VT340
A Raster drawn over the screen (PictureLayer keeps it the screen's size
and puts it on the screen as picture tiles). The Tektronix 4014 as its
own terminal and as xterm's and the VT340's Tek mode (DECSET 38, on the
alternate screen until ESC ETX). ReGIS read as it comes in DCS p: P, V,
C (circles, arcs, curves), F, T, W, S (the colour map among them), R, L
and macrographs. The VT340 profile has sixel and ReGIS sharing 16
colour registers.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSyCmXjaURxSYoHxCY
* iOS: sixel images and graphics pictures drawn
The bridge gives each row's image tiles as runs (ImageRun) and an
image's pixels as premultiplied RGBA in Latin-1; the iOS model makes a
CGImage once per image and the canvas draws each run clipped to its
cells.
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>
GitHub's auto-merge, with no checks required on main, merged the first
bump (#39) six seconds after it was opened, before any check ran. The
workflow now waits for every check on the pull request and merges only
when they have all passed (and its head is still the bump's); a failed
check leaves it open.
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
external/d-modem-re: 3f7d6b2 -> 5729391 (D-Modem's main), and its AT command reference.
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* VT220 and VT320: G0-G3 and shifts, NRCS, 8-bit replies, DECSCA, DECUDK
Phase 2, part 1. The character sets move into CharsetShifting, which
VtInterpreter composes: G0-G3, GL and GR, the locking shifts (SI, SO,
LS2, LS3, LS1R-LS3R) and single shifts (SS2, SS3, and their C1 forms),
designators of two characters and 96-character sets (ESC - . /), the
national replacement sets, DEC Supplemental, DEC Technical and Latin-1,
each at the level that has it, and DECSC keeping them all.
Also:
- S7C1T/S8C1T: replies with C1 controls
- DECSCA with DECSED and DECSEL (a protected bit SGR leaves alone)
- DECSCL: the operating level and 7- or 8-bit replies
- DSR ?15, ?25, ?26 and ?6 (DECXCPR)
- DECRQPSR (DECCIR, DECTABSR), DECRQUPSS and DECAUPSS
- DECRQSS for DECSCL, DECSCA, DECSLPP, DECSCPP, DECSNLS
- DECUDK in UserKeys: Shift with F6-F20 sends what the host loaded
- F13-F20, Find and Select keys, and LK201 and UDK key bar pages
- a VT320 profile (level 3)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSyCmXjaURxSYoHxCY
* VT320 status line and DECDLD soft characters
Phase 2, part 2:
- DECSSDT and DECSASD: the indicator status line (the cursor's place)
or the host's own, written with a cursor of its own (StatusLine);
shown below the screen on Android and iOS, the screen a line shorter
- DECDLD (SoftFont): a soft set's glyphs read from their sixels, kept
as code points of plane 15, designated by the host's Dscs (a GSet
SOFT slot in CharsetShifting) and drawn from their bitmaps by both
apps; BitmapFont now takes a width (rows as Ints), so the soft
glyphs keep theirs (a VT320's 15x12)
- DECRQSS for DECSSDT and DECSASD; DECCIR names the soft set
Pages (NP, PP, PPA and the rest) are a VT330's and VT420's: they go
with Phase 3.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSyCmXjaURxSYoHxCY
* VT420, VT510, VT520, VT525: margins, rectangles, pages, colour table
Phase 3. A Vt420Interpreter extends VtInterpreter through its hooks
(an ESC, a CSI, a DCS, DECRQSS and DECRQM a subclass takes):
- DECLRMM and DECSLRM: the emulator's printing, wrapping, CR, scrolling,
IL/DL and ICH/DCH keep between the margins
- Rectangles: DECCRA, DECERA, DECSERA, DECFRA, DECCARA and DECRARA
(DECSACE: a stream or a rectangle), DECRQCRA's checksum, DECIC/DECDC
- DECBI and DECFI
- pages: NP, PP, PPA, PPR, PPB over six, DECXCPR telling the page
- DECSNLS, DECSLPP, DECSCPP; DECNKM, DECBKM
- VT5xx: DECRQDE, the bell volume and keyboard sequences taken;
VT525: DECAC and the colour table (DECRQTSR 2, DECRSTS in RGB or HLS)
- VT420, VT510, VT520 and VT525 profiles
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSyCmXjaURxSYoHxCY
* Viewdata (Prestel) and Minitel terminals
Phase 8. Both build on ByteControlInterpreter through a
VideotexInterpreter (the teletext palette, the mosaics' glyphs on the
emulator, a cursor wrapping round the screen):
- Mosaic: 2x3 block graphics, contiguous and separated, drawn from
bitmaps the app makes, at plane 15 code points (the soft glyph path)
- Viewdata: the screen kept as its codes, each row drawn again from
them with teletext Level 1's spacing attributes (set-at and
set-after); Prestel's controls; # and Enter send 0x5f
- Minitel: row 0 the status row, US addressing, G0/G1, SS2 accents and
symbols, ESC attributes with the background and separation taken at
a delimiter, REP, CSI commands, PRO1-PRO3 (ENQROM answered, ROULEAU,
Mixte's 80 columns, Téléinformatique as a VT100), its function keys
- key bars for both, captures as .vdt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSyCmXjaURxSYoHxCY
* VT525 colour table: DEC's HLS from Sixel's, not a copy
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>