Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 20 Sep 2018, 17:55
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
How to change colors of Urxvt Terminal Emulator? (Solved)
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [28 Posts]   Goto page: 1, 2 Next
Author Message
orrin


Joined: 05 Sep 2016
Posts: 130
Location: sparks, NV

PostPosted: Sun 25 Sep 2016, 20:58    Post subject:  How to change colors of Urxvt Terminal Emulator? (Solved)
Subject description: Slacko 64-6.3.2
 

Is there any way to change the colors on the Terminal Emulator?
The blue is unreadable on my monitor.
Screenshot.jpg
 Description   
 Filesize   18.76 KB
 Viewed   444 Time(s)

Screenshot.jpg

Back to top
View user's profile Send private message Visit poster's website 
drunkjedi


Joined: 24 May 2015
Posts: 897

PostPosted: Sun 25 Sep 2016, 21:20    Post subject:  

Maybe look at this...
http://www.murga-linux.com/puppy/viewtopic.php?t=97337
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 13011
Location: Arizona USA

PostPosted: Sun 25 Sep 2016, 23:27    Post subject:  

There's a much simpler way, but I can't find the file that needs to be modified. I've done it, years ago and it was easy to do.

Edit: Here you go:
http://www.murga-linux.com/puppy/viewtopic.php?p=797148#797148
http://www.murga-linux.com/puppy/viewtopic.php?t=68624
http://www.murga-linux.com/puppy/viewtopic.php?t=48756
Back to top
View user's profile Send private message 
Semme


Joined: 07 Aug 2011
Posts: 7834
Location: World_Hub

PostPosted: Mon 26 Sep 2016, 05:48    Post subject:    

Radky's Control all-the-way!
_________________
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<
Back to top
View user's profile Send private message 
orrin


Joined: 05 Sep 2016
Posts: 130
Location: sparks, NV

PostPosted: Mon 26 Sep 2016, 12:42    Post subject:  

Thanks guys, I will take a look as /root/.Xdefaults
_________________
Orrin - Engineer/Photographer/Webmaster

Back to top
View user's profile Send private message Visit poster's website 
orrin


Joined: 05 Sep 2016
Posts: 130
Location: sparks, NV

PostPosted: Mon 26 Sep 2016, 13:15    Post subject:  

I changed the forground/background to:

urxvt.foreground:yellow
urxvt.background:#494949
urxvt.underlineColor:ffff00000000

It looks better, but the filenames with the ls command are still
the unreadable blue!

I saw no options to change that in /root/.Xdefaults.

What is underline color and why does it have 12 digits rather than the usual 6 to defime a color in hex?

_________________
Orrin - Engineer/Photographer/Webmaster

Back to top
View user's profile Send private message Visit poster's website 
drunkjedi


Joined: 24 May 2015
Posts: 897

PostPosted: Mon 26 Sep 2016, 13:44    Post subject:  

That's because 'ls' command is actually an 'alias' of 'ls --color'.
You can remove the alias.
Or I believe you can set color of ls commands with LS_COLORS= option in config file.
But I am not sure.
Please google.
Back to top
View user's profile Send private message 
Sailor Enceladus

Joined: 22 Feb 2016
Posts: 1540

PostPosted: Mon 26 Sep 2016, 14:02    Post subject:  

orrin wrote:
and why does it have 12 digits rather than the usual 6 to defime a color in hex?

I guess 16 million colors was not enough so it lets you have 281 trillion. Laughing

drunkjedi wrote:
That's because 'ls' command is actually an 'alias' of 'ls --color'.
You can remove the alias.
Or I believe you can set color of ls commands with LS_COLORS= option in config file.
But I am not sure.
Please google.

Nice find drunkjedi. I tried ls --color=never and that restored it to white/default (typing /bin/ls worked too).
Back to top
View user's profile Send private message 
april

Joined: 14 Sep 2013
Posts: 1241
Location: Green Island baby!

PostPosted: Mon 26 Sep 2016, 16:17    Post subject:  

In case you want to put it back
alias ls='ls --color=auto'
Back to top
View user's profile Send private message Yahoo Messenger 
orrin


Joined: 05 Sep 2016
Posts: 130
Location: sparks, NV

PostPosted: Mon 26 Sep 2016, 16:52    Post subject:  

Does anyone know where the DIR_COLOR config file is located in
Slacko 64-6.3.2 ??

Using echo $LS_COLORS, I found that the only colors that are set are bd=33 & cd=33 so that dark blue for directories (di) must be a default.

UPDATE:

I found the colors are set in /etc/profile
I added di=32 and now the directories display as a very readable green!

_________________
Orrin - Engineer/Photographer/Webmaster

Back to top
View user's profile Send private message Visit poster's website 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 13011
Location: Arizona USA

PostPosted: Mon 26 Sep 2016, 23:47    Post subject:  

What kind of sadistic psychopath made dark blue letters on a black background the default configuration? Laughing
Back to top
View user's profile Send private message 
drunkjedi


Joined: 24 May 2015
Posts: 897

PostPosted: Tue 27 Sep 2016, 00:12    Post subject:  

Lol Flash.

Orrin, thanks for sharing your findings, will look at it later.
Mark this topic as solved if you feel so.
Back to top
View user's profile Send private message 
takenp


Joined: 05 Aug 2015
Posts: 62

PostPosted: Sun 13 May 2018, 16:31    Post subject:  

thank you orrin, finally have changed that awful blue color for dirs )
to =96
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 12686
Location: Gatineau (Qc), Canada

PostPosted: Sun 13 May 2018, 21:12    Post subject:  

Hello, orrin and all.

This is what I have in my .Xresources:
Code:
!!!!!!!!!!!!!!!!!!!!!!!!
! Couleurs de la console ! composite par moi
! Inspiré de : https://wiki.gentoo.org/wiki/Rxvt-unicode
! Relevé le 2017-11-19 à 03h15
*background: #0f0f0f
*foreground: #c8c8c8

!black
*color0:  #251f1f
*color8:  #5e5e5e
!red
*color1:  #eb4509
URxvt*color9:  #FF5454
!green
*color2:  #94e76b
URxvt*color10: #54FF54
!yellow
*color3:  #ffac18
URxvt*color11: #FFFF54
!blue
*color4:  #46aede
URxvt*color12: #5454FF
!magenta
*color5:  #e32c57
URxvt*color13: #FF54FF
!cyan
*color6:  #d6dbac
URxvt*color14: #54FFFF
!white
*color7:  #efefef
URxvt*color15: #FFFFFF

The inspiration came from:
https://wiki.gentoo.org/wiki/Rxvt-unicode

As you can see below in Pic 1, the < ls > listing is still blue, but much
paler, so more readable.

~~~~~~~~~~

Also here are a few lines concerning "color" when you type
< urxvt -help > in console. They override the settings in .Xresources or
.Xdefaults.
Quote:
-/+ip or -/+tr turn on/off inherit parent pixmap [In other
words, -tr and -ip allow you to have a transparent urxvt console.]

-tint color tint color
-sh number shade background by number %.
-blr HxV gaussian blur radii to apply to the root background [seldom used]
-fade number fade colors by number % when losing focus
-fadecolor color target color for off-focus fading

-bg color background color
-fg color foreground color
-hc color highlight color
-cr color cursor color
-pr color pointer color [this one and the following are useful...]
-pr2 color pointer bg color [... to increase the contrast of the pointer]
-bd color border color [of course -b width number has to be there as well
otherwise -bd is meaningless.]

If your urxvt has been perl-enabled at compilation time, you can also
color the "tab line" on top of urxvt proper (below the title bar provided by
the WM) through the following settings:
Quote:
-tab-bg colour tab background colour (-pe tabbed)
-tab-fg colour tab foreground colour (-pe tabbed)
-tabbar-bg colour tab bar background colour (-pe tabbed)
-tabbar-fg colour tab bar foreground colour (-pe tabbed)

These settings are used like so:
Code:
urxvt -bg Sienna4 -fg cornsilk -tr -sh 89 -tint green -fade 78 -fadecolor white -hc blue -cr yellow -pr red -pr2 white -b 20 -bd bisque -sr
(Q.v. pic 2)

In the above one-liner, I used "named" colors available in file
/usr/share/X11/rgb.txt, but I could as well have used any traditional hex
color instead, such as #FFFFFF for white, #FFE4C4 for bisque, etc. The
gcolor2 utility is a good source to find -- and refine -- hex colors.

Please note that I now routinely install and use urxvt-9.22 in all my
Puppies. If you have a lesser version of urxvt, such as the version from
2008 that most Puppies come with, the "fade" settings will not be
available. (Also the -icon setting will not be available. Customized urxvt
icons are beyond the scope of this thread, but I thought I should mention
it anyway.)

~~~~~~~~~~

Finally, ANSI-colors can be used in any console. This means that you can
use a variety of additional colors, plus bold, italics, reverse colors, blinking,
etc, to spice up your prompts or console texts. Here are a few references
for ANSI-codes:
http://pueblo.sourceforge.net/doc/manual/ansi_color_codes.html
https://en.wikipedia.org/wiki/ANSI_escape_code
http://ascii-table.com/ansi-escape-sequences-vt-100.php

To learn more about ANSI Escape codes, you could go, for example, to
http://www.dogpile.com/info.dogpl.rss/search/web?q=ANSI+codes
or to any good search engine, and take it from there.

For the record, an ANSI code is written thus in a script:
Code:
echo -e "\e[34mHi there!\e[0m"

That is: "backslash e forward bracket color number m" to set a color on
before the text, and "backslash e forward bracket zero m" to turn any
ANSI code off. Of course no spaces between the commands, because
that's what they are: ANSI commands.

I mention it because not all ANSI docs explain how to achieve good
results in Linux bash.

IHTH.
green-transparent-terminal.jpg
 Description   (Pic 2) Result of the urxvt one-liner above.
 Filesize   217.13 KB
 Viewed   138 Time(s)

green-transparent-terminal.jpg

ls-listing-blue.jpg
 Description   (Pic 1) ls listing with the "new" blue.
 Filesize   214.65 KB
 Viewed   159 Time(s)

ls-listing-blue.jpg


_________________
musher0
~~~~~~~~~~
Siempre será canción nueva... (V. Jara, Manifiesto)
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 12686
Location: Gatineau (Qc), Canada

PostPosted: Mon 14 May 2018, 07:13    Post subject:  

Hello all.

I have just corrected a few small errors in my post above. Everything in it
should now be kosher. Thanks for your understanding.

BFN.

_________________
musher0
~~~~~~~~~~
Siempre será canción nueva... (V. Jara, Manifiesto)
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [28 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0605s ][ Queries: 12 (0.0072s) ][ GZIP on ]