Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #236316
| From | Bret Busby <bret@busby.net> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Font color selection in MATE terminal |
| Date | 2021-06-22 20:30 +0200 |
| Message-ID | <CsTjP-4tO-5@gated-at.bofh.it> (permalink) |
| References | <CsOtP-1F2-1@gated-at.bofh.it> <CsRi2-3kd-9@gated-at.bofh.it> <CsRUJ-3wW-1@gated-at.bofh.it> <CsSH7-421-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 23/6/21 1:42 am, Greg Wooledge wrote:
> On Wed, Jun 23, 2021 at 12:27:17AM +0800, Bret Busby wrote:
>> And, that also applies, if provision for coloured text is commented out, in
>> the .bashrc file.
>
> There's nothing in .bashrc which controls the terminal's interpretation
> of color escape sequences. Or in bash, anywhere.
>
> It's entirely between the terminal, and the application which generates
> the color sequences. The shell is not involved.
>
> The closest the shell comes to being involved is if you try to trick the
> application into thinking it's on a different kind of terminal, by
> changing the TERM variable. This rarely works out well, except in
> very specific circumstances -- the most notable being "I'm ssh-ing to
> a system that doesn't know about my terminal type".
>
> As I've already tested today, it sure as hell doesn't work for apt(8).
>
Excerpt from .bashrc file:
"
# set a fancy prompt (non-color, unless we know we "want" color)
# case "$TERM" in
# xterm-color|*-256color) color_prompt=yes;;
# esac
# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes
# if [ -n "$force_color_prompt" ]; then
# if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
# # We have color support; assume it's compliant with Ecma-48
# # (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# # a case would tend to support setf rather than setaf.)
# color_prompt=yes
# else
# next line commented out by me to prevent colouring of prompt
# color_prompt=
# fi
# fi
# if [ "$color_prompt" = yes ]; then
# PS1='[\D{} \t]
${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$
'
# PS1="\d \t \u@\h:\w$"
# else
PS1='[\D{} \t] ${debian_chroot:+($debian_chroot)} `date `\u@\h:\w\$ '
# PS1="\d \t \u@\h:\w$"
# fi
# unset color_prompt force_color_prompt
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
# PS1="[\D{} \t] \[\e]0;${debian_chroot:+($debian_chroot)}\u@\h:
`date `\w\a\]$PS1"
PS1="\d \t \u@\h:\w$"
;;
*)
;;
esac
# enable color support of ls and also add handy aliases
# if [ -x /usr/bin/dircolors ]; then
# test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" ||
eval "$(dircolors -b)"
# alias ls='ls --color=auto'
# #alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
# alias grep='grep --color=auto'
# alias fgrep='fgrep --color=auto'
# alias egrep='egrep --color=auto'
# fi
# colored GCC warnings and errors
#export
GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
# some more ls aliases
# alias ll='ls -alF'
# alias la='ls -A'
# alias l='ls -CF'
"
--
Bret Busby
Armadale
West Australia
(UTC+0800)
..............
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Font color selection in MATE terminal Richard Owlett <rowlett@cloud85.net> - 2021-06-22 15:20 +0200
Re: Font color selection in MATE terminal Richard Owlett <rowlett@cloud85.net> - 2021-06-22 15:30 +0200
Re: Font color selection in MATE terminal IL Ka <kazakevichilya@gmail.com> - 2021-06-22 15:30 +0200
Re: Font color selection in MATE terminal Greg Wooledge <greg@wooledge.org> - 2021-06-22 15:50 +0200
Re: Font color selection in MATE terminal Curt <curty@free.fr> - 2021-06-22 16:30 +0200
Re: Font color selection in MATE terminal IL Ka <kazakevichilya@gmail.com> - 2021-06-22 16:30 +0200
Re: Font color selection in MATE terminal "Andrew M.A. Cater" <amacater@einval.com> - 2021-06-22 15:30 +0200
Re: Font color selection in MATE terminal Richard Owlett <rowlett@cloud85.net> - 2021-06-22 15:40 +0200
Re: Font color selection in MATE terminal David Wright <deblis@lionunicorn.co.uk> - 2021-06-22 21:20 +0200
Re: Font color selection in MATE terminal Richard Owlett <rowlett@cloud85.net> - 2021-06-22 16:00 +0200
Re: Font color selection in MATE terminal IL Ka <kazakevichilya@gmail.com> - 2021-06-22 16:40 +0200
Re: Font color selection in MATE terminal Andrei POPESCU <andreimpopescu@gmail.com> - 2021-06-22 16:40 +0200
Re: Font color selection in MATE terminal David Wright <deblis@lionunicorn.co.uk> - 2021-06-22 17:40 +0200
Re: Font color selection in MATE terminal Bret Busby <bret@busby.net> - 2021-06-22 18:50 +0200
Re: Font color selection in MATE terminal Siard <shiems@mailbox.org> - 2021-06-22 18:30 +0200
Re: Font color selection in MATE terminal Richard Owlett <rowlett@cloud85.net> - 2021-06-23 11:40 +0200
Re: Font color selection in MATE terminal Siard <shiems@mailbox.org> - 2021-06-23 13:40 +0200
At least a partial solution - was [Re: Font color selection in MATE terminal] Richard Owlett <rowlett@cloud85.net> - 2021-06-23 14:30 +0200
Re: Font color selection in MATE terminal Marc Shapiro <marcnshap@gmail.com> - 2021-07-02 07:40 +0200
Re: Font color selection in MATE terminal Siard <shiems@mailbox.org> - 2021-07-02 13:30 +0200
Re: Font color selection in MATE terminal Richmond <richmond@criptext.com> - 2021-07-02 18:10 +0200
Re: Font color selection in MATE terminal Richmond <dnomhcir@gmx.com> - 2021-06-22 18:20 +0200
Re: Font color selection in MATE terminal Peter Ehlert <pb21a@sdi-baja.com> - 2021-06-22 18:40 +0200
Re: Font color selection in MATE terminal Richmond <dnomhcir@gmx.com> - 2021-06-22 20:50 +0200
Re: Font color selection in MATE terminal Bret Busby <bret@busby.net> - 2021-06-22 19:00 +0200
Re: Font color selection in MATE terminal Greg Wooledge <greg@wooledge.org> - 2021-06-22 19:50 +0200
Re: Font color selection in MATE terminal Bret Busby <bret@busby.net> - 2021-06-22 20:30 +0200
Re: Font color selection in MATE terminal Greg Wooledge <greg@wooledge.org> - 2021-06-22 20:50 +0200
Re: Font color selection in MATE terminal Bret Busby <bret@busby.net> - 2021-06-22 21:20 +0200
Re: Font color selection in MATE terminal David Wright <deblis@lionunicorn.co.uk> - 2021-06-22 21:30 +0200
Re: Font color selection in MATE terminal Greg Wooledge <greg@wooledge.org> - 2021-06-22 21:30 +0200
RESOLVED: Font color selection in MATE terminal Richard Owlett <rowlett@cloud85.net> - 2021-06-24 13:10 +0200
csiph-web