From 412fe0a9fbf5d6c61778ecf19193080b4447bf55 Mon Sep 17 00:00:00 2001 From: wwwutz personal clanker Date: Wed, 14 Oct 2026 14:18:48 +0200 Subject: [PATCH 1/7] xterm: Update version from 303 to 412 412 is the newest release (2026-10-12). Drop `make install-ti` and the termcap/terminfo edits feeding it: run without DESTDIR, the terminfo never ended up in the package (the system xterm entries come from ncurses_terminfo_compat), and a non-root build writes to, or fails on, the host's terminfo directory. The package contains the same files as before, plus 16x16 pixmaps. Tested with `fakeroot beesh -c`, and under Xvfb: xterm starts with TERM=xterm, renders UTF-8, and sets erase to ^H, matching kbs in the system terminfo. Co-Authored-By: Claude Opus 5.5 --- xterm.be0 | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/xterm.be0 b/xterm.be0 index 86f89253a..958c04cc8 100755 --- a/xterm.be0 +++ b/xterm.be0 @@ -1,9 +1,9 @@ #!/usr/bin/env beesh -# BEE_VERSION xterm-303-3 +# BEE_VERSION xterm-412-0 -# SRCURL[0]="ftp://ftp.invisible-island.net/xterm/${PKGNAME}-${PKGVERSION}.tgz ${PKGNAME}-${PKGVERSION}.tar.gz" -SRCURL[0]="https://beehive.molgen.mpg.de/48f6d49b2b6b6933d501d767cbed9254/xterm-303.tar.gz" +# SRCURL[0]="https://invisible-island.net/archives/xterm/xterm-${PKGVERSION}.tgz" +SRCURL[0]="https://beehive.molgen.mpg.de/e04d8065cf0847573dbd24995c905737/xterm-412.tgz" # PATCHURL+=() @@ -19,11 +19,6 @@ SRCURL[0]="https://beehive.molgen.mpg.de/48f6d49b2b6b6933d501d767cbed9254/xterm- # bee_patch "${@}" #} -mee_patch_post() { - sed -i '/v0/,+1s/new:/new:kb=^?:/' termcap - echo -e '\tkbs=\\177,' >> terminfo -} - mee_configure() { cd ${S} ./configure \ @@ -37,7 +32,6 @@ mee_configure() { # bee_build #} -mee_install() { - bee_install - make install-ti -} +#mee_install() { +# bee_install +#} From ab789709f946779bec698208d19c4dad5f03b663 Mon Sep 17 00:00:00 2001 From: wwwutz personal clanker Date: Wed, 14 Oct 2026 15:25:06 +0200 Subject: [PATCH 2/7] xterm: Add minimumContrast patch Apply xterm-412-min-contrast.patch and bump the revision to 412-1. The patch adds a minimumContrast resource and -mincontrast option. Text whose WCAG 2 contrast ratio against its background is below minimumContrast (default 3.0; 1 disables) is drawn lighter or darker, keeping its hue. Light gray on a light background or dark blue on black stays readable this way. The adjustment happens only when drawing, including the character under the cursor; stored colors, screen dumps and color reports are unchanged. It also avoids X server round-trips when converting pixels on TrueColor visuals with more than 8 significant bits per channel, for both the contrast filter and faint (SGR 2) colors. Co-Authored-By: Claude Opus 5.5 --- xterm.be0 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xterm.be0 b/xterm.be0 index 958c04cc8..1d94a9910 100755 --- a/xterm.be0 +++ b/xterm.be0 @@ -1,11 +1,11 @@ #!/usr/bin/env beesh -# BEE_VERSION xterm-412-0 +# BEE_VERSION xterm-412-1 # SRCURL[0]="https://invisible-island.net/archives/xterm/xterm-${PKGVERSION}.tgz" SRCURL[0]="https://beehive.molgen.mpg.de/e04d8065cf0847573dbd24995c905737/xterm-412.tgz" -# PATCHURL+=() +PATCHURL+=("https://beehive.molgen.mpg.de/f270660d1cb083023457b650f0bacdc2/xterm-412-min-contrast.patch") # build_in_sourcedir From 6fb728c90ade4b4eb7f80d3deadeca54334bc1e2 Mon Sep 17 00:00:00 2001 From: wwwutz personal clanker Date: Wed, 14 Oct 2026 16:10:48 +0200 Subject: [PATCH 3/7] xterm: Add minimumContrast menu toggle Update xterm-412-min-contrast.patch and bump the revision to 412-2. The patch now also adds "Enable Minimum Contrast" to the VT Options menu, with the matching set-min-contrast(on/off/toggle) action, to turn the adjustment off and on at runtime. Enabling it when minimumContrast is 1 or less uses the default ratio, 3.0. Co-Authored-By: Claude Opus 5.5 --- xterm.be0 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xterm.be0 b/xterm.be0 index 1d94a9910..b5f7ac889 100755 --- a/xterm.be0 +++ b/xterm.be0 @@ -1,11 +1,11 @@ #!/usr/bin/env beesh -# BEE_VERSION xterm-412-1 +# BEE_VERSION xterm-412-2 # SRCURL[0]="https://invisible-island.net/archives/xterm/xterm-${PKGVERSION}.tgz" SRCURL[0]="https://beehive.molgen.mpg.de/e04d8065cf0847573dbd24995c905737/xterm-412.tgz" -PATCHURL+=("https://beehive.molgen.mpg.de/f270660d1cb083023457b650f0bacdc2/xterm-412-min-contrast.patch") +PATCHURL+=("https://beehive.molgen.mpg.de/afdca66ebc3e00873ec1b7236c903249/xterm-412-min-contrast.patch") # build_in_sourcedir From 3cab7a7873019bd3535e56a53a8b95d1e2f8beb8 Mon Sep 17 00:00:00 2001 From: wwwutz personal clanker Date: Wed, 14 Oct 2026 17:28:24 +0200 Subject: [PATCH 4/7] xterm: Fix minimumContrast after reverse video Update xterm-412-min-contrast.patch and bump the revision to 412-3. Text whose color equaled its background was always left alone, as deliberate hiding. After the VT Options "Enable Reverse Video" toggle swaps palette colors 0/7 and 8/15, palette color 7 equals the default background, so such text stayed black on black. The patch now skips only text for which the application chose the same color index (or the same direct color) for both; concealed text is unaffected. Co-Authored-By: Claude Opus 5.5 --- xterm.be0 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xterm.be0 b/xterm.be0 index b5f7ac889..8c03f9d0c 100755 --- a/xterm.be0 +++ b/xterm.be0 @@ -1,11 +1,11 @@ #!/usr/bin/env beesh -# BEE_VERSION xterm-412-2 +# BEE_VERSION xterm-412-3 # SRCURL[0]="https://invisible-island.net/archives/xterm/xterm-${PKGVERSION}.tgz" SRCURL[0]="https://beehive.molgen.mpg.de/e04d8065cf0847573dbd24995c905737/xterm-412.tgz" -PATCHURL+=("https://beehive.molgen.mpg.de/afdca66ebc3e00873ec1b7236c903249/xterm-412-min-contrast.patch") +PATCHURL+=("https://beehive.molgen.mpg.de/84831508305dd78cc9b8914ffbb417fa/xterm-412-min-contrast.patch") # build_in_sourcedir From 21dd5fa4a02a62aec04619162eac24a8e5c874e6 Mon Sep 17 00:00:00 2001 From: wwwutz personal clanker Date: Wed, 14 Oct 2026 17:41:22 +0200 Subject: [PATCH 5/7] xterm: Embed Cascadia Mono PL as default font Add xterm-412-embedded-font.patch with the font tarball as a second source, and bump the revision to 412-4. The patch compiles Cascadia Mono PL 2407.24 (regular and italic variable fonts, SIL OFL 1.1) into xterm and makes it the default faceName at 12 points. Unlike the previous bitmap default, Hack or DejaVu Sans Mono, it covers the braille patterns used by many TUIs, plus box drawing, block elements and Powerline symbols. The fonts are registered with fontconfig from memory at startup, so nothing is installed. faceName "" (-fa '') still selects bitmap fonts. Co-Authored-By: Claude Opus 5.5 --- xterm.be0 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xterm.be0 b/xterm.be0 index 8c03f9d0c..f10def696 100755 --- a/xterm.be0 +++ b/xterm.be0 @@ -1,11 +1,14 @@ #!/usr/bin/env beesh -# BEE_VERSION xterm-412-3 +# BEE_VERSION xterm-412-4 # SRCURL[0]="https://invisible-island.net/archives/xterm/xterm-${PKGVERSION}.tgz" SRCURL[0]="https://beehive.molgen.mpg.de/e04d8065cf0847573dbd24995c905737/xterm-412.tgz" +# Cascadia Mono PL 2407.24 (SIL OFL 1.1), compiled in by xterm-412-embedded-font.patch +SRCURL[1]="https://beehive.molgen.mpg.de/f87a48158136a00ba36327d301afdc21/cascadia-mono-pl-2407.24.tar.gz" PATCHURL+=("https://beehive.molgen.mpg.de/84831508305dd78cc9b8914ffbb417fa/xterm-412-min-contrast.patch") +PATCHURL+=("https://beehive.molgen.mpg.de/3804eddd780dfebc7cc22ec0413b75a8/xterm-412-embedded-font.patch") # build_in_sourcedir From 5c7db3f3c332a4846f433ceed2f1552e84a425e7 Mon Sep 17 00:00:00 2001 From: wwwutz personal clanker Date: Wed, 14 Oct 2026 18:20:49 +0200 Subject: [PATCH 6/7] xterm: Embed Hack Braille instead of Cascadia Mono PL Replace the Cascadia Mono PL font source with hack-braille-3.003.tar.gz, update xterm-412-embedded-font.patch and bump the revision to 412-5. Hack Braille is Hack 3.003 with the braille patterns U+2800..U+28FF added, which Hack lacks and many TUIs use for graphs and spinners. The dots are drawn by a small fontTools script (in the tarball), using the geometry of the Nerd Fonts patcher's braille; no glyphs come from other fonts, so the license stays Hack's: MIT and the Bitstream Vera License, which requires the rename. All four styles are embedded and "Hack Braille" at 12 points is the default faceName. Co-Authored-By: Claude Opus 5.5 --- xterm.be0 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xterm.be0 b/xterm.be0 index f10def696..76bd8927d 100755 --- a/xterm.be0 +++ b/xterm.be0 @@ -1,14 +1,14 @@ #!/usr/bin/env beesh -# BEE_VERSION xterm-412-4 +# BEE_VERSION xterm-412-5 # SRCURL[0]="https://invisible-island.net/archives/xterm/xterm-${PKGVERSION}.tgz" SRCURL[0]="https://beehive.molgen.mpg.de/e04d8065cf0847573dbd24995c905737/xterm-412.tgz" -# Cascadia Mono PL 2407.24 (SIL OFL 1.1), compiled in by xterm-412-embedded-font.patch -SRCURL[1]="https://beehive.molgen.mpg.de/f87a48158136a00ba36327d301afdc21/cascadia-mono-pl-2407.24.tar.gz" +# Hack Braille 3.003 (Hack plus braille; MIT, Bitstream Vera), compiled in by xterm-412-embedded-font.patch +SRCURL[1]="https://beehive.molgen.mpg.de/9d3164696416dac1787155b809fd6787/hack-braille-3.003.tar.gz" PATCHURL+=("https://beehive.molgen.mpg.de/84831508305dd78cc9b8914ffbb417fa/xterm-412-min-contrast.patch") -PATCHURL+=("https://beehive.molgen.mpg.de/3804eddd780dfebc7cc22ec0413b75a8/xterm-412-embedded-font.patch") +PATCHURL+=("https://beehive.molgen.mpg.de/b7d6f0620249cf85c850feb359c43fec/xterm-412-embedded-font.patch") # build_in_sourcedir From cf358571b966cf52abab3bf23678152252c31a5a Mon Sep 17 00:00:00 2001 From: wwwutz personal clanker Date: Wed, 14 Oct 2026 18:33:45 +0200 Subject: [PATCH 7/7] xterm: Fetch patches under md5-specific file names bee keeps fetched files in a per-package cache by file name and reuses an existing file without checking the URL. Each update of xterm-412-min-contrast.patch and xterm-412-embedded-font.patch kept its name, so builds picked up stale copies: 412-2 and 412-4 were built with the first min-contrast patch (no menu toggle, no reverse video fix), and 412-5 failed because the Cascadia version of the font patch was applied to the Hack Braille sources. Give each patch a local file name that includes its md5. Co-Authored-By: Claude Opus 5.5 --- xterm.be0 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xterm.be0 b/xterm.be0 index 76bd8927d..0e8daa8e9 100755 --- a/xterm.be0 +++ b/xterm.be0 @@ -7,8 +7,9 @@ SRCURL[0]="https://beehive.molgen.mpg.de/e04d8065cf0847573dbd24995c905737/xterm- # Hack Braille 3.003 (Hack plus braille; MIT, Bitstream Vera), compiled in by xterm-412-embedded-font.patch SRCURL[1]="https://beehive.molgen.mpg.de/9d3164696416dac1787155b809fd6787/hack-braille-3.003.tar.gz" -PATCHURL+=("https://beehive.molgen.mpg.de/84831508305dd78cc9b8914ffbb417fa/xterm-412-min-contrast.patch") -PATCHURL+=("https://beehive.molgen.mpg.de/b7d6f0620249cf85c850feb359c43fec/xterm-412-embedded-font.patch") +# local names carry the md5: bee reuses any cached file of the same name +PATCHURL+=("https://beehive.molgen.mpg.de/84831508305dd78cc9b8914ffbb417fa/xterm-412-min-contrast.patch xterm-412-min-contrast-84831508.patch") +PATCHURL+=("https://beehive.molgen.mpg.de/b7d6f0620249cf85c850feb359c43fec/xterm-412-embedded-font.patch xterm-412-embedded-font-b7d6f062.patch") # build_in_sourcedir