colorls: How to make the blue bright for readability, and a note about its origins

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

colorls: How to make the blue bright for readability, and a note about its origins

Joseph Mayer
Hi,

This is how to make OpenBSD's colorls show directories bright blue,
instead of dark blue which may be too dark to be readable on some
screens:

     export LSCOLORS="Ex"

As pointed out elsewhere colorls is taken in use as default ls by:

     alias ls="colorls -G"


The colorls port [1] is interesting, its source [2] seems to be a fork
of the BSD codebase's ls dating back to 1980, the man page doesn't
mention any particular authorship, and its code was updated as
recently as this year.

Best regards,
Joseph

[1] https://cvsweb.openbsd.org/ports/sysutils/colorls/

[2] http://shell.uugrn.org/~naddy/ls-6.3.tar.gz

Reply | Threaded
Open this post in threaded view
|

Re: colorls: How to make the blue bright for readability, and a note about its origins

Chris Bennett-4
On Mon, Nov 05, 2018 at 08:53:58AM +0000, Joseph Mayer wrote:

> Hi,
>
> This is how to make OpenBSD's colorls show directories bright blue,
> instead of dark blue which may be too dark to be readable on some
> screens:
>
>      export LSCOLORS="Ex"
>
> As pointed out elsewhere colorls is taken in use as default ls by:
>
>      alias ls="colorls -G"
>
>
> The colorls port [1] is interesting, its source [2] seems to be a fork
> of the BSD codebase's ls dating back to 1980, the man page doesn't
> mention any particular authorship, and its code was updated as
> recently as this year.
>
> Best regards,
> Joseph
>
> [1] https://cvsweb.openbsd.org/ports/sysutils/colorls/
>
> [2] http://shell.uugrn.org/~naddy/ls-6.3.tar.gz
>

export LSCOLORS=Hxfxcxdxbxegedabagacad

I also had problems reading that color on a black background.
These will make directories white, if that is helpful.
I don't remember any of the details. I think I saw this on a website
somewhere. Not sure.

Good Luck,
Chris Bennett


Reply | Threaded
Open this post in threaded view
|

Re: colorls: How to make the blue bright for readability, and a note about its origins

Christian Weisgerber
In reply to this post by Joseph Mayer
On 2018-11-05, Joseph Mayer <[hidden email]> wrote:

> This is how to make OpenBSD's colorls show directories bright blue,
> instead of dark blue which may be too dark to be readable on some
> screens:

This is a general problem with the primitive 8/16-color system from
ECMA-48 ("ANSI colors").  Some text colors only work well with a
light background, some only with a dark background.

> The colorls port [1] is interesting, its source [2] seems to be a fork
> of the BSD codebase's ls dating back to 1980, the man page doesn't
> mention any particular authorship, and its code was updated as
> recently as this year.

It's simply OpenBSD's src/bin/ls with a color patch from FreeBSD
on top.

--
Christian "naddy" Weisgerber                          [hidden email]