mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
[GH-ISSUE #132] 256 Color output not working on urxvt #54
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MithicSpirit on GitHub (Jan 17, 2021).
Original GitHub issue: https://github.com/bootandy/dust/issues/132
Despite using URxvt patched for 256color output,
duststill uses the unicode "dither" characters in the usage boxes to the right. The 256color gradient works fine on Konsole for me. My$TERMenvironment variable isrxvt-unicode-256colorand the output oftput coloris256.@bootandy commented on GitHub (Mar 2, 2021):
This is me:
$ echo $TERM xterm-256color
Do programs like dutree & exa work correctly with their colors?
@MithicSpirit commented on GitHub (Mar 3, 2021):
No, those aren't working either. Though the script at https://gist.githubusercontent.com/HaleTom/89ffe32783f89f403bba96bd7bcd1263/raw/ does print the 256 color output correctly.
@bootandy commented on GitHub (May 12, 2021):
could be related to: https://github.com/bootandy/dust/issues/138
@bootandy commented on GitHub (Sep 4, 2021):
I'll look at this, the sample script provides shades of grey so it should be possible to detect if the terminal supports 256 color and support it.
@cyhyraethz commented on GitHub (Dec 17, 2021):
I'm having the same problem with kitty terminal.

$TERMisxterm-kitty, output oftput colorsis256, and the the bar graph comes out looking like this (the greys are solid and look good in gnome-terminal where$TERMisxterm-256colorthough):@MithicSpirit commented on GitHub (Jan 6, 2022):
I have switched to Alacritty some time ago and, for a while, this issue persisted, but with a recent commit it was fixed (
f717710, see issue https://github.com/alacritty/alacritty/issues/5485). This seems to be mainly a problem with the terminal, so feel free to mark this issue as closed.However, it may be possible to work around this problem on terminals that don't properly support the "dither" characters (the ones in the
BLOCKSarray indisplay.rs) by adding 256-color support (specifically, using the█character along with color codes for different shades of gray). Whether or not terminals support these characters would probably have to be done manually by either hardcoding based on theTERMenvvar and/or adding a CLI flag.@bootandy commented on GitHub (Aug 23, 2022):
Closing this as won't fix. However, if someone wants to make this work with fancier 256 color terminals I'd accept a PR