Files
ewm/configs/apple2plus.json
Stefan ArentzandClaude Fable 5 2a36ca634f Window title from the config: EWM, or EWM - <title> (#312)
The window bar was picked by matching options.model, so an apple2
machine fell into the ][+ arm and showed "Apple ][+". Replace it with a
config-driven title: a new top-level `title` field, window reads
"EWM - <title>" when set and plain "EWM" otherwise
(config::window_title, shared by both frontends). The five built-in
configs set it to the machine name: Apple 1, Replica 1, Apple ][,
Apple ][+, Apple //e. The old "EWM v0.1 / …" strings are gone; the
bootloader window aligns to "EWM - Bootloader".

Both `two` and `one` carry the title in Options (from apply_config, and
round-tripped by options_to_config so --print-config shows it). It
comes from the document only: a bare `ewm two`/`ewm one` stays "EWM"
even though one's normalize fills the board from a builtin — so the
title tracks what you asked for, not the machine underneath.

Tests: window_title formatting, and every built-in carries its
machine-name title. Schemas regenerated for the new field.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-20 20:51:06 -04:00

14 lines
381 B
JSON

{
"$schema": "https://raw.githubusercontent.com/st3fan/ewm/main/schema/ewm-config.schema.json",
"description": "Apple ][+ — 64K Language Card, Disk II in slot 6, green monitor",
"title": "Apple ][+",
"machine": {
"model": "apple2plus",
"slots": {
"0": { "card": "language" },
"6": { "card": "diskii" }
}
},
"display": { "monitor": "green" }
}