Package: screen
Version: 5.0.2-1
Severity: normal
X-Debbugs-Cc: [email protected]
Dear maintainer,
When a bell happens in a window that is not the current one, the caption
line is supposed to show the window title on a white background with
bold text. It was the case with screen version 4.
Nowadays the background is black, the text is not bold.
Here's my ~/.screenrc:
----------8<------------
altscreen on
backtick 0 10 60 sh -c 'read a b c _ < /proc/loadavg; env printf "%.2f %.2f
%.2f" $a $b $c'
caption always "%{11;4} %Y-%02m-%02d %0c %{0;4}|%{14;4} %H %{0;4}|%{10;4} %0`
%{0;4}|%{15;4} %L=%-Lw%{u ;4}%50>%n %t%{ }%+Lw %-05=%?%E %{15;4}C-A %?"
vbell off
startup_message off
defscrollback 10000
defdynamictitle off
defhstatus xterm
----------8<------------
How to reproduce:
Start a screen session with the caption line as indicated by the config
above.
Run two window in screen.
In the first one run: sleep 10 && echo -e "\a"
Then switch to the second window: C-a C-a
Wait for it...
The window where the bell occured is now on a black background, the text
is not bold.
As far as I can tell, most of the code is still there. The global
variable `renditions` has not changed in ansi.c:
uint64_t renditions[NUM_RENDS] = { 65529 /* =ub */ , 65531 /* =b */ , 65533 /*
=u */ };
But the format for the renditions seems to have changed between the v4
and v5. It looks like the attributes are no longer is the low 16 bits
but in the bits 56 to 63 if I am to believe the evolution of the
function ApplyAttrColor in process.c.
I didn't try, but the fix might be as simple as fixing the `renditions`
array.
Best regards,
Celelibi
-- Package-specific info:
File Existence and Permissions
------------------------------
drwxr-xr-x 33 root root 1020 Sep 8 09:57 /run
lrwxrwxrwx 1 root root 4 Jan 15 2017 /var/run -> /run
-rwxr-xr-x 1 root root 498432 Aug 25 10:57 /usr/bin/screen
-rw-r--r-- 1 root root 29 Jul 3 2017 /etc/tmpfiles.d/screen-cleanup.conf
lrwxrwxrwx 1 root root 9 Jan 15 2017
/lib/systemd/system/screen-cleanup.service -> /dev/null
-rwxr-xr-x 1 root root 1170 Jun 17 14:09 /etc/init.d/screen-cleanup
lrwxrwxrwx 1 root root 24 Jan 15 2017 /etc/rcS.d/S01screen-cleanup ->
../init.d/screen-cleanup
File contents
-------------
### /etc/tmpfiles.d/screen-cleanup.conf
______________________________________________________________________
d /run/screen 1777 root utmp
______________________________________________________________________
-- System Information:
Debian Release: forky/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 7.1.12+deb14-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_FIRMWARE_WORKAROUND,
TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages screen depends on:
ii debianutils 5.24
ii libc6 2.43-4
ii libpam0g 1.7.0-8
ii libtinfo6 6.6+20260608-2
ii ncurses-term 6.6+20260608-2
ii systemd [systemd-tmpfiles] 261.2-1
screen recommends no packages.
Versions of packages screen suggests:
pn byobu | iselect <none>
-- no debconf information