Commit Graph
6 Commits
Author SHA1 Message Date
rich c713d8ba34 palm-client: modules into segment 2 with a build check; better Unicode display
Segment 1 was back at 27 KB. Settings, Contacts, Channel, Home, Node,
convos, messages, contacts, channels, rowlist and draw move to vmcode2:
segment 1 is now 10.3 KB, segment 2 23.4 KB. tools/sect2.py adds the
VM_SECT2 static declarations.

Checked in the compiled code, the rules in sections.h were too cautious:
literals in a vmcode2 function are emitted into vmcode2, a file's static
const data and calls to unannotated functions go through the __text__
base, and taking a vmcode2 function's address (event handlers, callbacks)
gives its real address. The real traps are shared extern const tables and
-fwritable-strings (PC-relative into .data). tools/check_sections.py runs
after every link and fails the build on any PC-relative reference from
vmcode2 to outside it; python3 added to the toolchain image for it.

Unicode: characters past Latin-1 all became '?', and Windows-1252 quotes
and dashes had no glyph in the small font. Now arrows, check marks, stars,
bullets and node-type marks map to the font's UI symbols, typographic
quotes and dashes to ASCII, any emoji to a new smiley glyph, and
variation selectors / zero-width joiners are dropped.
2026-11-01 17:29:20 -05:00
rich 8dd34839e0 palm-client: two-line compose field; redraw fully after the keyboard
The single-line compose field didn't scroll, so typing past its width was
blind; it's now a two-line multi-line field (Palm scrolls it to keep the
cursor visible; the transcript is 8 px shorter). Graffiti return still
sends: the form catches linefeed before the field.

Screens treated every frmUpdateEvent as new data and only redrew their own
content, so after the on-screen keyboard (frmRedrawUpdateCode) the field,
buttons and counter weren't redrawn. Conversation, Home, Contacts and Node
now redraw the form for frmRedrawUpdateCode.
2026-11-01 17:22:54 -05:00
rich 2d1a9afb44 palm-client: don't move a set radio clock more than a week
A slip in the Visor's date picker (Oct 1 2027 instead of Nov 1 2026) went
straight into the radio, whose clock only moves forward, so it can't be
undone without a radio reboot. When the radio's clock looks set (after
2025-01-01), SessionSyncClock now only corrects drift under 7 days and
otherwise flags a mismatch, shown on the Node clock line.
2026-11-01 16:06:28 -05:00
rich 651217aecb palm-client: ignore a nonsense system time zone; dates on the clock line
The Neo's prefMinutesWestOfGMT was 1140 (19 h), so the default UTC offset
was -19 h, which explains the radio clock being set to the wrong day. A
system value past +-14 h is now ignored (offset 0 until set in Settings).
The Node clock line shows dates too: the remaining problem looks like the
Visor's date, which the times alone couldn't show.
2026-11-01 16:04:28 -05:00
rich fa11770c13 palm-client: clock line on Node (Visor, UTC, offset, radio, system pref)
The radio clock stays ~9 h behind although Settings shows UTC -5: at
connect it was set to Visor time minus 5 h, i.e. an offset of +5 was in
effect, and later saves read the radio clock without setting it. Rather
than guess, Node now shows the Visor's clock, the computed UTC and the
offset in effect, the radio's clock as last read, and Palm OS's
prefMinutesWestOfGMT (the offset's default).
2026-11-01 16:01:10 -05:00
rich c04bebeb81 palm-client: MeshTerm-style screens: conversations, transcript, contacts, node
Home is now the conversation list (channels in slot order, then direct
conversations most recent first) with markers, unread badges, failed
marks, ages and previews; it connects on launch with the saved link.
The conversation screen shows day dividers, sender chips, time column,
wrapped text and SNR or delivery marks (pending, waiting for ack, acked,
failed), with a compose field, a UTF-8 byte counter, Send (or Graffiti
return), and tap-to-retry on failed messages. Contacts pins our node and
shows type marks, heard ages and routes; Message opens a DM. The old main
screen becomes Node with Advert and Done. One Options menu everywhere;
while connected the event loop polls every half second and posts a form
update when messages or contacts change.
2026-11-01 15:29:19 -05:00