mintty / wsltty

Mintty as a terminal for Bash on Ubuntu on Windows / WSL
Other
3.1k stars 102 forks source link

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

Open fhoshino opened 1 year ago

fhoshino commented 1 year ago

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 commented 1 year ago

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

fhoshino commented 1 year ago
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 commented 1 year ago

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

fhoshino commented 1 year ago

log.log

puellanivis commented 1 year ago

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

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

mintty commented 1 year ago

Yes, please repeat the test case and upload again.

fhoshino commented 1 year ago

log.log

puellanivis commented 1 year ago

\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 commented 1 year ago

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