Find the answer to your Linux question:
Results 1 to 7 of 7
hi, how do i change the text color of console from the default color grey to green? thanks...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2003
    Posts
    6

    Change text color in console terminal?


    hi,

    how do i change the text color of console from the default color grey to green? thanks

  2. #2
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Sigh... oh, well, do as you wish. Add this to your /etc/rc.d/rc.local:
    Code:
    echo -en \\033[32m\\033[8] >/dev/console

  3. #3
    Just Joined!
    Join Date
    Jul 2003
    Posts
    6
    i tried to add that script to "rc.local" and this is the code look like? Still no change in my text color. help again.thanks

    Code:
    #!/bin/sh
    #
    # This script will be executed *after* all the other init scripts.
    # You can put your own initialization stuff in here if you don't
    # want to do the full Sys V style init stuff.
    
    touch /var/lock/subsys/local
    echo -en \\03332m\\033[8] >/dev/console

  4. #4
    Just Joined!
    Join Date
    Jul 2003
    Posts
    6
    i missed type the code , here the code again... thanks
    Code:
    #!/bin/sh
    #
    # This script will be executed *after* all the other init scripts.
    # You can put your own initialization stuff in here if you don't
    # want to do the full Sys V style init stuff.
    
    touch /var/lock/subsys/local
    echo -en \\033[32m\\033[8] >/dev/console
    p.s can i change the bashrc for txt color?[/code]

  5. #5
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    That should have worked, but try adding it to your .bashrc instead, but in that case without ">/dev/console".

  6. #6
    Linux Engineer
    Join Date
    Apr 2003
    Location
    Sweden
    Posts
    796
    You executed the rc.local program right..?? but it didnt work??
    Regards

    Andutt

  7. #7
    Just Joined!
    Join Date
    Jul 2003
    Posts
    6
    thank you dolda, it suddenly work.... i just forgot to restart the pc ealier.. thanks thanks

Posting Permissions

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