Sponsored Content
Full Discussion: Colors not being Interpreted
Top Forums UNIX for Dummies Questions & Answers Colors not being Interpreted Post 302849731 by balajesuri on Tuesday 3rd of September 2013 06:10:09 AM
Old 09-03-2013
Code:
Color_Off='\e[0m'
White='\e[1;37m'
echo "$White i am luminous now $Color_Off i am dull again"

 

10 More Discussions You Might Find Interesting

1. UNIX Desktop Questions & Answers

colors

Hello, I am somewhat new to linux. I just installed Red Hat 7.2 and when I try to load gnome or KDE in colors above 8bit it will kind of lock up and display some wierd scrambled cable look. I have an ATI Radeon 7000. I check out my monitor settings they are fine. Is it the graphics card? I set my... (1 Reply)
Discussion started by: Sage3k
1 Replies

2. Solaris

Console colors

Guys i used to the black background in BSD, now im using Sun Solairs, how can i change the background and font colors in console ?, i heard about setterm but i didnt get the right syntax, any ideas ? (5 Replies)
Discussion started by: XP_2600
5 Replies

3. Linux

linux colors

what dog gone file is setting these colors! i dont see it in bashrc or bash_profile!! anyone know? alias cp='cp -i' alias l.='ls -d .* --color=tty' alias ll='ls -l --color=tty' alias ls='ls --color=tty' alias mv='mv -i' alias rm='rm -i' alias vi='vim' alias which='alias | /usr/bin/which... (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies

4. UNIX for Dummies Questions & Answers

Directory colors

Hey guys, When I used a Solaris box way back I had directory, file , symbolic link colors, etc... I can't seem to find the .dircolors file and how i set it up for bash on Solaris... anyone remember how to do it? Thanks! (2 Replies)
Discussion started by: kingdbag
2 Replies

5. UNIX for Dummies Questions & Answers

Colors

Is there a way with the bourne shell to have different types of files show up a different color when you do ls? (1 Reply)
Discussion started by: resullivan
1 Replies

6. Shell Programming and Scripting

using colors in mailx

I want to use notify_fail () { echo " " >> ${MSG} echo " Script failed n">> ${MSG} cat ${MSG}|mailx -s "t1.ksh Success: "name@domain.com" exit 1 } I want script failed to show in Red or different colors in the email that i sent to name@domain.com I serached several sites and also... (1 Reply)
Discussion started by: konark
1 Replies

7. HP-UX

Vim colors in HP-UX

I am using xterm on my HP-UX system (11i). Color is working in xtrem, i can see that with the -color option on ls. When I use vim's syntax high lighting, instead of colors, it uses underline and bold (which looks horrible). I added the following if &term =~ "xterm" if has("terminfo") ... (2 Replies)
Discussion started by: kheisler
2 Replies

8. Shell Programming and Scripting

awk print: howto single quote not interpreted!?

cat a | awk -F";" '{print "update db set column=' "$2" ' where column1=\""$1"\";"}' > ip-add.sql Hi! I'm a new user! i need to use single quote in the double quotes print string The apex between che "$2" should not be interpreted, but....how?! I'm trying to use \ but don't work correctly! ... (4 Replies)
Discussion started by: Re DeL SiLeNziO
4 Replies

9. Shell Programming and Scripting

Problem with eval a generated and interpreted variable name and its value

Heya I have modified $HOME/.config/user-dirs.dirs to my like and the variables are properly 'structured' (XDG_XY_DIR="$HOME/YZ"). Now since i wrote a script to do that part, i currently stuck at the part to create a new .gtk-bookmarks file. Regarding code snippet: (bold part beeing... (2 Replies)
Discussion started by: sea
2 Replies

10. Programming

Ncurses colors

I am using ncurses to develop a user interface. Perhaps I should be using something else, but I am reasonably comfortable with ncurses and don't really want to climb another learning curve at this time. One problem I have dealt with for many years is ncurses' colors. I have simply been... (23 Replies)
Discussion started by: BillLee
23 Replies
Color::Library(3pm)					User Contributed Perl Documentation				       Color::Library(3pm)

NAME
Color::Library - An easy-to-use and comprehensive named-color library VERSION
version 0.021 SYNOPSIS
use Color::Library; # Search for a sea blue color my $seablue = Color::Library->color("seablue"); # Search for a grey73 in the 'svg' and 'x11' dictionaries only my $grey73 = Color::Library->colour([qw/svg x11/] => "grey73"); # Find a bunch of colors at the same time my ($red, $green, $blue) = Color::Library->colors(qw/red green blue/); # Fetch the named color "aliceblue" from the SVG dictionary my $color = Color::Library->SVG->color("aliceblue"); # Prints out "aliceblue is #ff08ff" print $color->name, "is ", $color, " "; # Get a list of names in the svg dictionary my @names = Color::Library->SVG->names; # Get a list of colors in the x11 dictionary my @colors = Color::Library->dictionary('x11')->colors; DESCRIPTION
Color::Library is an easy-to-use and comprehensive named-color dictionary. Currently provides coverage for www (svg, html, css) colors, x11 colors, and more. DICTIONARIES
The following dictionaries are available in this distribution: Color::Library::Dictionary::SVG - Colors from the SVG specification Color::Library::Dictionary::X11 - Colors for the X11 Window System (rgb.txt) Color::Library::Dictionary::HTML - Colors from the HTML 4.0 specification Color::Library::Dictionary::IE - Colors recognized by Internet Explorer Color::Library::Dictionary::Mozilla - Colors recognized by Mozilla (ColorNames.txt) Color::Library::Dictionary::Netscape - Colors recognized by Netscape Color::Library::Dictionary::Windows - Colors from the Windows system palette Color::Library::Dictionary::VACCC - VisiBone Anglo-Centric Color Code Color::Library::Dictionary::NBS_ISCC - Centroids of the NBS/ISCC catalog Color::Library::Dictionary::NBS_ISCC::A - Dye Colors Color::Library::Dictionary::NBS_ISCC::B - Colour Terminology in Biology Color::Library::Dictionary::NBS_ISCC::F - Colors; (for) Ready-Mixed Paints Color::Library::Dictionary::NBS_ISCC::H - Horticultural Colour Charts Color::Library::Dictionary::NBS_ISCC::M - Dictionary of Color Color::Library::Dictionary::NBS_ISCC::P - Plochere Color System Color::Library::Dictionary::NBS_ISCC::R - Color Standards and Color Nomenclature Color::Library::Dictionary::NBS_ISCC::RC - Rock-Color Chart Color::Library::Dictionary::NBS_ISCC::S - Postage-Stamp Color Names Color::Library::Dictionary::NBS_ISCC::SC - Soil Color Charts Color::Library::Dictionary::NBS_ISCC::TC - Standard Color Card of America You can see a list of colors in any of these by reading their perldoc. For example: perldoc Color::Library::Dictionary::VACCC If you have any suggestions for more color dictionaries to integrate, contact me. METHODS
$dictionary = Color::Library->dictionary( <dictionary_id> ) Returns a Color::Library::Dictionary object corresponding to <dictionary_id> @dictionaries = Color::Library->dictionaries @dictionaries = Color::Library->dictionaries( <dictionary_id>, <dictionary_id>, ... ) $dictionaries = Color::Library->dictionaries( <dictionary_id>, <dictionary_id>, ... ) In list context, returns a list of Color::Library::Dictionary objects (for each <dictionary_id> passed in In scalar context, returns a hash of Color::Library::Dictionary objects mapping a dictionary id to a dictionary When called without arguments, the method will return all dictionaries $color = Color::Library->color( <query> ) Returns a Color::Library::Color object found via <query> A query can be any of the following: color name A color name is like "blue" or "bleached-almond" color title A color title is like "Dark Green-Teal" color id A color id is in the form of <dictionary_id>:<color_name>, for example: "x11:azure1" color( <query>, <query>, ... ) In list context, returns a list of Color::Library::Color objects corresponding to each <query> In scalar context, just returns the first <query> color( <dictionaries>, <query>, ... ) If an array reference is passed as the first argument, then this indicates that the array is a list of dictionary ids to search through (in order): # Search in the svg and x11 dictionaries for a match my $blue = Color::Library->color([qw/svg x11/], "blue"); # Will not find "aquamarine1" in the svg dictionary, so it will try the x11 dictionary my $aquamarine1 = Color::Library->color([qw/svg x11/], "aquamarine1"); $color = Color::Library->colors $color = Color::Library->colour $color = Color::Library->colours All are aliases for the above color method ABOUT
This package was inspired by Graphics::ColorNames, and covers much of the same ground. However, I found the Graphics::ColorNames interface difficult to use. I also wanted to list colors directly in the perldoc, which this package does. SEE ALSO
Graphics::ColorNames AUTHOR
Robert Krimen <robertkrimen@gmail.com> COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Robert Krimen. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2011-12-07 Color::Library(3pm)
All times are GMT -4. The time now is 12:29 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy