Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Customize tty colors....

  1. #1
    Join Date
    Jan 2014
    Location
    The Endless Ocean
    Beans
    223
    Distro
    Xubuntu

    Question Customize tty colors....

    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 ]

  2. #2
    Join Date
    Nov 2008
    Location
    Magdalena,New Mexico,USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Customize tty colors....

    @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
    Attached Images Attached Images
    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

  3. #3
    Join Date
    Jan 2014
    Location
    The Endless Ocean
    Beans
    223
    Distro
    Xubuntu

    Re: Customize tty colors....

    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 ]

  4. #4
    Join Date
    Nov 2008
    Location
    Magdalena,New Mexico,USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Customize tty colors....

    simple search found this.....have NOT tried it myself.....

    add this to your ~/.bashrc file....change colors as needed....

    Code:
    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
    found here http://archive.is/QSYHd

    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

  5. #5
    Join Date
    Jan 2014
    Location
    The Endless Ocean
    Beans
    223
    Distro
    Xubuntu

    Re: Customize tty colors....

    Quote Originally Posted by NM5TF View Post
    simple search found this.....have NOT tried it myself.....

    add this to your ~/.bashrc file....change colors as needed....

    Code:
    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
    found here http://archive.is/QSYHd

    tommy
    Nice find dude. That's actually where I''d seen it done before ^^* Gona go give it a try. Thanks again dude....
    [ d:Tour // Reviziis ]

  6. #6
    Join Date
    Jan 2014
    Location
    The Endless Ocean
    Beans
    223
    Distro
    Xubuntu

    Re: Customize tty colors....

    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 ]

  7. #7
    Join Date
    Nov 2008
    Location
    Magdalena,New Mexico,USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Customize tty colors....

    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

  8. #8
    Join Date
    Jan 2014
    Location
    The Endless Ocean
    Beans
    223
    Distro
    Xubuntu

    Re: Customize tty colors....

    Quote Originally Posted by NM5TF View Post
    did you reboot after ???
    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 ]

  9. #9
    Join Date
    Nov 2007
    Location
    London, England
    Beans
    7,703

    Re: Customize tty colors....

    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

  10. #10
    Join Date
    Mar 2017
    Beans
    1,018

    Re: Customize tty colors....

    Do you have a ~/.bash_profile file?
    If you have a ~/.bash_profile, tty will read that first I think.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •