Results 1 to 7 of 7

Thread: CLI text color2633 days old

  1. #1
    Registered User nixdude's Avatar
    Join Date
    Feb 2006
    Posts
    37
    Threads
    10
    Local Date
    05-18-2013
    Local Time
    03:32 PM

    CLI text color

    is there any way i could change Linux CLI text color to green? (Slackware 10.2)

  2. #2
    Hell's Very Own Grogan's Avatar
    Join Date
    Sep 2002
    Location
    Ontario, Canada
    Posts
    23,083
    Threads
    2409

    Awards Showcase

    Real Name
    Hugh Jorgen
    Local Date
    05-18-2013
    Local Time
    09:32 AM
    man dir_colors

    You can edit the /etc/DIR_COLORS file.

  3. #3
    Registered User nixdude's Avatar
    Join Date
    Feb 2006
    Posts
    37
    Threads
    10
    Local Date
    05-18-2013
    Local Time
    03:32 PM

    thumb up

    Thnx, I've asked around on other forums, and googled, no luck, you sure do know your stuff. =)

  4. #4
    Hell's Very Own Grogan's Avatar
    Join Date
    Sep 2002
    Location
    Ontario, Canada
    Posts
    23,083
    Threads
    2409

    Awards Showcase

    Real Name
    Hugh Jorgen
    Local Date
    05-18-2013
    Local Time
    09:32 AM
    Oh but wait, DIR_COLORS is just for directory listings.

    To change your text colour, you need to configure whatever terminal application you're using. For example I use rxvt and I use this command in shortcuts to launch my terminal.

    rxvt -bg black -cr green -fg white -C -fn 9x15 -sl 1000

    -bg is the background colour, and -fg is the foreground (text) colour.

    If you're using KDE Konsole, you can go to Settings and change the Schema to suit your tastes.

  5. #5
    Registered User nixdude's Avatar
    Join Date
    Feb 2006
    Posts
    37
    Threads
    10
    Local Date
    05-18-2013
    Local Time
    03:32 PM

    I don't mean console like in KDE. Just CLI without X running.

  6. #6
    Hell's Very Own Grogan's Avatar
    Join Date
    Sep 2002
    Location
    Ontario, Canada
    Posts
    23,083
    Threads
    2409

    Awards Showcase

    Real Name
    Hugh Jorgen
    Local Date
    05-18-2013
    Local Time
    09:32 AM
    Then no, I don't think so. There's just the DIR_COLORS for file types in directory listings.

    You can programatically get text to appear in other colours (the output of a program that prints text to console) and it's possible to colourize script output, and even colourize some output from your shell but I don't think you can change the default colours of the vt100 console. It's a white on black vga screen. This is in the vga console driver in the kernel, or the framebuffer console depending on what you are using. It may be possible to hack on kernel sources to change this behaviour and recompile but I don't know offhand.

  7. #7
    Registered User nixdude's Avatar
    Join Date
    Feb 2006
    Posts
    37
    Threads
    10
    Local Date
    05-18-2013
    Local Time
    03:32 PM

    Well, first I have to read this,,,



    And than I can hack anything I want. LOL thats a big pile isn't it?

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
  •