Find the answer to your Linux question:
Results 1 to 6 of 6
Hi all, Is there a way to change the color of X's CLI? I am not referring to an emulated terminal (such as xterm), but the tty itself (if this ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! soccercisco's Avatar
    Join Date
    Dec 2006
    Location
    So. Cal
    Posts
    98

    X CLI background color?


    Hi all,

    Is there a way to change the color of X's CLI? I am not referring to an emulated terminal (such as xterm), but the tty itself (if this is the appropriate term for the big black NON-GUI screen).

    Thx.

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Sure... you can do so by editing (as root) the /etc/X11/xdm/Xsetup_0 file and adding the following line:

    Code:
    /usr/X11R6/bin/xsetroot -solid "#758090"
    Of course, you'll need to put in your own choice of color rather than the #758090.

    Edit: thought I'd better add that works for xdm, but I'm not sure what display manager you might be using.
    Last edited by oz; 06-15-2007 at 11:13 PM.
    oz

  3. #3
    Just Joined! soccercisco's Avatar
    Join Date
    Dec 2006
    Location
    So. Cal
    Posts
    98
    Hey, thanks for the reply.

    I am not using any display manager (xdm, gdm, etc). It is just a plain, old, dumb-terminal (aka "a Big Black screen").

    So the code above doesn't work for me.


  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined! soccercisco's Avatar
    Join Date
    Dec 2006
    Location
    So. Cal
    Posts
    98
    closest thing to what I want to do is:

    Code:
    setterm -inversescreen on
    But this, only swaps the colors of the text and the background. And, of course, I don't want to go blind with a white background.

    Thanks for any help on this.

  6. #5
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    You might try something like this:

    Code:
    setterm -background blue -foreground white -bold on -store
    oz

  7. #6
    Just Joined! soccercisco's Avatar
    Join Date
    Dec 2006
    Location
    So. Cal
    Posts
    98
    I had tried that in the past, without positive results. However, this time around I logged out and back in a couple of times and got the desired results after the 3rd or 4th try. Thx a lot!

Posting Permissions

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