dracula/putty

Unreadable colors/colors with a=rwx permission directory and ls in color mode - colors do NOT match spec

clach04 opened this issue · 6 comments

Seeing:

image

Testcase:

rmdir dracula_putty_issue_3
mkdir dracula_putty_issue_3
ls -altrhd dracula_putty_issue_3
chmod a+rwx dracula_putty_issue_3
ls -altrhd dracula_putty_issue_3

Fine with rwx files, its directories. Results from a quick spin of this in (old) Putty 0.71.

Basically unusable with most linux distros unless disable colors, i.e.:

ls -altrhd --color=never dracula_putty_issue_3

EDIT as of 2024-09-15 current theme is NOT compliant with spec https://spec.draculatheme.com/#sec-ANSI

iterm2 putty works fine. Recommend using that instead.

Test case

ls env

LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:

Dracula putty

from from this project

image

iterm2 Dracula putty

from https://github.com/mbadolato/iTerm2-Color-Schemes

image

iterm2 Dracula+ putty

from https://github.com/mbadolato/iTerm2-Color-Schemes

image

Default putty

image

Quick and dirty diff (without analysis comparing to https://spec.draculatheme.com/#sec-ANSI) of "good" (readable) https://github.com/mbadolato/iTerm2-Color-Schemes/blob/master/putty/Dracula.reg and "bad" unreadable colors (using #4 as comparison base):

$ diff  Dracula_rafffael_BAD_sorted.reg Dracula_mbadolato_iterm2_sorted.reg
3,5c3,5
< ; Putty Theme Dracula_rafffael_BAD
< ; Scheme author: rafffael
< [HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\Dracula_rafffael_BAD]
---
> ; Putty Theme Dracula_mbadolato_iterm2
> ; Scheme author: mbadolato
> [HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\Dracula_mbadolato_iterm2]
12,13c12,13
< ; Colour1 #f8f8f2
< "Colour1"="248,248,242"
---
> ; Colour1 #ffffff
> "Colour1"="255,255,255"
16,17c16,17
< ; Colour2 #282a36
< "Colour2"="40,42,54"
---
> ; Colour2 #1e1f29
> "Colour2"="30,31,41"
20,21c20,21
< ; Colour3 #20222b
< "Colour3"="32,34,43"
---
> ; Colour3 #1e1f29
> "Colour3"="30,31,41"
24,25c24,25
< ; Colour4 #000000
< "Colour4"="0,0,0"
---
> ; Colour4 #ffffff
> "Colour4"="255,255,255"
28,29c28,29
< ; Colour5 #ff79c6
< "Colour5"="255,121,198"
---
> ; Colour5 #bbbbbb
> "Colour5"="187,187,187"
48,49c48,49
< ; Colour9 #ff2d2d
< "Colour9"="255,45,45"
---
> ; Colour9 #ff5555
> "Colour9"="255,85,85"
58,59c58,59
< ; Colour11 #1ef955
< "Colour11"="30,249,85"
---
> ; Colour11 #50fa7b
> "Colour11"="80,250,123"
68,69c68,69
< ; Colour13 #edf962
< "Colour13"="237,249,98"
---
> ; Colour13 #f1fa8c
> "Colour13"="241,250,140"
73,74c73,74
< ; Colour14 #8be9fd
< "Colour14"="139,233,253"
---
> ; Colour14 #bd93f9
> "Colour14"="189,147,249"
78,79c78,79
< ; Colour15 #6ce3fd
< "Colour15"="108,227,253"
---
> ; Colour15 #bd93f9
> "Colour15"="189,147,249"
83,84c83,84
< ; Colour16 #bd93f9
< "Colour16"="189,147,249"
---
> ; Colour16 #ff79c6
> "Colour16"="255,121,198"
88,89c88,89
< ; Colour17 #a772f8
< "Colour17"="167,114,248"
---
> ; Colour17 #ff79c6
> "Colour17"="255,121,198"
93,94c93,94
< ; Colour18 #00d9d9
< "Colour18"="0,217,217"
---
> ; Colour18 #8be9fd
> "Colour18"="139,233,253"
98,99c98,99
< ; Colour19 #c8f0f0
< "Colour19"="200,240,240"
---
> ; Colour19 #8be9fd
> "Colour19"="139,233,253"
103,104c103,104
< ; Colour20 #f8f8f2
< "Colour20"="248,248,242"
---
> ; Colour20 #bbbbbb
> "Colour20"="187,187,187"

Turns out both the current theme and the linked iterm2 theme are out of compliance with spec https://spec.draculatheme.com/#sec-ANSI, but one is readable the other not as reported.

Current theme:

image

https://github.com/mbadolato/iTerm2-Color-Schemes/blob/master/putty/Dracula.reg

image

Probably better to simply reimplement from spec.

Here is my attempt at following the spec, by creating from scratch.

image

PR to follow.

#6 posted with new reg file.

As an additional sanity check, also compared with https://github.com/dracula/pywal/commits/master/dracula.json