Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fhoshino opened this issue Jun 22, 2023 · 9 comments
Labels

Comments

@fhoshino
Copy link

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.

@mintty
Copy link
Owner

mintty commented Jun 22, 2023

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

@fhoshino
Copy link
Author

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

@mintty
Copy link
Owner

mintty commented Jun 23, 2023

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

@fhoshino
Copy link
Author

log.log

@puellanivis
Copy link

puellanivis commented Jun 23, 2023

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

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

@mintty
Copy link
Owner

mintty commented Jun 23, 2023

Yes, please repeat the test case and upload again.

@fhoshino
Copy link
Author

log.log

@puellanivis
Copy link

\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.)

@fhoshino
Copy link
Author

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

@mintty mintty changed the title Weird rendering issue after upgrading to debian 12 Weird rendering issue by changed color scheme (after upgrading to debian 12) Jun 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants