Re: Why ``color_prompt`` is only set for ``xterm``?

2021-09-07 Thread Andrei POPESCU
On Jo, 02 sep 21, 19:34:07, David Wright wrote: > > (I use my own customisations for distinct colours on each host, > and inverse colours for root's prompt.) Since we're sharing bash prompts here's mine, as an extract from the diff to /etc/skel/.bashrc --- /etc/skel/.bashrc 2019-04-18

Re: Why ``color_prompt`` is only set for ``xterm``?

2021-09-07 Thread David Wright
On Sun 05 Sep 2021 at 09:06:31 (-0400), Greg Wooledge wrote: > On Sat, Sep 04, 2021 at 11:23:48PM -0500, David Wright wrote: > > $ cat /var/local/lib/myhosts/colours/axis > > 5 magenta bbarbutton=white,magenta,none:bbarhotkey=magenta,white,none > > $ > > > > 5 is for ANSI colours, > > magenta

Re: Why ``color_prompt`` is only set for ``xterm``?

2021-09-05 Thread Nate Bargmann
I may as well add to the fun here. Some years back, probably the late '90s or so, there was a short lived "Bash Prompt Project". I seem to recall it have a package in Debian back around that time. I had previously done colorizing of the MS-DOS prompt and had desired to do the same in Bash.

Re: Why ``color_prompt`` is only set for ``xterm``? (colored prompt examples)

2021-09-05 Thread Greg Wooledge
On Sun, Sep 05, 2021 at 09:38:34AM -0400, Cindy Sue Causey wrote: > There's also that thing about how terminals will interpret the > different types of quotes (dumb/typewriter/ASCII versus > typographic/curly/smart) very literally. I experienced THAT fail > firsthand and now try to remember to

Re: Why ``color_prompt`` is only set for ``xterm``? (colored prompt examples)

2021-09-05 Thread Cindy Sue Causey
On 9/5/21, Greg Wooledge wrote: > On Sun, Sep 05, 2021 at 12:28:37AM -0500, Intense Red wrote: >> > In /root/.bashrc I use this to give a red prompt including host and >> > full path followed by a new line. >> >>I take this idea a bit further, setting a longer prompt and setting >>

Re: Why ``color_prompt`` is only set for ``xterm``?

2021-09-05 Thread Greg Wooledge
On Sat, Sep 04, 2021 at 11:23:48PM -0500, David Wright wrote: > $ cat /var/local/lib/myhosts/colours/axis > 5 magenta bbarbutton=white,magenta,none:bbarhotkey=magenta,white,none > $ > > 5 is for ANSI colours, > magenta is for, eg emacs, mutt, etc, > bbarbutton is for mc. > > The lines from

Re: Why ``color_prompt`` is only set for ``xterm``? (colored prompt examples)

2021-09-05 Thread Greg Wooledge
On Sun, Sep 05, 2021 at 12:28:37AM -0500, Intense Red wrote: > > In /root/.bashrc I use this to give a red prompt including host and > > full path followed by a new line. > >I take this idea a bit further, setting a longer prompt and setting > workstation hosts for specific colors for user

Re: Why ``color_prompt`` is only set for ``xterm``? (colored prompt examples)

2021-09-05 Thread Cindy Sue Causey
On 9/5/21, Intense Red wrote: >> In /root/.bashrc I use this to give a red prompt including host and >> full path followed by a new line. > >I take this idea a bit further, setting a longer prompt and setting > workstation hosts for specific colors for user logins, and then doing a red > >

Re: Why ``color_prompt`` is only set for ``xterm``? (colored prompt examples)

2021-09-04 Thread Intense Red
> In /root/.bashrc I use this to give a red prompt including host and > full path followed by a new line. I take this idea a bit further, setting a longer prompt and setting workstation hosts for specific colors for user logins, and then doing a red prompt for servers. Part of my

Re: Why ``color_prompt`` is only set for ``xterm``?

2021-09-04 Thread David Wright
On Fri 03 Sep 2021 at 02:45:03 (+0100), piorunz wrote: > On 03/09/2021 01:34, David Wright wrote: > > (I use my own customisations for distinct colours on each host, > > and inverse colours for root's prompt.) > > Can you please share your root prompt invocation? Thanks! Sure. The colours come

Re: Why ``color_prompt`` is only set for ``xterm``?

2021-09-03 Thread Mark Neyhart
On 9/2/21 5:45 PM, piorunz wrote: > On 03/09/2021 01:34, David Wright wrote: >> (I use my own customisations for distinct colours on each host, >> and inverse colours for root's prompt.) > > Can you please share your root prompt invocation? Thanks! > In /root/.bashrc I use this to give a red

Re: Why ``color_prompt`` is only set for ``xterm``?

2021-09-02 Thread piorunz
On 03/09/2021 01:34, David Wright wrote: (I use my own customisations for distinct colours on each host, and inverse colours for root's prompt.) Can you please share your root prompt invocation? Thanks! -- With kindest regards, piorunz. ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating

Re: Why ``color_prompt`` is only set for ``xterm``?

2021-09-02 Thread Nicholas Geovanis
On Thu, Sep 2, 2021, 7:34 PM David Wright wrote > > (I use my own customisations for distinct colours on each host, > and inverse colours for root's prompt.) > Good idea :-) For some reason putting "root:" there doesn't save me 100% of the time :-) Cheers, > David. > >

Re: Why ``color_prompt`` is only set for ``xterm``?

2021-09-02 Thread David Wright
On Fri 03 Sep 2021 at 03:15:13 (+0300), IL Ka wrote: > .bashrc on bullseye contains following lines > > ``` > # set a fancy prompt (non-color, unless we know we "want" color) > case "$TERM" in > xterm-color|*-256color) color_prompt=yes;; > esac > ``` > > So we only have colors in the

Why ``color_prompt`` is only set for ``xterm``?

2021-09-02 Thread IL Ka
Hi .bashrc on bullseye contains following lines ``` # set a fancy prompt (non-color, unless we know we "want" color) case "$TERM" in xterm-color|*-256color) color_prompt=yes;; esac ``` So we only have colors in the terminal emulator, but not in virtual linux console. This could be fixed by