wsltty icon indicating copy to clipboard operation
wsltty copied to clipboard

Weird rendering issue by changed color scheme (after upgrading to debian 12)

Open fhoshino opened this issue 2 years ago • 9 comments

Using zsh, try to list files with ls, got some files listing as empty string, ConEmu64_2023-06-23_01-37-33 ConEmu64_2023-06-23_01-40-30

While using bash those files showup without a problem, ConEmu64_2023-06-23_01-39-01 ConEmu64_2023-06-23_01-40-43

Using alacritty doesn't yield this problem, and this problem exsit only after upgrading to debian 12 using wsltty, ssh back to a debian 11 box the problem disappeared.

fhoshino avatar Jun 22 '23 18:06 fhoshino

Please provide a screen log, e.g. using ls | tee log

mintty avatar Jun 22 '23 21:06 mintty

X11
adduser.conf
adduser.conf.update-old
alternatives
apache2
apparmor.d
apt
apt-fast.conf
bash.bashrc
bash_completion.d
bindresvport.blacklist
binfmt.d
ca-certificates
ca-certificates.conf
ca-certificates.conf.dpkg-old
cron.d
cron.daily
cron.hourly
cron.monthly
cron.weekly
cron.yearly
crontab
dbus-1
dconf
debconf.conf
debian_version
default
deluser.conf
dhcp
dpkg
e2scrub.conf
environment
ethertypes
fonts
fstab
gai.conf
gprofng.rc
group
group-
gshadow
gshadow-
gss
gtk-2.0
host.conf
hostname
hosts
init.d
inputrc
iproute2
issue
issue.net
kernel
ld.so.cache
ld.so.conf
ld.so.conf.d
ldap
libaudit.conf
lighttpd
locale.alias
locale.gen
localtime
logcheck
login.defs
logrotate.conf
logrotate.d
machine-id
magic
magic.mime
mailcap
mailcap.order
mc
mime.types
mke2fs.conf
modprobe.d
modules
modules-load.d
motd
mtab
nanorc
netconfig
network
networks
nftables.conf
nsswitch.conf
opt
os-release
pam.conf
pam.d
passwd
passwd-
perl
profile
profile.d
protocols
python3
python3.11
python3.9
rc0.d
rc1.d
rc2.d
rc3.d
rc4.d
rc5.d
rc6.d
rcS.d
resolv.conf
rmt
rpc
rsyslog.conf
rsyslog.d
screenrc
security
selinux
sensors.d
sensors3.conf
services
shadow
shadow-
shells
skel
ssh
ssl
subgid
subgid-
subuid
subuid-
sudo.conf
sudo_logsrvd.conf
sudoers
sudoers.d
sysctl.conf
sysctl.d
systemd
terminfo
timezone
tmpfiles.d
ucf.conf
udev
update-motd.d
vim
wgetrc
wsl.conf
xattr.conf
xdg
zsh

fhoshino avatar Jun 23 '23 04:06 fhoshino

Pasting it here filters out the control characters. Please upload the file log.

mintty avatar Jun 23 '23 08:06 mintty

log.log

fhoshino avatar Jun 23 '23 12:06 fhoshino

ls will normally not use color mode if STDOUT is not a termainal.

We might need ls --color=always | tee log.log

puellanivis avatar Jun 23 '23 21:06 puellanivis

Yes, please repeat the test case and upload again.

mintty avatar Jun 23 '23 21:06 mintty

log.log

fhoshino avatar Jun 24 '23 03:06 fhoshino

\e[00;90m This seems to be Bright Black foreground. Which I bet is #000000 the same as your black background… 😬

Maybe in the most common terminals for debian they have a different color for bright black? One with crappy contrast, but at least visible. Meanwhile, for us, it shows up as just black? I’m curious why it has 00, as that’s technically not valid? If it’s for “All attributes off” it should be 0, the same as just before the end of the line…

You might want to consult with dircolors to see if there’s an entry that matches, and set it to a different color. (This is just a pointer to what you could look at, I’ve not edited any dircolors in like 20 years, so I regret that I cannot help further.)

puellanivis avatar Jun 24 '23 04:06 puellanivis

Oh god, you saved me, tinkering with the color scheme I am able to see the file name again.

fhoshino avatar Jun 24 '23 04:06 fhoshino