include/Mcde/GlobalMenu.h is the protocol (selection _MCDE_BAR_S<n>,
_MCDE_MENU on the program's window, _MCDE_ACTIVE_MENU on the root, client
messages to activate and refresh). libDtSvc's McdeGlobalMenu.c, started by
DtInitialize, finds every XmMenuBar with an Xt create hook, hides it while
the bar runs and writes its tree; a click in the bar calls the button's own
callback -- no Motif patch, every CDE program takes part. The text form is
McdeMenuModel.c with its test (PASS test_menumodel). dtbar: M menu (dtaction
Dtstyle, Dtterm, Dtfile, LockDisplay, ExitSession), the program's menus, the
clock; started by Xsession.d/0090.dtbar. The Mcde headers are installed.
Tested on Xvfb with dtwm and dtcalc: its menu bar leaves its window, Options
and Help are in the bar, Options > Memory Registers opens dtcalc's dialog.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Profiles.c reads ~/.dt/dtterm.profiles (else the config/ one), plain C with
its test (make check: PASS test_profiles). A view with a profile is named
profile_<name>; its colours are resources of that name, its font an Xft
render table that TermView now passes on to the terminal, its command
DtNsubprocessArgv unless -e gave one. Ctrl+Shift+T keeps the profile of
the tab; the Window menu gets New Tab and New Tab with Profile through a
hook in TermViewMenu.c; dtterm -profile NAME, and "Default" to start with.
Tested on Xvfb with dtwm: -profile, a tab by key, a tab by the menu.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fonts:
- fonts/hack: Hack 3.003 (Expat + Bitstream Vera, from Debian fonts-hack),
installed to dt/fonts; config/fonts.conf (the system's fontconfig plus
that directory) exported by Xsession.d/0070.dtfonts and
Dtlogin*environment.
- sys.resources and dtlogin Xresources: Xft render tables in Hack 10 for
renderTable, textRenderTable, labelRenderTable, buttonRenderTable (a
render table wins over sys.font's *FontList; dtterm and text fields read
the text table).
dtterm (ported from MakroDE -- setlocale and the Xft renderer -- then fixed):
- configure: Xft on by default, --disable-xft for machines without it.
- TermPrimRenderXft.c: reads wchar_t in multibyte locales (it read the
buffer as UTF-8 bytes: three boxes after every character), places every
character in its cell on the baseline, fills the background, draws
underline/overstrike/secure, wcwidth for wide and combining characters,
borrows glyphs from fontconfig fallbacks (check mark, CJK), and makes its
XftDraw at the first drawing (made in Initialize it was window 0, and the
first string a BadDrawable that ended dtterm).
- TermPrim.c AdjustWindowUnits: the cell from the renderer's extents when
there is no XFontStruct (crashed with Xft); _DtTermPrimRenderFontExtents.
- TermPrimRenderFont.c: with setlocale the buffer is wchar_t in UTF-8, the
single-font renderer draws it as XChar2b (it drew boxes too).
Screenshots: build/mcde-shots/dtterm-utf8b-crop.png, dtterm-classic-crop.png.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
programs/dtlaunch: Alt+space (Dtlaunch*hotkey) opens a field and a list;
matches programs in $PATH, ~/.dt/snippets (keyword TAB text), the
clipboard history (polled CLIPBOARD, 50 entries, memory only) and
calculations (=12*(3+4)). Return starts the program or puts the text on
CLIPBOARD and PRIMARY. One per display (_MCDE_DTLAUNCH); a second start
opens the first. C99/POSIX + Xt/Motif, no warnings with -Wpedantic.
model.c (no X) with test_model.c: make check PASS. Started in every
session by config/Xsession.d/0080.dtlaunch. Tested on Xvfb: snippet and
result reach the clipboard (build/mcde-shots/dtlaunch-*.png).
tools/mcde-linux.sh: check mode.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- configure.ac: the C dialect (-std=gnu11 and five GCC 14 downgrades) is
configure's own, also handed to dtksh's ksh93 build (MCDE_DIALECT_CFLAGS).
- The pkgsrc placeholders folded in from wm/cde (@PREFIX@, @VARBASE@,
@PKG_SYSCONFDIR@) are configure options now: --with-logfiles-dir,
--with-config-dir, --with-local-bindir; and --with-pamdir (dtlogin,
dtsession) and --with-calendar-dir (dtcm, rpc.cmsd) replace paths that
were fixed. Defaults unchanged; the recipe passes its paths.
- dtfile: programs/dtfile/Navigation.c -- Back/Forward with a history per
window, views Icons/Small/List, places in a sidebar, free space in the
status line (statvfs). Screenshot: build/mcde-shots/dtfile-7.png.
- make mcde-linux (tools/mcde-linux.sh): the development build on this host,
every system path under build/mcde-root. tools/mcde-shot.sh: run a
program on a private Xvfb with ttsession and dtwm, empty environment and
its own HOME, take a screenshot. tools/ext-sync.sh: ext recipes into
pkgsrc/<cat>/<name>.
Measured: build/logs/mcde-linux-install3-2026-11-09.log (mcde-linux exit=0).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- pkgsrc recipe: DISTNAME mcde-0.1.0 (archive from tools/mcde-dist.sh),
CONFLICTS+= cde-[0-9]*, DESCR.
- configure.ac: AC_INIT name and version 0.1.0; MCDE_VERSION; the
tarname and the CDE_VERSION_* API level stay (share/cde, DtVERSION).
- Dt.h: DtVERSION_STRING "MCDE 0.1.0 (CDE 2.5.3)".
- programs/icons/MakronixDtlogo.pm from docs/logo/camouflage, installed,
in PLIST, the default Dtlogin*logo*bitmapFile.
- include/Mcde/McdeSys.h: users, network/Wi-Fi, host name, time zone;
checked with gcc -std=c99 -D_POSIX_C_SOURCE=200809L -pedantic.
- ext/src/mcde/AGENTS.md: the philosophy (CDE/Motif/Xlib only, C99/POSIX,
everything OS-specific behind lib/McdeSys, conflicts with CDE).
Not built yet.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cde-2.5.3.tar.gz, SHA512 a01b413b... as in pkgsrc distinfo; recipe from
pkgsrc 3c1118e94432. Added with -f: CDE's .gitignore hides 612 files of
the archive.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>