all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#43615: 26.3; eshell: face for directory and symlink the same in terminal
@ 2020-09-25 17:00 Alfred M. Szmidt
  2020-09-25 17:06 ` Eli Zaretskii
  2022-03-22 15:34 ` Lars Ingebrigtsen
  0 siblings, 2 replies; 16+ messages in thread
From: Alfred M. Szmidt @ 2020-09-25 17:00 UTC (permalink / raw)
  To: 43615


The color for symlinks and directories is the same on the terminal in
OpenBSD, though the face differs (eshell-ls-symlink which is Cyan
vs. eshell-ls-directory which is SkyBlue).  This is slightly
confusing, since if the symlink points to a file, one might assume
that one can change directories there.


In GNU Emacs 26.3 (build 1, x86_64-unknown-openbsd, GTK+ Version 3.24.20)
 of 2020-05-09 built on amd64.ports.openbsd.org
Recent messages:
Loading em-basic...done
Loading em-cmpl...done
Loading em-dirs...done
Loading em-glob...done
Loading em-hist...done
Loading em-ls...done
Loading em-prompt...done
Loading em-script...done
Loading em-term...done
Loading em-unix...done

Configured using:
 'configure --build=amd64-unknown-openbsd --without-sound
 --with-x-toolkit=gtk3 --prefix=/usr/local --sysconfdir=/etc
 --mandir=/usr/local/man --infodir=/usr/local/info
 --localstatedir=/var --disable-silent-rules --disable-gtk-doc
 'CFLAGS=-O2 -pipe -g -fno-pie' CPPFLAGS=-I/usr/local/include
 'LDFLAGS=-L/usr/local/lib -nopie -g''

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK DBUS GSETTINGS GLIB NOTIFY
GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS
GTK3 X11 XDBE XIM THREADS LCMS2

Important settings:
  locale-coding-system: nil

Major mode: Eshell

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
~/loaddefs hides /usr/local/share/emacs/26.3/lisp/loaddefs

Features:
(shadow emacsbug message rmc puny dired dired-loaddefs format-spec
rfc822 mml mml-sec epa epg gnus-util rmail rmail-loaddefs mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
em-unix em-term term ehelp em-script em-prompt em-ls em-hist em-pred
em-glob em-dirs em-cmpl em-basic em-banner em-alias pcomplete esh-var
esh-io esh-cmd esh-opt esh-ext esh-proc esh-arg esh-groups eshell
esh-module esh-mode esh-util rcirc mail-queue sendmail rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils slime-fancy
slime-trace-dialog slime-fontifying-fu slime-package-fu
slime-references slime-compiler-notes-tree slime-scratch
slime-presentations advice bridge slime-macrostep macrostep
slime-mdot-fu slime-enclosing-context slime-fuzzy slime-fancy-trace
slime-fancy-inspector slime-c-p-c slime-editing-commands slime-autodoc
slime-repl elp slime-parse slime derived cl-extra help-mode edmacro
kmacro gud apropos compile etags xref project arc-mode archive-mode
noutline outline easy-mmode pp comint ansi-color ring hyperspec
thingatpt browse-url cl slime-autoloads time-date elec-pair autoload
radix-tree lisp-mnt finder-inf package easymenu epg-config
url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs
eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp
byte-compile cconv cl-loaddefs cl-lib disp-table mule-util tooltip
eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel
term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode
elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow
isearch timer select scroll-bar mouse jit-lock font-lock syntax
facemenu font-core term/tty-colors frame cl-generic cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese composite charscript charprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarray
minibuffer cl-preloaded nadvice loaddefs button faces cus-face
macroexp files text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget hashtable-print-readable backquote
threads dbusbind kqueue lcms2 dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty
make-network-process emacs)

Memory information:
((conses 16 229278 12511)
 (symbols 48 29558 2)
 (miscs 40 79 129)
 (strings 32 56919 1609)
 (string-bytes 1 1572477)
 (vectors 16 20544)
 (vector-slots 8 567391 10894)
 (floats 8 72 278)
 (intervals 56 412 154)
 (buffers 992 13))





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#43615: 26.3; eshell: face for directory and symlink the same in terminal
  2020-09-25 17:00 bug#43615: 26.3; eshell: face for directory and symlink the same in terminal Alfred M. Szmidt
@ 2020-09-25 17:06 ` Eli Zaretskii
  2020-09-25 17:25   ` Alfred M. Szmidt
  2022-03-22 15:34 ` Lars Ingebrigtsen
  1 sibling, 1 reply; 16+ messages in thread
From: Eli Zaretskii @ 2020-09-25 17:06 UTC (permalink / raw)
  To: Alfred M. Szmidt; +Cc: 43615

> From: ams@gnu.org (Alfred M. Szmidt)
> Date: Fri, 25 Sep 2020 13:00:59 -0400
> 
> The color for symlinks and directories is the same on the terminal in
> OpenBSD, though the face differs (eshell-ls-symlink which is Cyan
> vs. eshell-ls-directory which is SkyBlue).  This is slightly
> confusing, since if the symlink points to a file, one might assume
> that one can change directories there.

On the same terminal, if you start "M-x shell" and invoke 'ls', which
colors do you see for these two file types?





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#43615: 26.3; eshell: face for directory and symlink the same in terminal
  2020-09-25 17:06 ` Eli Zaretskii
@ 2020-09-25 17:25   ` Alfred M. Szmidt
  2020-09-25 17:38     ` Eli Zaretskii
  0 siblings, 1 reply; 16+ messages in thread
From: Alfred M. Szmidt @ 2020-09-25 17:25 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 43615

   > The color for symlinks and directories is the same on the terminal in
   > OpenBSD, though the face differs (eshell-ls-symlink which is Cyan
   > vs. eshell-ls-directory which is SkyBlue).  This is slightly
   > confusing, since if the symlink points to a file, one might assume
   > that one can change directories there.

   On the same terminal, if you start "M-x shell" and invoke 'ls', which
   colors do you see for these two file types?

It is a grey color; nor is there a face associated with either of the
two file types.





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#43615: 26.3; eshell: face for directory and symlink the same in terminal
  2020-09-25 17:25   ` Alfred M. Szmidt
@ 2020-09-25 17:38     ` Eli Zaretskii
  2020-09-25 17:50       ` Alfred M. Szmidt
  0 siblings, 1 reply; 16+ messages in thread
From: Eli Zaretskii @ 2020-09-25 17:38 UTC (permalink / raw)
  To: Alfred M. Szmidt; +Cc: 43615

> From: ams@gnu.org (Alfred M. Szmidt)
> CC: 43615@debbugs.gnu.org
> Date: Fri, 25 Sep 2020 13:25:37 -0400
> 
>    > The color for symlinks and directories is the same on the terminal in
>    > OpenBSD, though the face differs (eshell-ls-symlink which is Cyan
>    > vs. eshell-ls-directory which is SkyBlue).  This is slightly
>    > confusing, since if the symlink points to a file, one might assume
>    > that one can change directories there.
> 
>    On the same terminal, if you start "M-x shell" and invoke 'ls', which
>    colors do you see for these two file types?
> 
> It is a grey color; nor is there a face associated with either of the
> two file types.

Even if you say "ls --color=always"?

And how do the colors look when you invoke 'ls --color' from the
shell?





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#43615: 26.3; eshell: face for directory and symlink the same in terminal
  2020-09-25 17:38     ` Eli Zaretskii
@ 2020-09-25 17:50       ` Alfred M. Szmidt
  2020-09-25 18:12         ` Eli Zaretskii
  0 siblings, 1 reply; 16+ messages in thread
From: Alfred M. Szmidt @ 2020-09-25 17:50 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 43615

   >    > The color for symlinks and directories is the same on the terminal in
   >    > OpenBSD, though the face differs (eshell-ls-symlink which is Cyan
   >    > vs. eshell-ls-directory which is SkyBlue).  This is slightly
   >    > confusing, since if the symlink points to a file, one might assume
   >    > that one can change directories there.
   > 
   >    On the same terminal, if you start "M-x shell" and invoke 'ls', which
   >    colors do you see for these two file types?
   > 
   > It is a grey color; nor is there a face associated with either of the
   > two file types.

   Even if you say "ls --color=always"?

   And how do the colors look when you invoke 'ls --color' from the
   shell?

OpenBSD ls doesn't support the --color option (or colors I think?),
not sure I understand why that matters since I think eshell ls does it
all in Emacs Lisp without using any host ls command?





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#43615: 26.3; eshell: face for directory and symlink the same in terminal
  2020-09-25 17:50       ` Alfred M. Szmidt
@ 2020-09-25 18:12         ` Eli Zaretskii
  2020-09-26  6:22           ` Alfred M. Szmidt
  0 siblings, 1 reply; 16+ messages in thread
From: Eli Zaretskii @ 2020-09-25 18:12 UTC (permalink / raw)
  To: Alfred M. Szmidt; +Cc: 43615

> From: ams@gnu.org (Alfred M. Szmidt)
> CC: 43615@debbugs.gnu.org
> Date: Fri, 25 Sep 2020 13:50:12 -0400
> 
>    >    On the same terminal, if you start "M-x shell" and invoke 'ls', which
>    >    colors do you see for these two file types?
>    > 
>    > It is a grey color; nor is there a face associated with either of the
>    > two file types.
> 
>    Even if you say "ls --color=always"?
> 
>    And how do the colors look when you invoke 'ls --color' from the
>    shell?
> 
> OpenBSD ls doesn't support the --color option (or colors I think?),
> not sure I understand why that matters

I was trying to establish what colors would be reasonable there.

How many colors does that terminal support?





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#43615: 26.3; eshell: face for directory and symlink the same in terminal
  2020-09-25 18:12         ` Eli Zaretskii
@ 2020-09-26  6:22           ` Alfred M. Szmidt
  2020-09-26  6:29             ` Eli Zaretskii
  0 siblings, 1 reply; 16+ messages in thread
From: Alfred M. Szmidt @ 2020-09-26  6:22 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 43615

   >    >    On the same terminal, if you start "M-x shell" and invoke 'ls', which
   >    >    colors do you see for these two file types?
   >    > 
   >    > It is a grey color; nor is there a face associated with either of the
   >    > two file types.
   > 
   >    Even if you say "ls --color=always"?
   > 
   >    And how do the colors look when you invoke 'ls --color' from the
   >    shell?
   > 
   > OpenBSD ls doesn't support the --color option (or colors I think?),
   > not sure I understand why that matters

   I was trying to establish what colors would be reasonable there.

   How many colors does that terminal support?

16 colors from what I understand.  list-color-display shows:

  black		       black  #000000
  red		       red  #ff0000
  green		       green  #00ff00
  yellow		       yellow  #ffff00
  blue		       blue  #0000ff
  magenta		       magenta  #ff00ff
  cyan		       cyan  #00ffff
  white		       white  #ffffff

I'd think that magenta would make most sense, but that would require
changing what is used for eshell-ls-archive?





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#43615: 26.3; eshell: face for directory and symlink the same in terminal
  2020-09-26  6:22           ` Alfred M. Szmidt
@ 2020-09-26  6:29             ` Eli Zaretskii
  2020-09-26  8:33               ` Alfred M. Szmidt
  0 siblings, 1 reply; 16+ messages in thread
From: Eli Zaretskii @ 2020-09-26  6:29 UTC (permalink / raw)
  To: Alfred M. Szmidt; +Cc: 43615

> From: ams@gnu.org (Alfred M. Szmidt)
> CC: 43615@debbugs.gnu.org
> Date: Sat, 26 Sep 2020 02:22:20 -0400
> 
>    How many colors does that terminal support?
> 
> 16 colors from what I understand.  list-color-display shows:
> 
>   black		       black  #000000
>   red		       red  #ff0000
>   green		       green  #00ff00
>   yellow		       yellow  #ffff00
>   blue		       blue  #0000ff
>   magenta		       magenta  #ff00ff
>   cyan		       cyan  #00ffff
>   white		       white  #ffffff

This indicates you have only 8 colors, not 16.

> I'd think that magenta would make most sense, but that would require
> changing what is used for eshell-ls-archive?

Doing TRT with just 8 colors is a tough nut, since there are 11 file
types for which Eshell uses colors.  Maybe colors should be disabled
for such terminals?  Or maybe some faces should have no color
definitions for 8-color terminals, leaving only the most frequent and
important files shown in color?





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#43615: 26.3; eshell: face for directory and symlink the same in terminal
  2020-09-26  6:29             ` Eli Zaretskii
@ 2020-09-26  8:33               ` Alfred M. Szmidt
  2020-09-26  8:44                 ` Andreas Schwab
  2020-09-26  9:00                 ` Eli Zaretskii
  0 siblings, 2 replies; 16+ messages in thread
From: Alfred M. Szmidt @ 2020-09-26  8:33 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 43615

   >   black		       black  #000000
   >   red		       red  #ff0000
   >   green		       green  #00ff00
   >   yellow		       yellow  #ffff00
   >   blue		       blue  #0000ff
   >   magenta		       magenta  #ff00ff
   >   cyan		       cyan  #00ffff
   >   white		       white  #ffffff

   This indicates you have only 8 colors, not 16.

I based the 16 colors on the documentation for the console; it might
be that there is some switch one can flip for more.

   > I'd think that magenta would make most sense, but that would require
   > changing what is used for eshell-ls-archive?

   Doing TRT with just 8 colors is a tough nut, since there are 11
   file types for which Eshell uses colors.  Maybe colors should be
   disabled for such terminals?  Or maybe some faces should have no
   color definitions for 8-color terminals, leaving only the most
   frequent and important files shown in color?

I think the later would make most sense.  What would a good criteria
be for frequet/important?  In my mind, I'd like to know first and for
most if a file is a plain file, directory, symlink or special.  Then,
if it is executable -- to know if ./foo will work.

After that, I think it is mostly nice things, being able to know if a
file is missing, unreadable, or readonly is useful information since
that means you know what happens if you open the file.

This is slightly different thant for archives, since Emacs will switch
to whatever mode the file suffix is anyway for any file, and archives
aren't "that" special.

Lastly, not showing backup/junk/product files in a highly contrasted
color.

Does that make sense?  That would make the list of faces for 8 color
(though this would require to modify the scheme slightly):

  plain
  directory
  symlink
  special
  executable
  readonly / unreadable/ missing
  backup / product / clutter

So maybe just limit it to the plain / directory / symlink / special /
executable group?





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#43615: 26.3; eshell: face for directory and symlink the same in terminal
  2020-09-26  8:33               ` Alfred M. Szmidt
@ 2020-09-26  8:44                 ` Andreas Schwab
  2020-09-26  9:45                   ` Alfred M. Szmidt
  2020-09-26  9:00                 ` Eli Zaretskii
  1 sibling, 1 reply; 16+ messages in thread
From: Andreas Schwab @ 2020-09-26  8:44 UTC (permalink / raw)
  To: Alfred M. Szmidt; +Cc: 43615

On Sep 26 2020, Alfred M. Szmidt wrote:

>    >   black		       black  #000000
>    >   red		       red  #ff0000
>    >   green		       green  #00ff00
>    >   yellow		       yellow  #ffff00
>    >   blue		       blue  #0000ff
>    >   magenta		       magenta  #ff00ff
>    >   cyan		       cyan  #00ffff
>    >   white		       white  #ffffff
>
>    This indicates you have only 8 colors, not 16.
>
> I based the 16 colors on the documentation for the console; it might
> be that there is some switch one can flip for more.

Perhaps the other 8 colors are just dim variants, or similar.  What is
the output of the infocmp command?

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#43615: 26.3; eshell: face for directory and symlink the same in terminal
  2020-09-26  8:33               ` Alfred M. Szmidt
  2020-09-26  8:44                 ` Andreas Schwab
@ 2020-09-26  9:00                 ` Eli Zaretskii
  2020-09-26  9:45                   ` Alfred M. Szmidt
  1 sibling, 1 reply; 16+ messages in thread
From: Eli Zaretskii @ 2020-09-26  9:00 UTC (permalink / raw)
  To: Alfred M. Szmidt; +Cc: 43615

> From: ams@gnu.org (Alfred M. Szmidt)
> CC: 43615@debbugs.gnu.org
> Date: Sat, 26 Sep 2020 04:33:00 -0400
> 
>    >   black		       black  #000000
>    >   red		       red  #ff0000
>    >   green		       green  #00ff00
>    >   yellow		       yellow  #ffff00
>    >   blue		       blue  #0000ff
>    >   magenta		       magenta  #ff00ff
>    >   cyan		       cyan  #00ffff
>    >   white		       white  #ffffff
> 
>    This indicates you have only 8 colors, not 16.
> 
> I based the 16 colors on the documentation for the console; it might
> be that there is some switch one can flip for more.

If the terminal supports 16 colors, it means Emacs is not being told
about that.  Are you sure your TERM variable points to the correct
terminfo entry?

Anyway, this is a separate problem.

>   plain
>   directory
>   symlink
>   special
>   executable
>   readonly / unreadable/ missing
>   backup / product / clutter
> 
> So maybe just limit it to the plain / directory / symlink / special /
> executable group?

Plain files could just be left at the default face, no?  That would
leave us with directory, symlink, executable, and
backup/product/clutter, 4 colors.  Maybe also add archive, which
yields 5 colors.  Makes sense?





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#43615: 26.3; eshell: face for directory and symlink the same in terminal
  2020-09-26  8:44                 ` Andreas Schwab
@ 2020-09-26  9:45                   ` Alfred M. Szmidt
  2020-09-26 10:07                     ` Eli Zaretskii
  0 siblings, 1 reply; 16+ messages in thread
From: Alfred M. Szmidt @ 2020-09-26  9:45 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: 43615

   Perhaps the other 8 colors are just dim variants, or similar.  What is
   the output of the infocmp command?

#	Reconstructed via infocmp from file: /usr/share/terminfo/w/wsvt25
wsvt25|NetBSD wscons in 25 line DEC VT220 mode,
	am, bce, mc5i, mir, msgr, xenl, xon,
	colors#8, cols#80, it#8, lines#25, ncv#2, pairs#64, vt#3,
	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
	bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
	clear=\E[H\E[J, cnorm=\E[?25h, cr=^M,
	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
	ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E)0,
	flash=\E[?5h$<200/>\E[?5l, home=\E[H, ht=^I, hts=\EH,
	ich=\E[%p1%d@, if=/usr/share/tabset/vt100,
	il=\E[%p1%dL, il1=\E[L, ind=\ED, is2=\E[r\E[25;1H, kbs=^H,
	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
	kdch1=\E[3~, kend=\E[8~, kf1=\E[11~, kf10=\E[21~,
	kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
	kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, kf2=\E[12~,
	kf20=\E[34~, kf3=\E[13~, kf4=\E[14~, kf5=\E[15~,
	kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~,
	khlp=\E[28~, khome=\E[7~, kich1=\E[2~, knp=\E[6~,
	kpp=\E[5~, krdo=\E[29~, kslt=\E[4~, lf1=pf1, lf2=pf2,
	lf3=pf3, lf4=pf4, mc0=\E[i, mc4=\E[4i, mc5=\E[5i, nel=\EE,
	op=\E[m, rc=\E8, rev=\E[7m, ri=\EM, rmacs=\E(B$<4>,
	rmam=\E[?7l, rmir=\E[4l, rmso=\E[27m, rmul=\E[24m, rs1=\Ec,
	sc=\E7, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e\E(B%;$<2>,
	sgr0=\E[m\E(B, smacs=\E(0$<2>, smam=\E[?7h, smir=\E[4h,
	smso=\E[7m, smul=\E[4m, tbc=\E[3g, u6=\E[%i%d;%dR,
	u7=\E[6n, u8=\E[?%[;0123456789]c, u9=\E[c,








^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#43615: 26.3; eshell: face for directory and symlink the same in terminal
  2020-09-26  9:00                 ` Eli Zaretskii
@ 2020-09-26  9:45                   ` Alfred M. Szmidt
  2020-09-26  9:58                     ` Eli Zaretskii
  0 siblings, 1 reply; 16+ messages in thread
From: Alfred M. Szmidt @ 2020-09-26  9:45 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 43615

   >    >   black		       black  #000000
   >    >   red		       red  #ff0000
   >    >   green		       green  #00ff00
   >    >   yellow		       yellow  #ffff00
   >    >   blue		       blue  #0000ff
   >    >   magenta		       magenta  #ff00ff
   >    >   cyan		       cyan  #00ffff
   >    >   white		       white  #ffffff
   > 
   >    This indicates you have only 8 colors, not 16.
   > 
   > I based the 16 colors on the documentation for the console; it might
   > be that there is some switch one can flip for more.

   If the terminal supports 16 colors, it means Emacs is not being told
   about that.  Are you sure your TERM variable points to the correct
   terminfo entry?

   Anyway, this is a separate problem.

It is set to wsvt25 -- which is the default.

   >   plain
   >   directory
   >   symlink
   >   special
   >   executable
   >   readonly / unreadable/ missing
   >   backup / product / clutter
   > 
   > So maybe just limit it to the plain / directory / symlink / special /
   > executable group?

   Plain files could just be left at the default face, no?  

Yes.

   That would leave us with directory, symlink, executable, and
   backup/product/clutter, 4 colors.  Maybe also add archive, which
   yields 5 colors.  Makes sense?

Yes (though I don't understand why archive needs to be a different
face -- but that is a different problem too).  I think it would be
useful to differentate at least "special"?





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#43615: 26.3; eshell: face for directory and symlink the same in terminal
  2020-09-26  9:45                   ` Alfred M. Szmidt
@ 2020-09-26  9:58                     ` Eli Zaretskii
  0 siblings, 0 replies; 16+ messages in thread
From: Eli Zaretskii @ 2020-09-26  9:58 UTC (permalink / raw)
  To: Alfred M. Szmidt; +Cc: 43615

> From: ams@gnu.org (Alfred M. Szmidt)
> CC: 43615@debbugs.gnu.org
> Date: Sat, 26 Sep 2020 05:45:14 -0400
> 
>    Plain files could just be left at the default face, no?  
> 
> Yes.
> 
>    That would leave us with directory, symlink, executable, and
>    backup/product/clutter, 4 colors.  Maybe also add archive, which
>    yields 5 colors.  Makes sense?
> 
> Yes (though I don't understand why archive needs to be a different
> face -- but that is a different problem too).  I think it would be
> useful to differentate at least "special"?

We could add "special", yes, as we still have one more color.

I think archives should have distinct colors because that's what I see
when I run 'ls' on an 8-color terminal.





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#43615: 26.3; eshell: face for directory and symlink the same in terminal
  2020-09-26  9:45                   ` Alfred M. Szmidt
@ 2020-09-26 10:07                     ` Eli Zaretskii
  0 siblings, 0 replies; 16+ messages in thread
From: Eli Zaretskii @ 2020-09-26 10:07 UTC (permalink / raw)
  To: Alfred M. Szmidt; +Cc: 43615, schwab

> From: ams@gnu.org (Alfred M. Szmidt)
> CC: eliz@gnu.org, 43615@debbugs.gnu.org
> Date: Sat, 26 Sep 2020 05:45:13 -0400
> 
>    Perhaps the other 8 colors are just dim variants, or similar.  What is
>    the output of the infocmp command?
> 
> #	Reconstructed via infocmp from file: /usr/share/terminfo/w/wsvt25
> wsvt25|NetBSD wscons in 25 line DEC VT220 mode,
> 	am, bce, mc5i, mir, msgr, xenl, xon,
> 	colors#8, cols#80, it#8, lines#25, ncv#2, pairs#64, vt#3,

AFAIU, this says 8 colors.  And "ncv#2" AFAIU says we cannot use
colors with underline, but can use it with bold and dim.  So maybe
using bold will allow us to double the number of colors.





^ permalink raw reply	[flat|nested] 16+ messages in thread

* bug#43615: 26.3; eshell: face for directory and symlink the same in terminal
  2020-09-25 17:00 bug#43615: 26.3; eshell: face for directory and symlink the same in terminal Alfred M. Szmidt
  2020-09-25 17:06 ` Eli Zaretskii
@ 2022-03-22 15:34 ` Lars Ingebrigtsen
  1 sibling, 0 replies; 16+ messages in thread
From: Lars Ingebrigtsen @ 2022-03-22 15:34 UTC (permalink / raw)
  To: Alfred M. Szmidt; +Cc: 43615

ams@gnu.org (Alfred M. Szmidt) writes:

> The color for symlinks and directories is the same on the terminal in
> OpenBSD, though the face differs (eshell-ls-symlink which is Cyan
> vs. eshell-ls-directory which is SkyBlue).  This is slightly
> confusing, since if the symlink points to a file, one might assume
> that one can change directories there.

I've now fixed this in Emacs 29 by using the same faces that dired uses
here -- they have support for 8 colour displays etc.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2022-03-22 15:34 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-25 17:00 bug#43615: 26.3; eshell: face for directory and symlink the same in terminal Alfred M. Szmidt
2020-09-25 17:06 ` Eli Zaretskii
2020-09-25 17:25   ` Alfred M. Szmidt
2020-09-25 17:38     ` Eli Zaretskii
2020-09-25 17:50       ` Alfred M. Szmidt
2020-09-25 18:12         ` Eli Zaretskii
2020-09-26  6:22           ` Alfred M. Szmidt
2020-09-26  6:29             ` Eli Zaretskii
2020-09-26  8:33               ` Alfred M. Szmidt
2020-09-26  8:44                 ` Andreas Schwab
2020-09-26  9:45                   ` Alfred M. Szmidt
2020-09-26 10:07                     ` Eli Zaretskii
2020-09-26  9:00                 ` Eli Zaretskii
2020-09-26  9:45                   ` Alfred M. Szmidt
2020-09-26  9:58                     ` Eli Zaretskii
2022-03-22 15:34 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.