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>
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>
A fourth view button, Columns: one column per folder from Home (or /)
down to the window's folder, as many of the deepest as fit, and on the
right a preview of what is chosen -- the type's icon, its kind (TYPE_LABEL
as words, and the MIME type), size and date. A folder chosen opens the
next column and becomes the window's folder through dtfile's own
ChangeDirectoryToParent, so title, path bar, history and the other views
follow; Back, Forward and the places rebuild the columns; a double click
on a file runs the first action of its type.
The columns are a sibling of CDE's work frame with its attachments; they
are managed before the work frame is unmanaged, with the form around held
at XmRESIZE_NONE: otherwise the window shrank to the columns' own size.
Measured on Xvfb (build/mcde-shots/df-*.png): Columns, Documents,
Projects, plan.txt -- three columns, the preview with the text icon,
"Kind: Textfile (text/plain)", 6 bytes; Back rebuilt the columns at
Documents; Icons brought the work area back; the window kept its size.
Not measured: the double click.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
At login the session left or the home session, asking before logout, and
Save These Windows as Home Session: what dtstyle's Startup sets, sent the
same way (_DtSetSmState with SM_STATE_START and SM_STATE_CONFIRM; the
client message _DT_SM_SAVE_TO_HOME). And a list of programs to open at
login, one command a line in ~/.dt/login-items, which the new
Xsession.d/0095.loginitems starts five seconds into the session, each
through sh in the background, as 0090.dtbar starts the bar.
Measured in a dtsession on Xvfb (build/mcde-shots/startup-*.png):
_DT_SM_STATE_INFO went from start 4 (current), confirm 1 (verbose) to 3
(home), 2 (quiet); adding dtcalc wrote ~/.dt/login-items. 0095.loginitems
sourced by ksh returned at once and ran both entries of a test list (one
with blanks in its argument) after the pause, skipping the comment. Save
as Home Session is not measured.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
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>
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>
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>
f.change_backdrop with pixmap 0 makes dtwm load the picture itself
(XmGetPixmap: JPEG and PNG through Motif), and the request is parsed from
its end, so a path may hold blanks. f.mcde_slideshow INTERVAL RANDOM STYLE
FOLDER, and the resource Dtwm*mcdeSlideshow at the start, change the
backdrop of every workspace every INTERVAL minutes, in order or at random;
the folder is read anew each time. Fit and Fill scale with Xrender's
bilinear filter instead of the nearest pixel.
Measured on Xvfb (build/mcde-shots/slide-*.png): c-red.jpg from "My
Pictures" filled the screen; the slideshow showed a-blue.jpg at once,
fitted, and the next picture after one minute; dtwm kept running.
Found: Motif 2.3.8 draws an RGB PNG without alpha as its blue channel only
(lib/Xm/Png.c shifts right where it must shift left);
docs/reference/motif-png.txt.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Appearance shows CDE's palettes, each as a row of its colours (named
colours too: Black.dp, BlackWhite.dp), found where the colour server looks
(~/.dt/palettes, the configuration and the installation directory). A
choice merges "*0*ColorPalette: NAME.dp" with _DtAddToResource as dtstyle
does (ColorMain.c) and says it takes effect at the next login, with a Log
Out Now button: on TrueColor the colour server cannot change colours it has
allocated, which dtstyle says as well.
Fonts lists the families Xft knows and a size, with a preview in that
font, and merges *mcde.fontName/*mcde.fontSize, the render table every
MCDE program draws with (sys.resources). dtsession saves the whole
RESOURCE_MANAGER at logout (SmSave.c, OutputResource).
Measured on Xvfb (build/mcde-shots/input-appearance.png, input-fonts.png):
choosing Arizona put "*0*ColorPalette: Arizona.dp" into RESOURCE_MANAGER;
choosing DejaVu Sans Mono at 12 put "*mcde.fontName: DejaVu Sans Mono",
"*mcde.fontSize: 12" there, and the preview drew in it. The next login
with the new palette is not measured here.
www: System Settings and the bar brought up to date.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dtsystemsettings draws the Keyboard pane (key repeat, its delay and rate,
key click, a field to try it) and the Mouse pane (primary button, pointer
speed, threshold, double-click time) instead of opening dtstyle. A change
takes effect at once through Xlib and goes to dtsession as dtstyle sends
it (_DT_SM_KEYBOARD_INFO, _DT_SM_POINTER_INFO; *multiClickTime through
_DtAddToResource).
dtsession saves and restores the XKB repeat delay and interval
(XkbGetAutoRepeatRate at logout, XkbSetAutoRepeatRate at login), which the
core keyboard state does not carry. And it keeps every pointer button: the
map was char[5], the parse of the property wrote past it without a bound,
and the restore cut the map to 5, which the server refuses on a mouse with
more buttons.
Measured on Xvfb (build/mcde-shots): the sliders set the server (xset q:
delay 490, rate 29, click 20; acceleration 3/1, multiClickTime 280; xmodmap
-pp 1->3, 3->1). Through a whole dtsession: logout wrote RepeatDelay 490,
RepeatInterval 34, ButtonMap 3,2,1,4,...,10 (10 buttons), AccelNum 3; the
next login restored delay 490 rate 29, acceleration 3/1 and the swapped
buttons. The double-click time is saved (dt.resources) but its restore is
not measured: a dtsession started without Xsession gets no resources
loaded (3 in xrdb, against 108 in a real session).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
The paned window gave the closed pane's height back to the shell and the
window shrank. The neighbour above (else below) is held at both heights
until the paned window has laid it out, as a split holds the new pane
(SplitDone). Measured on Xvfb: build/mcde-shots/split-1.png, split-2.png.
www: split and drop-down are done, the search field of dtfile too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A search field in the toolbar narrows the window to the names with the
text (any case); FilterFiles asks _McdeNavHidden, the text is kept per
window in Navigation.c; a new directory starts with an empty search.
- The view buttons show the window's view from the start, and the first
directory starts the history: the first window gets it without
ShowNewDirectory, so both are set once the window's data is attached.
- ChangeDir.c: the desktop folder's lock compared two empty ToolTalk paths
and refused every folder ('restricted folder' with an empty name); it
compares real paths only.
Tested on Xvfb with dtwm: Icons pressed at start, List, Documents from the
sidebar, Back to home, Forward to Documents, 're' leaves report.pdf.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every tab is a page now, an XmPanedWindow (mcdeSplit) holding the tab's
DtTermViews -- Xt cannot give a widget another parent, so the page is there
from the start and a split is one more view in it (_McdeTabsPageFor). The
new view is held at its share of the page's height until the paned window
has laid it out, then gets the keyboard; a pane keeps at least 60 pixels.
Ctrl+Shift+W closes the view, the tab with its last, the window with its
last tab. Tested on Xvfb: two terminals in one tab, typing goes to the new
one, closing it keeps dtterm running, Ctrl+Shift+T still opens a tab.
Open: after closing a pane the window shrinks to the one left.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Dropdown.c: full width, 40 % of the screen high, override-redirect, hidden
until its key (resource dropdownKey, F12); then it slides down in 8 steps to
below the top bar and takes the keyboard, the key sends it back up. The key
is grabbed on the root window (with the CapsLock/NumLock combinations, a
BadAccess is reported) and taken in dtterm's own event dispatcher
(XtSetEventDispatcher): registering the root window with a widget did not
bring it. Xsession.d/0085.dtdropdown starts it in every session.
Tested on Xvfb with dtwm and dtbar: hidden at start, down on F12 below the
bar with the keyboard (typed 'echo dropped down'), up again on F12.
xdotool key F12 maps F12 to a spare keycode the grab never sees; the test
sends an XTest event on F12's own keycode.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MakronixDtlogo.t.pm: the M with its star, drawn by hand -- the 240-pixel logo
scaled to 16 was a dark square. dtbar gives it when the button is made (so
Motif sizes it) and keeps the letter M where the icon is missing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
Four bands of icons -- Personal, Hardware, Internet & Network, System --
from panes.c (plain C, PASS test_panes); a click opens the pane in the
window, Show All goes back, -pane ID opens one directly. Own panes through
McdeSys: Sound (volume, mute), Network (the cards, addresses, SSID),
Bluetooth (state, on/off), Date & Time (a running clock, the zone), About
(everything mcde_sys_info knows). Appearance, Desktop, Fonts, Language,
Screen Saver, Keyboard, Mouse, Startup open dtstyle, Printers dtprintinfo,
until they are drawn here; Accounts and Software Update are greyed. dtbar's
System Settings... and the Sound/Bluetooth/Network Settings... items open
it. New icons: a 48-pixel Makronix logo, 32-pixel network and Bluetooth.
Seen on Xvfb with dtwm and dtbar, sound against a private PulseAudio.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 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>
status.c: three menus with 16x16 XPM icons left of the clock, through
McdeSys (volume via pactl/mixer, Bluetooth, interfaces); the wheel over the
speaker turns the volume. Shown on Xvfb with dtbar alone (speaker, Bluetooth,
network, clock). Open: with dtwm running the icons do not show
(build/mcde-shots/wcmp.png); the volume scale in a pulldown draws Motif's
'wrong child type' warning (RowColumn.c checks the XmQTmenuSavvy trait) --
next step a scale subclass with that trait; the network icon shows wired
while the host is on Wi-Fi.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The M menu has About This Computer (logo, system and version, processor,
memory, startup disk, More Info with machine, kernel, host name, disk space
and the desktop's version, all from mcde_sys_info), Software Update (greyed
until the update exists), System Settings, Favourites (~/.dt/favourites, with
Edit Favourites...) and Recent Items (~/.dt/recent, written when an item is
opened, with Clear Menu) -- items.c with its test (PASS test_items) --, Force
Quit (the programs with a window, XKillClient), Sleep, Restart..., Shut
Down... (McdeSys, the last two ask first), Lock Screen and Log Out <name>.
The bar's dialogs are centred on the screen (Motif centred them on the bar).
Tested on Xvfb: About, a favourite started and listed under Recent Items,
Force Quit ended dtcalc, the Shut Down question shows (not confirmed: on the
development host it could shut the computer down).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
McdeExcludeBar (WmMultiHead.c) takes the bar's height off the area at the top
of the screen while dtbar owns _MCDE_BAR_S<screen>; used for the placement
area and for maximizing, not for full screen. Tested on Xvfb: dtcalc placed
at frame y=23 (the bar is 23 high), maximized to 1012x648 below the bar.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
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>
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>