Re: No coloring with colorls

2024-03-31 Thread Karel Lucas
This method also works! Instead of vt220 I now used xterm-256color. 
Thank you!


Op 30-03-2024 om 11:51 schreef Stuart Henderson:

On 2024-03-29, Karel Lucas  wrote:

What should I put in /etc/ttys, taking into account that I regularly use
multiple virtual consoles? And where in that file do I place that? At
the beginning or the end? Or somewhere in between?

Replace "vt220" with your preferred option on "console" and "ttyC" lines.
  





Re: No coloring with colorls

2024-03-30 Thread Stuart Henderson
On 2024-03-29, Karel Lucas  wrote:
> What should I put in /etc/ttys, taking into account that I regularly use 
> multiple virtual consoles? And where in that file do I place that? At 
> the beginning or the end? Or somewhere in between?

Replace "vt220" with your preferred option on "console" and "ttyC" lines.
 



Re: No coloring with colorls

2024-03-29 Thread Karel Lucas
What should I put in /etc/ttys, taking into account that I regularly use 
multiple virtual consoles? And where in that file do I place that? At 
the beginning or the end? Or somewhere in between?


Op 29-03-2024 om 09:15 schreef Stuart Henderson:

On 2024-03-28, Karel Lucas  wrote:


Op 28-03-2024 om 07:51 schreef Stuart Henderson:

For the console, use /etc/ttys.

For an X terminal, use whatever mechanism is correct for that terminal
(.Xdefaults XTerm*termName for xterm).

The file /etc/ttys is 22.5kB in size and is full of all kinds of "tty**
...". I don't think this is the right file to use something like that.
It seems to me that you are making the system disrupted/unstable by
doing so. Those "ttys**..." won't vouch for it for nothing.

Yes that is exactly the right file. That is what the file is *for*. It
sets the console type for various ways of accessing consoles on the
system. The "console" and "ttyC*" lines are the ones you want (the
additional ones are for various virtual consoles on ctrl-alt-f2, etc).
(The "tty0*" are for serial consoles if you have them.)






Re: No coloring with colorls

2024-03-29 Thread Stuart Henderson
On 2024-03-28, Karel Lucas  wrote:
>
>
> Op 28-03-2024 om 07:51 schreef Stuart Henderson:
>> For the console, use /etc/ttys.
>>
>> For an X terminal, use whatever mechanism is correct for that terminal
>> (.Xdefaults XTerm*termName for xterm).
>
> The file /etc/ttys is 22.5kB in size and is full of all kinds of "tty** 
> ...". I don't think this is the right file to use something like that. 
> It seems to me that you are making the system disrupted/unstable by 
> doing so. Those "ttys**..." won't vouch for it for nothing.

Yes that is exactly the right file. That is what the file is *for*. It
sets the console type for various ways of accessing consoles on the
system. The "console" and "ttyC*" lines are the ones you want (the
additional ones are for various virtual consoles on ctrl-alt-f2, etc).
(The "tty0*" are for serial consoles if you have them.)


-- 
Please keep replies on the mailing list.



Re: No coloring with colorls

2024-03-28 Thread Karel Lucas




Op 28-03-2024 om 07:51 schreef Stuart Henderson:

For the console, use /etc/ttys.

For an X terminal, use whatever mechanism is correct for that terminal
(.Xdefaults XTerm*termName for xterm).


The file /etc/ttys is 22.5kB in size and is full of all kinds of "tty** 
...". I don't think this is the right file to use something like that. 
It seems to me that you are making the system disrupted/unstable by 
doing so. Those "ttys**..." won't vouch for it for nothing.




Re: No coloring with colorls

2024-03-28 Thread Stuart Henderson
On 2024-03-27, Karel Lucas  wrote:
> What is the correct setting, taking into account the coloring of the 
> directory listing?

For the console, use /etc/ttys.

For an X terminal, use whatever mechanism is correct for that terminal
(.Xdefaults XTerm*termName for xterm).

sheesh.

> Op 27-03-2024 om 14:02 schreef Stuart Henderson:
>> On 2024-03-27, Karel Lucas  wrote:
>>> It works correctly! My /etc/profile now looks like this:
>>> export TERM=xterm-256color
>> That is not working correctly, because you forcibly override the correct
>> TERM which is set for things like screen/tmux.
>>
>> For the console, use /etc/ttys.
>>
>> For an X terminal, use whatever mechanism is correct for that terminal
>> (.Xdefaults XTerm*termName for xterm).
>>
>>
>
>


-- 
Please keep replies on the mailing list.



Re: No coloring with colorls

2024-03-27 Thread Karel Lucas
What is the correct setting, taking into account the coloring of the 
directory listing?


Op 27-03-2024 om 14:02 schreef Stuart Henderson:

On 2024-03-27, Karel Lucas  wrote:

It works correctly! My /etc/profile now looks like this:
export TERM=xterm-256color

That is not working correctly, because you forcibly override the correct
TERM which is set for things like screen/tmux.

For the console, use /etc/ttys.

For an X terminal, use whatever mechanism is correct for that terminal
(.Xdefaults XTerm*termName for xterm).






Re: No coloring with colorls

2024-03-27 Thread Stuart Henderson
On 2024-03-27, Karel Lucas  wrote:
> It works correctly! My /etc/profile now looks like this:
> export TERM=xterm-256color

That is not working correctly, because you forcibly override the correct
TERM which is set for things like screen/tmux.

For the console, use /etc/ttys.

For an X terminal, use whatever mechanism is correct for that terminal
(.Xdefaults XTerm*termName for xterm).




Re: No coloring with colorls

2024-03-26 Thread Karel Lucas

It works correctly! My /etc/profile now looks like this:
export TERM=xterm-256color
export CLICOLOR=yes
export CLICOLOR_FORCE=yes
export LSCOLORS=exfxcxdxbxegedabagacad
And with colorls -Ghl I get the output in color. Thank you all very much!


Op 25-03-2024 om 23:46 schreef Benjamin Stürz:

On 25.03.24 23:40, Karel Lucas wrote:

Hi all,

After installing colorls and making some adjustments to the system, I 
still have no colored output from colorls. Below I have indicated the 
settings that have been made or are present by default. I would like 
to know what is wrong and what needs to be improved.


Default environment:
TERM=vt220

Added environment:
CLICOLOR=yes
CLICOLOR_FORCE=yes
LSCOLORS=exfxcxdxbxegedabagacad


Try CLICOLOR=1 (and TERM=xterm-256color, if it doesn't help).





Re: No coloring with colorls

2024-03-26 Thread h . kampmann
Hello,

I use in my user .profile

~/.profile
TERM=wsvt25
export PATH HOME TERM
export ENV=$HOME/.kshrc
export CLICOLOR=true
export LSCOLORS=ExGxcxdxCxegedabagacad

and in the .kshrc

~/.kshrc
alias ls=/usr/local/bin/colorls

For me it´s ok on the console and on X.

For me it's a gimmick. Actually always try 
to stick to base with everything.

Hope it´s on topic.
Wish you all the best,
Heinz
 
 

Gesendet: Dienstag, 26. März 2024 um 18:50 Uhr
Von: "Chris Bennett" 
An: "Karel Lucas" , misc@openbsd.org
Betreff: Re: No coloring with colorls
On Mon, Mar 25, 2024 at 11:40:52PM +0100, Karel Lucas wrote:
> Hi all,
>
> LSCOLORS=exfxcxdxbxegedabagacad
>

I just use TERM=xterm
If you use a black background (or some other dark colors), you will want
to change LSCOLORS to not use a dark blue. I find that color combo
unreadable. I just use alias ls='colorls -Gla'. You can either have other
aliases or just type colorls with the same arguments as ls to get other
options.

--
Regards,
Chris Bennett

"Who controls the past controls the future.
Who controls the present controls the past."
George Orwell - 1984
 



Re: No coloring with colorls

2024-03-26 Thread Chris Bennett
On Mon, Mar 25, 2024 at 11:40:52PM +0100, Karel Lucas wrote:
> Hi all,
> 
> LSCOLORS=exfxcxdxbxegedabagacad
> 

I just use TERM=xterm
If you use a black background (or some other dark colors), you will want
to change LSCOLORS to not use a dark blue. I find that color combo
unreadable. I just use alias ls='colorls -Gla'. You can either have other
aliases or just type colorls with the same arguments as ls to get other
options.

-- 
Regards,
Chris Bennett

"Who controls the past controls the future.
Who controls the present controls the past."
 George Orwell - 1984



Re: No coloring with colorls

2024-03-26 Thread Crystal Kolipe
On Mon, Mar 25, 2024 at 07:03:06PM -0400, Amelia A Lewis wrote:
> Note that you need a color-capable terminal to enable colorls.  This
> means you should set your TERM to "wsvt25" on the wscons(4) console

For several releases now, you should be able to set TERM to "xterm" even when
using wscons.

If there are any issues using TERM=xterm in place of vt220, feel free to let
me know.



Re: No coloring with colorls

2024-03-26 Thread Stuart Henderson
On 2024-03-25, Karel Lucas  wrote:
> In which configuration file can I change this? Is 'wsvt25' universally 
> suitable for use?

For X, it's configured in your terminal emulator, e.g. for xterm you can
use one of these :in .Xdefaults

XTerm*termName: xterm-color
XTerm*termName: xterm-256color

For text console, /etc/ttys. For current OpenBSD versions (7.1 and on)
xterm-color should be a reasonable choice too (for older versions,
pccon).


-- 
Please keep replies on the mailing list.



Re: No coloring with colorls

2024-03-26 Thread Stuart Henderson
On 2024-03-25, Karel Lucas  wrote:
> Hi all,
>
> After installing colorls and making some adjustments to the system, I 
> still have no colored output from colorls. Below I have indicated the 
> settings that have been made or are present by default. I would like to 
> know what is wrong and what needs to be improved.
>
> Default environment:
> TERM=vt220

This is a monochrome terminal. Perhaps you want xterm-color.

> Added environment:
> CLICOLOR=yes
> CLICOLOR_FORCE=yes
> LSCOLORS=exfxcxdxbxegedabagacad
>
>


-- 
Please keep replies on the mailing list.



Re: No coloring with colorls

2024-03-25 Thread Amelia A Lewis
On Mon, 25 Mar 2024 23:40:52 +0100, Karel Lucas wrote:
> After installing colorls and making some adjustments to the system, I 
> still have no colored output from colorls. Below I have indicated the 
> settings that have been made or are present by default. I would like 
> to know what is wrong and what needs to be improved.
> 
> Default environment:
> TERM=vt220

$ pkg_info -q colorls
ls(1) that can use color to display file attributes

This is a simple hack, taken from FreeBSD, to OpenBSD's ls(1) to
use ANSI sequences to display file attributes in color.  There is
a -G flag (somewhat similar to the -F flag).  Take a look at the
man page for details.  The program is called "colorls", so you may
want to use an alias such as ls=/usr/local/bin/colorls.

Note that you need a color-capable terminal to enable colorls.  This
means you should set your TERM to "wsvt25" on the wscons(4) console
and to "sun-color" when using the Sun console, not "vt220" and
"sun", respectively, which are not color-capable in termcap(5).

Maintainer: Christian Weisgerber 

Amy!
-- 
Amelia A. Lewisamyzing {at} talsever.com
  Light is the left hand of darkness
  and darkness the right hand of light.
Two are one, life and death, lying
together like lovers in kemmer,
  like hands joined together,
  like the end and the way.
-- Tormer's Lay [Ursula K. Le Guin, "The Left Hand of Darkness"]



Re: No coloring with colorls

2024-03-25 Thread Karel Lucas

Dear Benjamin,

In which configuration file can I change TERM?

Op 25-03-2024 om 23:46 schreef Benjamin Stürz:

On 25.03.24 23:40, Karel Lucas wrote:

Hi all,

After installing colorls and making some adjustments to the system, I 
still have no colored output from colorls. Below I have indicated the 
settings that have been made or are present by default. I would like 
to know what is wrong and what needs to be improved.


Default environment:
TERM=vt220

Added environment:
CLICOLOR=yes
CLICOLOR_FORCE=yes
LSCOLORS=exfxcxdxbxegedabagacad


Try CLICOLOR=1 (and TERM=xterm-256color, if it doesn't help).





Re: No coloring with colorls

2024-03-25 Thread Karel Lucas

Dear Amelia,

In which configuration file can I change this? Is 'wsvt25' universally 
suitable for use?


Op 26-03-2024 om 00:03 schreef Amelia A Lewis:

On Mon, 25 Mar 2024 23:40:52 +0100, Karel Lucas wrote:

After installing colorls and making some adjustments to the system, I
still have no colored output from colorls. Below I have indicated the
settings that have been made or are present by default. I would like
to know what is wrong and what needs to be improved.

Default environment:
TERM=vt220

$ pkg_info -q colorls
ls(1) that can use color to display file attributes

This is a simple hack, taken from FreeBSD, to OpenBSD's ls(1) to
use ANSI sequences to display file attributes in color.  There is
a -G flag (somewhat similar to the -F flag).  Take a look at the
man page for details.  The program is called "colorls", so you may
want to use an alias such as ls=/usr/local/bin/colorls.

Note that you need a color-capable terminal to enable colorls.  This
means you should set your TERM to "wsvt25" on the wscons(4) console
and to "sun-color" when using the Sun console, not "vt220" and
"sun", respectively, which are not color-capable in termcap(5).

Maintainer: Christian Weisgerber 

Amy!




Re: No coloring with colorls

2024-03-25 Thread Benjamin Stürz

On 25.03.24 23:40, Karel Lucas wrote:

Hi all,

After installing colorls and making some adjustments to the system, I 
still have no colored output from colorls. Below I have indicated the 
settings that have been made or are present by default. I would like to 
know what is wrong and what needs to be improved.


Default environment:
TERM=vt220

Added environment:
CLICOLOR=yes
CLICOLOR_FORCE=yes
LSCOLORS=exfxcxdxbxegedabagacad


Try CLICOLOR=1 (and TERM=xterm-256color, if it doesn't help).