HI Guys.. How would I go about converting "this" xresources color scheme to work with a tty ?? I use tty1 a lot and would like to have it match my xfce4-terminal & xterm colors. Many thanks in advanced for replying & helping....
HI Guys.. How would I go about converting "this" xresources color scheme to work with a tty ?? I use tty1 a lot and would like to have it match my xfce4-terminal & xterm colors. Many thanks in advanced for replying & helping....
[ d:Tour // Reviziis ]
@Jonny6...
if you are talking about changing the default colors in terminal, you can edit the
preferences to use whatever you like...or add a background image....screenie
attached showing what I use....
or maybe I misunderstood what you meant....
tommy
Registered Linux User # 529389
Arch Linux, MX 18.3 Linux
my personal web page http://users.gilanet.com/~tfrost
"If you're not living on the edge, you're taking up too much space"--Unknown
I think you have misunderstood. What I want is to change the colors within a "TTY" to match the color scheme in my gui terminal. I'm pretty sure that I have seen it done before. I just don't know how to do it myself....
[ d:Tour // Reviziis ]
simple search found this.....have NOT tried it myself.....
add this to your ~/.bashrc file....change colors as needed....
found here http://archive.is/QSYHdCode:if [ "$TERM" = "linux" ]; then echo -en "\e]P0222222" #black echo -en "\e]P8222222" #darkgrey echo -en "\e]P1803232" #darkred echo -en "\e]P9982b2b" #red echo -en "\e]P25b762f" #darkgreen echo -en "\e]PA89b83f" #green echo -en "\e]P3aa9943" #brown echo -en "\e]PBefef60" #yellow echo -en "\e]P4324c80" #darkblue echo -en "\e]PC2b4f98" #blue echo -en "\e]P5706c9a" #darkmagenta echo -en "\e]PD826ab1" #magenta echo -en "\e]P692b19e" #darkcyan echo -en "\e]PEa1cdcd" #cyan echo -en "\e]P7ffffff" #lightgrey echo -en "\e]PFdedede" #white clear #for background artifacting fi
tommy
Last edited by NM5TF; December 12th, 2018 at 03:44 PM. Reason: typo
Registered Linux User # 529389
Arch Linux, MX 18.3 Linux
my personal web page http://users.gilanet.com/~tfrost
"If you're not living on the edge, you're taking up too much space"--Unknown
Ok ok.. Soooo I just tried what was on the link above and I don't think it worked. I added the code and changed the colors, yet the colors in the tty still look the same and have not changed. Any ideas ??
[ d:Tour // Reviziis ]
did you reboot after ???
Registered Linux User # 529389
Arch Linux, MX 18.3 Linux
my personal web page http://users.gilanet.com/~tfrost
"If you're not living on the edge, you're taking up too much space"--Unknown
Yep I rebooted and then checked. Here's a copy of what I put at the bottom of my .bashrc file....
Code:if [ "$TERM" = "linux" ]; then echo -en "\e]P282828" echo -en "\e]Pca1444" echo -en "\e]P789aba" echo -en "\e]Pb3879f" echo -en "\e]P94469b" echo -en "\e]Pcb6fa1" echo -en "\e]Pfb6e93" echo -en "\e]Pcf98c1" echo -en "\e]P98218e" echo -en "\e]Pcb515d" echo -en "\e]P5a87b1" echo -en "\e]P9c61ab" echo -en "\e]P9a77b1" echo -en "\e]Pf2a297" echo -en "\e]Pf4436f" echo -en "\e]Pebdbb2" echo -en "\e]Pf2f2f2" clear #for background artifacting fi
Last edited by Furycd001; December 12th, 2018 at 06:50 PM.
[ d:Tour // Reviziis ]
No need to reboot. I tried one of the commands (echo -en "\e]P0222222") in my tty and it kinda worked. It changed the background colour, the foreground stayed white.
This changes the normal foreground (colour 7) from lightgray to a kind of orangey-brown: echo -en "\e]P7dd7733"
So I put all the above (except for the if and fi lines) in a text file and sourced it in bash, and it changed the foreground to bright white.
So the script works on my Xubuntu 18.04.
Hmm. Why am I not on 18.10???
Last edited by The Cog; December 12th, 2018 at 08:13 PM. Reason: typo
Do you have a ~/.bash_profile file?
If you have a ~/.bash_profile, tty will read that first I think.
Bookmarks