Find the answer to your Linux question:
Results 1 to 5 of 5
to my scripts ? This is in a Putty session. I have a few displays and would like to bring them out more. What/ How can I do to this?? ...
  1. #1
    Linux Newbie
    Join Date
    Jun 2006
    Posts
    139

    How or can I add highlights/colors

    to my scripts ?
    This is in a Putty session.
    I have a few displays and would like to bring them out more.
    What/ How can I do to this??

    thanks in advance

    Mace

  2. #2
    Linux Engineer Thrillhouse's Avatar
    Join Date
    Jun 2006
    Location
    Arlington, VA, USA
    Posts
    1,377
    Are you talking about when viewing the file in a text editor? If so, I would expect that depends on which editor you use. For vi or vim, you'd have to edit .vimrc. Take a look at this thread. For nano, try this page.

  3. #3
    Linux Newbie
    Join Date
    Jun 2006
    Posts
    139
    I have colors but when I do a display IE
    display 1----normal
    then display 2 would be highlighted or in color
    display 3 -----normal

    All 3 displays come from the the same script
    thanks

    Mace

  4. #4
    Linux Engineer Thrillhouse's Avatar
    Join Date
    Jun 2006
    Location
    Arlington, VA, USA
    Posts
    1,377
    In that case, I don't know how much I can help you. I'm not too familiar with the display command but just by looking at the man page, there are options for colormap, colors and colorspace. Have you tried those?

  5. #5
    Linux Newbie
    Join Date
    Jun 2006
    Posts
    139
    Here is the commnd I feed to the script(well really someone and I forget who on here gave me the code):
    echo $(ls -t LIT2.0.l2db.NODE0000.CATN0000* |tail -1)

    I have found a --color option on the man ls page.
    I have tried several ways of putting this option(--color=always is what I'm using) I've tried ls --color=always -t,ls -tcolor=always) but neither have worked. I'm missing something and I'm hoping someone here can help.
    Is it possile the echo command is interfering with the color option??
    thanks
    Mace

Posting Permissions

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