Repository navigation
v1.5(Babbage): DDial reply relay and station hub, ANSI art gallery, missing-line and truecolor fixes
v1.5 (Babbage) -- named after Charles Babbage
This release brings two features. The DDial link now carries replies in both directions and can host other stations. The BBS gains an ANSI art gallery where pasted color art is stored and replayed safely. It also fixes chat lines that sometimes went missing, 256-color/truecolor output, and scrollback navigation.
DDial replies, message ids, and station hub
- Replies to DDial:
/replyis relayed in the form DDial clients show as a reply,text^ >>RE:[N] author: quote.Nis the quoted author's line number. It is left out when unknown.- A quoted reply is reduced to its own text.
- The quote is clipped to fit the 255-byte body.
- Non-ASCII quotes fall back to
@author.
- Replies from DDial: a DDial reply line is linked to the message it quotes and becomes a Chatter reply. That message can be a Chatter message, a DDial line, or a Chatter reply. The link is found by author and quote within the last 600 history entries. Clipped quotes and a trailing ellipsis are accepted, and
[N]picks between candidates.- The reply is threaded and shown as
->[r#R #d12] author: text, and it can be replied to asr#R. - Old history is linked at startup.
- Several quote forms seen on live DDial are parsed: wire form (
>>RE:#1[T1:MerZz) quote), wire form with a link slot (>>RE:65#5[T1:MerZz) ...), empty line numbers (>>RE:[] author: quote), and emote quotes (*...*).
- The reply is threaded and shown as
- Ids for DDial chat: relayed DDial chat used to have no id and showed as
[-]. It now takes an id from the same sequence and is labelledd<id>./reply d42, reactions and the other id commands work on these lines. - Station hub:
CHATTER_DDIAL_HUB_LISTENaccepts links from other stations. The login is the upstream login run in reverse, with a nine-digit station key./ddial key new|list|revokemanages the keys. They are stored as PBKDF2 hashes, and a plain key is shown only once./ddial hublists linked stations.- Bad keys are delayed, and an address is blocked after five failures in ten minutes. Each key holds one link.
- Station chat reaches the room, dial-ins, AI members and the other stations. It is not passed to our own upstream.
- Docs:
docs/DDIAL.mdcovers message ids, replies and the station hub.
ANSI art gallery
- New
artboard: post with/bbs post art <title>or/asciiart bbs <title>, or with a plainpostwhile on the board (/bbs board art). Paste the artwork, bracketed paste included. Existing boards files gain the board automatically on startup. - Colors kept, terminal control removed: only SGR color sequences are stored (16-color, 256-color and truecolor, including the
:form). These are stripped before storage and again on display:- cursor movement and screen clears
- OSC (window titles, clipboard) and DCS strings
- terminal queries and private modes
- C0/C1 controls
- Viewer: art skips BBS markup and translation. Each line starts with the colors carried over from the line above and ends with a reset, so color never bleeds into the prompt. Identical rows are kept. Terminals narrower than 80 columns get a notice. The editor preview renders the same way, and editing an art post keeps its colors.
- Chat announcements and post previews leave out the art body.
Fixes
-
Chat lines going missing: lines from other chatters or DDial sometimes never appeared, most often the one right before or after a message you sent. Two causes were fixed:
- The session's own thread and broadcast threads could run the history sink at the same time. One run then rewound the shared output buffer over lines the other had just drawn.
- After echoing your own line, the sink cursor skipped to the end of history, past lines that had not been drawn yet.
In a two-client stress test, misses went from 0–2 per 120 rounds to none in 720 rounds.
-
256-color and truecolor output: the theme layer read the trailing
0in sequences like38;2;255;128;0or38;5;0as a reset, and re-applied theme colors over the text. -
Stuck escape sequences: a multi-parameter sequence such as Ctrl+Arrow (
ESC[1;5A) never terminated and swallowed the keys typed after it. -
Scrollback navigation: scrolling now skips hidden and empty history entries instead of stopping on them.
-
BBS fallback loader: posts loaded from the state file now keep their board and moderation flags.
-
Logging: obsolete encoding-debug logs were removed.
Tests
- New
test_ansi_art(14 cases): the SGR filter, color carry, and line composition. - DDial protocol and hub tests cover reply formatting and splitting, quote matching, threading, d-ids, station keys, and a loopback station login. Scrollback navigation has regression tests.
- Regression tests for the JWT decode and CP949 detection fixes from v1.4.
Full changelog: v1.4...v1.5