Commit Graph
23 Commits
Author SHA1 Message Date
lotherkandClaude Opus 5.5 c8e8587f9b mcde: backup by BorgBackup to a disk of its own, with a watcher for space
McdeSys gets the backup (lib/McdeSys/backup.c): a partition becomes the
backup disk with an encrypted repository (borg init -e repokey-blake2);
every hour root's crontab runs dtbackup run: borg create of / (and /home)
on its own file systems, lz4, then prune -- 24 hourly, 30 daily, 52
weekly, every monthly unless set otherwise (keep_* in
/etc/mcde-backup.conf, -1 keeps every one) -- and compact.  The watcher:
before and after each run, while the backup disk has less than min_free
percent free (10 unless set), the oldest backup is deleted and the space
given back; the newest is never deleted.  Listing (borg list --json) and
restoring a path into a folder (borg extract).  The passphrase lives in
/etc/mcde-backup.pass, root's alone, handed over by BORG_PASSCOMMAND.
docs/reference/borg.txt from borg 1.4.5's own documentation.

dtbackup run | status | list: the same from a shell and for cron, no X.

Measured: builds on the Linux host and compiles in the build VM; as a
user dtbackup status says no disk is set up and dtbackup run refuses.
Not measured: a real backup -- borg is not on the host and goes into the
set with the next userland.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 13:49:38 +00:00
lotherkandClaude Opus 5.5 cfc5c3f22c mcde: McdeSys knows the disks, and the permissions the system should have
mcde_sys_disks lists the drives, each with its partitions: size, model,
file system, label, removable, the system's (/, /usr, /var, /home, swap),
where mounted and how full.  NetBSD: hw.disknames, dkctl getgeometry and
listwedges, atactl identify, getmntinfo, swapctl -l; Linux: lsblk -P -b.
mcde_sys_disk_mount (/media/LABEL; Linux through udisksctl),
_unmount, _check (fsck -n) and _erase (root; a drive with a system
partition or a mounted one is refused): NetBSD gpt destroy/create/add,
dkctl makewedges, newfs -O 2 or newfs_msdos -F 32; Linux sfdisk and
mkfs.ext4/vfat.  docs/reference/disks.txt.

mcde_sys_permissions compares owner, group and mode of the system's files
with the specification sysinst keeps for every installed set,
/etc/mtree/set.* (set.makronix too), and repairs them as root (mtree -e
-U).  mtree -k did not stop it from comparing sizes and checksums, so the
specification is narrowed to type, uname, gname, mode and link first.
Linux keeps no such list: not supported there.
docs/reference/permissions.txt.

Measured: on the Linux host the NVMe drive and its three partitions, all
the system's; erasing as a user refused.  In the build VM as root,
listing only: wd0 (QEMU HARDDISK, 68.7 GB) with dk0 on / and dk1 swap, cd0;
verifying the permissions reported 207 differences, all under /usr/pkg,
which that VM built itself instead of unpacking the set.  Nothing was
mounted, erased or repaired.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 13:12:14 +00:00
lotherkandClaude Opus 5.5 385f366abd mcde: McdeSys finds the computers on the network and connects to them
mcde_sys_net_browse lists the computers that announce SMB, AFP, NFS, SSH
or just themselves by DNS-SD: on NetBSD through mdnsd with dns_sd.h from
base (DNSServiceBrowse per type, DNSServiceResolve per service, select
until the time is up; docs/reference/dns-sd.txt), on Linux with
avahi-browse -atrpk (its \DDD escapes decoded).  mcde_sys_net_shares
lists NFS exports (showmount -e) and SMB shares (smbclient -g -N -L);
mcde_sys_net_mount connects sftp:// (sshfs, a password on its standard
input), nfs:// (mount_nfs / mount.nfs) and afp:// (afpfs-ng's mount_afp)
to a folder; mcde_sys_net_unmount (fusermount -u, else umount).  Host
and user names are checked before they reach a command line.

mcde_sys_capture_limited ends a child after a time: showmount waited
minutes for an rpcbind that was not there (measured in the build VM);
the share lists wait 8 seconds.

Measured: on the Linux host 4 computers with their services (KITT,
N95 with SMB; two laptops with SMB and SSH), the local SMB share and NFS
export listed, a host name with ';' refused.  In the build VM: it builds
with -ldns_sd; without mdnsd a clear message; with mdnsd started the
browse ran and found none (qemu's user network carries no multicast);
showmount gave up after 8 s.  Mounting is not measured yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 12:47:12 +00:00
lotherkandClaude Opus 5.5 64bfd2048f mcde: Sharing in System Settings: SSH, SMB, NFS, AFP, AppleTalk
McdeSys gets the services that let others in (mcde_sys_service_state,
mcde_sys_service_set) and one list of shared folders for SMB, NFS and AFP
(mcde_sys_shares, mcde_sys_shares_set: /etc/mcde-shares, and a block
between "# MCDE shares begin" and "... end" in exports, smb.conf and
afp.conf; the rest of each file stays as written).  NetBSD switches
rc.conf and runs the rc.d scripts -- sshd; rpcbind, mountd, nfsd and
nfslocking for NFS; samba, netatalk, atalkd and papd from pkgsrc, whose
example rc.d scripts are copied to /etc/rc.d first, as PKG_RCD_SCRIPTS=YES
would.  Linux uses systemctl (ssh, smbd and nmbd, nfs-server, netatalk;
no AppleTalk).  NetBSD's kernel has AppleTalk (GENERIC: options NETATALK)
and pkgsrc's netatalk4 builds atalkd on NetBSD.  docs/reference/sharing.txt.

The Sharing pane (Internet & Network) shows each service with its switch
and how others reach it (ssh host, smb://host/, host:/folder,
afp://host/), and the shared folders with Add and Remove; as a user it
offers Unlock..., as Accounts does.

Measured: on the Linux host, read only: ssh, smb, nfs installed, enabled,
running; afp and appletalk not installed (the pane on Xvfb says so).  In
the build VM as root: NFS on started rpcbind, mountd, nfsd, statd, lockd;
sharing /tmp/mcdeshare made showmount -e list it for Everyone; NFS off
stopped them; the VM's rc.conf was restored after.  First found there:
mountd will not start without /etc/exports, and statd/lockd are one
script, nfslocking.  Samba and netatalk are not in the makronix set yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 12:36:46 +00:00
lotherkandClaude Opus 5.5 57c817fe42 mcde: every MCDE window carries _NET_WM_PID and WM_COMMAND
The front panel starts a kept program again with its command; CDE's
programs did not say it: dtterm's windows had neither WM_COMMAND nor
_NET_WM_PID, so the panel fell back to the class name.  libDtSvc's new
McdeWmHints.c sets _NET_WM_PID (EWMH) on every top-level shell when it is
first mapped, and WM_COMMAND (ICCCM 5.1.1.1) from the application shell's
XtNargv where Xt has not set it; shells made later are found through Xt's
create hook.  It runs from _DtMcdeGlobalMenuInitialize, which DtInitialize
calls and dtterm calls by itself (dtterm does not call DtInitialize), and
before that function's MCDE_NO_GLOBAL_MENU check.

Measured on Xvfb: dtterm -geometry 40x5 now has _NET_WM_PID and
WM_COMMAND { dtterm, -geometry, 40x5 }; dtcalc has _NET_WM_PID and
WM_COMMAND { dtcalc }.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 12:28:24 +00:00
lotherkandClaude Opus 5.5 0987753527 mcde: the front panel shows the open programs left of the trash
CDE's front panel stays as it is.  Left of the trash it gets one part of
MCDE's (dtwm/WmMcdePanel.c): first the programs kept in the panel
(~/.dt/panel-apps), then the running programs no main panel control names.
A click brings a window forward on its workspace, or starts a kept
program; the right button offers Keep in Panel / Remove from Panel, and
dragging a running one to the left with the button held keeps it too.
The command to start a kept program comes from WM_COMMAND, else from the
process of _NET_WM_PID through the new mcde_sys_process_command (NetBSD:
sysctl kern.proc_args, Linux: /proc/PID/cmdline), else the class.

The buttons are CDE's panel controls (_DtCreateControl) with the class's
icon; a blank of the same width in the arrow row keeps every drawer's
arrow over its control; colour and pattern come from the panel row, so the
part follows the palette.  Hooks: UI.c (MainControlCreate), WmManage.c
(manage, unmanage), PopupMenu.c (the menu button over the part).

Measured on Xvfb (build/mcde-shots/panel-*.png, theme-*.png): dtterm and
dtcalc appear left of the trash; Keep in Panel wrote "Dtterm	dtterm",
the drag "Dtcalc	'dtcalc'"; with none running a click on the kept
dtcalc started it; in a dtsession with the Default and the Arizona palette
the part has the panel's colours and the bar, the panel and the windows
all change with the palette.

www: the front panel and the colours.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 12:16:06 +00:00
lotherkandClaude Opus 5.5 f88138d2bb mcde: McdeSys common.c builds on NetBSD: X/Open 700 for symlink(2)
NetBSD declares symlink only for _XOPEN_SOURCE 500 and up or
_NETBSD_SOURCE (src/include/unistd.h:249); with _POSIX_C_SOURCE alone the
time zone code did not compile there ("implicit declaration of function
'symlink'", measured in the build VM).

Measured in the build VM after the change: the zone in use (UTC: the VM
has no /etc/localtime), 313 zones from Africa/Abidjan to UTC, a bad name
refused; no Wi-Fi card there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 08:41:28 +00:00
lotherkandClaude Opus 5.5 dffeaf9b17 mcde: Wi-Fi in System Settings: the networks in reach, joining one
McdeSys implements mcde_sys_wifi_scan and mcde_sys_wifi_join.  NetBSD
does what sysinst does (src/usr.sbin/sysinst/net.c): a network block in
/etc/wpa_supplicant.conf -- a new file gets the example's ctrl_interface
for the wheel group, so wpa_cli answers users -- and wpa_supplicant,
wpa_supplicant_flags and dhcpcd in rc.conf, each line replaced or added;
then both are restarted.  Scanning asks wpa_cli scan_results, else
ifconfig -v IF list scan (root).  Linux uses nmcli.  The sources are in
docs/reference/wifi.txt.

The Network pane lists the networks of the first Wi-Fi card with signal
and lock, scanned once the pane is drawn.  Join... opens a terminal where
su asks for the administrator's password and dtsystemsettings -join-wifi
IF SSID-HEX asks for the network's password without echo: the name goes
as hexadecimal, the password on no command line of MCDE's (nmcli takes it
on its own on Linux; said in linux.c).

Measured on the Linux host: test_sysinfo finds 5 networks on wlp0s20f3
(read only); the pane lists them on Xvfb; -join-wifi as a user refuses
with "Only the administrator can join" and refuses a bad name.  Not
measured: joining (never on this host), NetBSD scanning and joining
(no Wi-Fi in the build VM).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 08:37:38 +00:00
lotherkandClaude Opus 5.5 db32002727 mcde: choosing the time zone in Date & Time
McdeSys gets mcde_sys_timezone_get (where /etc/localtime points into
/usr/share/zoneinfo), mcde_sys_timezones (zone1970.tab, else zone.tab, and
UTC) and mcde_sys_timezone_set: the zone must be a file of the zoneinfo
directory and a plain name, the caller root; the new link is made beside
/etc/localtime and renamed over it, so it is never missing (sysinst makes
the same link: src/usr.sbin/sysinst/util.c), and Debian's /etc/timezone
follows where it exists.  All POSIX, in common.c, for NetBSD and Linux.

Date & Time shows the regions and their places with the zone in use
selected; Set Time Zone sets it as root, or opens a terminal where su asks
for the password and runs dtsystemsettings -set-timezone ZONE.

Measured: test_sysinfo on the Linux host says "zone Europe/Lisbon, 313
zones offered" and refuses "../../etc/passwd"; on Xvfb the pane shows
Europe / Lisbon selected (build/mcde-shots/desk-0.png).  Setting a zone
is not measured yet (not on the host; the build VM is busy).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 08:29:50 +00:00
lotherkandClaude Opus 5.5 f788367833 mcde: read PNG with libpng, not with Motif
Motif 2.3.8 shifts the channels of a PNG without alpha the wrong way and
draws only its blue (docs/reference/motif-png.txt).  libDtSvc gets
McdeImageGetPixmap/McdeImageFreePixmap (Mcde/Image.h): PNG through libpng's
simplified interface (png_image, the background for the alpha), packed by
the visual's masks; every other format still through XmGetPixmap.  dtwm's
backdrops and slideshow and the small pictures of System Settings use it.
dtwm now also frees a backdrop pixmap that is not in Motif's cache (a
scaled copy), which it kept for good before.

configure finds libpng >= 1.6 with pkg-config; the recipe includes
graphics/png's buildlink3.mk (Motif depends on it already); the header is
in the PLIST.

Measured on Xvfb: the RGB PNG that showed only blue (slide-3.png before)
shows its colours as backdrop (build/mcde-shots/slide-3.png) and as a
small picture (desk-2.png).  A 16-bit PNG is not measured.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 08:16:14 +00:00
lotherkandClaude Opus 5.5 e73c2858e9 mcde: System Settings: Desktop and Screen Saver, with a folder as slideshow
One pane with two pages.  Desktop: the backdrop in use as a preview with
its name; the places on the left -- CDE's backdrops, ~/.dt/backdrops,
~/Pictures, folders the user adds with Choose Folder... (kept in
~/.dt/backdrop-folders); their pictures small on the right, made one at a
time while the window is idle and scaled with Xrender; the style (fill,
fit, centre, tile); "Change picture every ..." and "Random order" make
the place a slideshow in dtwm (f.mcde_slideshow now, Dtwm*mcdeSlideshow
for the next login).  Screen Saver: the savers of $DTSCREENSAVERLIST with
one running in a preview (_DtSaverStart), the minutes until it starts and
whether it asks for the password, sent to dtsession as dtstyle does.

DtWidget's mail control crashed in strlen when neither MAIL nor LOGNAME
was set (dtwm's front panel in a session started by hand): the name now
comes from the password file.

Measured on Xvfb with dtwm (build/mcde-shots/desk-*.png): the backdrops
and ~/Pictures appear as small pictures; a click made d-green.jpg the
backdrop and the preview; Change picture put "Dtwm*mcdeSlideshow: 30 0 3
.../Pictures" into the resources and dtwm showed the folder's first
picture; the Screen Saver page ran Swarm and Qix in its preview.  Not
measured: the saver settings through dtsession (the test was not run).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 08:12:20 +00:00
lotherkandClaude Opus 5.5 451aac7fe4 mcde: the battery in the bar
McdeSys gets mcde_sys_battery: all batteries as one, charging, mains,
minutes left.  NetBSD reads the envsys(4) dictionary of /dev/sysmon as
envstat(8) does (acpibat "present", "charge", "charging", "discharge
rate"; acpiacad "connected"), Linux /sys/class/power_supply (energy_* or
charge_*, status, Mains/USB online).  The sources are in
docs/reference/battery.txt.

dtbar shows a fourth icon, only when there is a battery: full, half, low
(red), charging; its menu says the charge, the power source and the time
left.  The status bar is 30 pixels an icon.

Measured: on the Linux host test_sysinfo says "battery 76% ac", as
/sys/class/power_supply/BAT0/capacity and AC/online do; the menu on Xvfb
(build/mcde-shots/battery-menu.png) says "Battery: 76 %", "Power Source:
Power Adapter".  The NetBSD backend compiles and runs in the build VM,
which has no battery (envstat: no drivers registered): only the
no-battery case is measured there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 07:01:18 +00:00
lotherkandClaude Opus 5.5 8ab668c689 mcde: Accounts and Software Update, in dtsystemsettings and McdeSys
McdeSys: mcde_sys_users/user_add/user_delete (users.c, POSIX getpwent and
useradd/userdel), user_set_password and user_set_admin per system (NetBSD:
pw_gensalt+crypt for usermod -p, wheel; a group member removed by rewriting
the group's line as user.c does, since usermod -G only appends -- measured;
Linux: chpasswd on stdin, gpasswd, sudo), mcde_sys_update_check/apply
(NetBSD: /etc/makronix/update, RELEASE, sysupgrade, pkg_add -uu; Linux:
apt-get).  A secret goes through a pipe, never on a command line.
Tests: test_sysinfo refuses a bad login and, not as root, adding (PASS on
Linux and NetBSD); as root in the NetBSD VM add/admin on/off/password/delete
pass and /etc/group is as before.

dtsystemsettings: Accounts (list, Add/Delete/Password/Administrator,
Unlock... through su -m root in a terminal, password fields show stars),
Software Update (running, available, new packages, source, Check Now,
Update Now... runs -apply-update as root in a terminal; the check runs
after the pane shows: apt took 21 s here).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 12:38:21 +00:00
lotherkandClaude Opus 5.5 776e0f3d47 mcde: dtbar status menus work: slider in the menu, icons as CDE icon files
- menuscale.c gives XmScale Motif's XmQTmenuSavvy trait (XmeTraitSet, as
  Label.c does for its classes): a menu takes the volume slider without
  "wrong child type".  Dragged against a private PulseAudio (null sink):
  40 % -> 100 %, two wheel steps -> 90 %.
- The icons are CDE icon files (icons/Mcde*.t.pm, appconfig/icons/C, in the
  PLIST), loaded with XmGetPixmap; the status menu bar has a fixed width (the
  form had squeezed the buttons to 10 pixels).
- McdeSys sets SIGCHLD to the default while it waits for a tool: dtbar
  ignored SIGCHLD, waitpid gave no status and every query failed (volume -1).
  dtbar starts programs with a double fork instead.
- Menu entries left-aligned; Mute shows its box when off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 11:23:50 +00:00
lotherkandClaude Opus 5.5 7aab59d334 mcde: McdeSys: network interfaces, volume, Bluetooth (NetBSD and Linux)
mcde_sys_interfaces (getifaddrs; Wi-Fi and SSID from the backend: the
SIOCG80211NWID ioctl on NetBSD, /sys/class/net and iw(8) on Linux),
mcde_sys_volume_get/set/mute (PulseAudio's pactl where a server answers,
else mixerctl(1) on NetBSD, amixer(1) on Linux), mcde_sys_bluetooth and
_power (btconfig(8), bluetoothctl(1)).  mcde_sys_capture reads a tool's
output to the end.  test_sysinfo only reads: on the Linux host Wi-Fi with
its SSID, 75 %, hci0 on; in the NetBSD VM wm0 wired with its address, no
mixer, no Bluetooth -- both PASS.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 08:07:43 +00:00
lotherkandClaude Opus 5.5 9b90e256d6 mcde: lib/McdeSys begins: system information and power, NetBSD and Linux
mcde_sys_info (system, version, kernel, model, processor and count, memory,
startup disk and its space, host name) and mcde_sys_power (sleep, restart,
shut down) in libMcdeSys: common.c is POSIX, netbsd.c uses sysctl(3),
/etc/release, statvfs's f_mntfromname, zzz(8) and shutdown(8); linux.c uses
os-release(5), /proc and /sys, systemctl or shutdown(8).  test_sysinfo (make
check) passes on the Linux host and, compiled natively, in the NetBSD build VM.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 07:47:52 +00:00
lotherkandClaude Opus 5.5 7757e1b19f mcde: dtterm's menus in dtbar; every menu bar of a window hidden; no rebuild of an open menu
dtterm does not call DtInitialize: it starts the program side itself
(_DtMcdeGlobalMenuInitialize, declared in Mcde/GlobalMenu.h when Xt is in).
McdeGlobalMenu.c keeps all menu bars (dtterm has one per tab), hides any the
program manages while the bar runs (Xt change hook) and exports the first
that lives.  dtterm's menus follow the tab with the focus
(_DtTermViewMenuSetCurrent, setContext split into contextFor), since from the
bar they are not posted from the tab.  dtbar defers a new menu text while one
of its menus is open (the open menu was pulled away under the click).
Tested on Xvfb: dtterm's Window/Edit/Options/Help in the bar, no menu bar in
the window with two tabs, Window > New Tab from the bar makes the third.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 07:43:50 +00:00
lotherkandClaude Opus 5.5 e8240130d8 mcde: dtbar, the bar at the top with the menus of the active program
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>
2026-11-10 07:27:29 +00:00
lotherkandClaude Opus 5.5 261cb1e992 mcde: dtterm profiles (font, colours, command); Window > New Tab with Profile
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>
2026-11-10 07:08:16 +00:00
lotherkandClaude Opus 5.5 b14aea8543 mcde: dtterm tabs (Ctrl+Shift+T/W/Left/Right), titles per tab
programs/dtterm/Tabs.c: the window holds an XmTabStack, every tab a whole
DtTermView (its own process, menu, scroll bar); a tab whose shell exits
closes alone, the window with its last tab; the keyboard follows the tab
in front.  DtTermMain.c: views go into the container, the window's menu
toggle and close callback belong to the first tab, NewTab for Ctrl+Shift+T,
ShellOf where the code took the view's parent for the shell (session
save, clone).  TermParse.c: a title set by a program goes to its tab, and
to the window only from the tab in front.
Found on the way: XmTabStack has a child of its own (the bar of tabs);
counting it as a tab crashed Ctrl+Shift+Left and kept the first tab from
registering the close callback.
Tested on Xvfb with dtwm and xdotool (build/mcde-shots/tabs-*.png): two
tabs, titles 'second' / 'first' on switching, one closed, dtterm running.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 00:03:16 +00:00
lotherkandClaude Opus 5.5 ac0952a29b mcde: anti-aliased Hack everywhere; dtterm draws through Xft with UTF-8 and glyph fallback
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>
2026-11-09 23:55:41 +00:00
lotherkandClaude Opus 5.5 7ea25c5d3e mcde: fold the nine pkgsrc patches of wm/cde into the tree
A fork carries its fixes in the source; the recipe no longer patches.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 19:37:04 +00:00
lotherkandClaude Opus 5.5 3b2a54c64b ext/src/mcde: import CDE 2.5.3 and pkgsrc wm/cde unchanged (the base of the MCDE fork)
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>
2026-11-09 19:36:46 +00:00