02-21-2002
This works fine for me in ksh:
echo ^[[33mhello^[[37m
displays the word "hello" in yellow text. To get the "^[" sequence you have to hit ctrl-v, then escape.
The numbers control the color codes. Search previous postings for a list of the different color values. I have posted them in the past.
9 More Discussions You Might Find Interesting
1. Post Here to Contact Site Administrators and Moderators
Any chance you might change the icon's that indicate New/No New Posts in the forum. For those who suffer colour blindness of varrying degrees it has become a bit of a problem (myself included) with the new colour scheme.
Cheers,
Cameron (4 Replies)
Discussion started by: Cameron
4 Replies
2. Shell Programming and Scripting
Can i add colours to bourne Script ? (22 Replies)
Discussion started by: XXXXXXXXXX
22 Replies
3. UNIX for Advanced & Expert Users
Hi,
I need to set the background colors for cygwin console, when I do ssh to production boxes.
This should be done through commands..
Please suggest me asap.
Thanks in advance. (3 Replies)
Discussion started by: praveen_b744
3 Replies
4. Solaris
Can any one tell me how to change the screen colors of the screen when connected unix using putty. I tryed setting from colors but it's not happening (2 Replies)
Discussion started by: svenkatareddy
2 Replies
5. Shell Programming and Scripting
Hi all,
In my script output, I want to print a line with blue colour, if the condition is satisfied, otherwise it should print with red colour. Can anyone please help me on the same requirment.
Thank You.
Regards,
Raghu. (1 Reply)
Discussion started by: raghu.iv85
1 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I am using vnc to connect to a solaris box. When a terminal is created, the default background is white. And when I use "vim" editor, I am able to get the syntax colours and all.
But I want a black background in the terminal. So I started the xterm with the following option, xterm -bg... (0 Replies)
Discussion started by: ahamed101
0 Replies
7. Shell Programming and Scripting
Hi,
I have set the following piece of code in .vimrc file.
================================================
if has("terminfo")
let &t_Co=16
let &t_AB="\<Esc>
=================================================
unable to understand the significance of certain things. This sets the colour... (4 Replies)
Discussion started by: rac
4 Replies
8. HP-UX
Hi all,
This is my first ever posting, so please be gentle with me :)
I'm trying to write a script in HP-UX which outputs text in different colours, but although I can get the script to output different colours to the screen, I can't get it to write different colours to a file. Take the... (4 Replies)
Discussion started by: neilharvey
4 Replies
9. UNIX for Dummies Questions & Answers
Hi all - just started using Linux Mint 17 and I need to change the Foreground & Background Colours for the Terminal, my eyesight is not what it used to be many years ago, so any help would be much appreciated.
Regards
Malcolm (6 Replies)
Discussion started by: electrocad
6 Replies
LEARN ABOUT DEBIAN
convert::color::cmyk
Convert::Color::CMYK(3pm) User Contributed Perl Documentation Convert::Color::CMYK(3pm)
NAME
"Convert::Color::CMYK" - a color value represented as cyan/magenta/yellow/key
SYNOPSIS
Directly:
use Convert::Color::CMYK;
my $red = Convert::Color::CMYK->new( 0, 1, 1, 0 );
# Can also parse strings
my $pink = Convert::Color::CMYK->new( '0,0.3,0.3,0' );
Via Convert::Color:
use Convert::Color;
my $cyan = Convert::Color->new( 'cmyk:1,0,0,0' );
DESCRIPTION
Objects in this class represent a color in CMYK space, as a set of four floating-point values in the range 0 to 1.
CONSTRUCTOR
$color = Convert::Color::CMYK->new( $cyan, $magenta, $yellow, $key )
Returns a new object to represent the set of values given. These values should be floating-point numbers between 0 and 1. Values outside of
this range will be clamped.
$color = Convert::Color::CMYK->new( $string )
Parses $string for values, and construct a new object similar to the above three-argument form. The string should be in the form
cyan,magenta,yellow,key
containing the three floating-point values in decimal notation.
METHODS
$c = $color->cyan
$m = $color->magenta
$y = $color->yellow
$k = $color->key
Accessors for the four components of the color.
$k = $color->black
An alias to "key"
( $cyan, $magenta, $yellow, $key ) = $color->cmyk
Returns the individual cyan, magenta, yellow and key components of the color value.
SEE ALSO
o Convert::Color - color space conversions
o Convert::Color::CMY - a color value represented as cyan/magenta/yellow
AUTHOR
Paul Evans <leonerd@leonerd.org.uk>
perl v5.12.3 2011-06-15 Convert::Color::CMYK(3pm)