Sponsored Content
Top Forums Shell Programming and Scripting getting colored output in perl Post 302187758 by s123.radha on Tuesday 22nd of April 2008 02:26:54 AM
Old 04-22-2008
getting colored output in perl

Hello,

I am scripting in perl and I need to get my output of the "print" statement in color. Please tell me how to go ahead.

Radha
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

colored data output

Hi, I am working with HP-UX 11. I try to make an colored data output with echo. I tried the following: echo "\033]32m Red" This works perfectly in my terminal. But when I type the same at the hpterm, it does not work, the terminal just prints the complete text "\033]32m Red" without... (1 Reply)
Discussion started by: bensky
1 Replies

2. UNIX for Dummies Questions & Answers

Zshell Colored output

Hi All, is there anyway to color the output following a shell command? For instance: $cat somefile.txt Hello, I am the contents of somefile.txt I'm using zsh, with ANSI colors enabled. Thanks! (0 Replies)
Discussion started by: tolmark
0 Replies

3. Shell Programming and Scripting

Colored output in awk

Hi, Can anybody please help me how can we can we have the colored output using awk. I am writing a script in solaris platform. but its not printing the colored output. its assuming hex values as character awk -F"|" '{ print "\033 \033[1;31mabcd|efg\033[0m \033[1;31mabcd|efg\033[0m... (1 Reply)
Discussion started by: vikash_k
1 Replies

4. UNIX for Dummies Questions & Answers

How to get directories colored when doing change directory and tab

I am trying to navigate between directories using cd. However, the only way to distinguish directories now is by seeing the "/' after the directory names, which is quite inefficient. How can I make the directories look in color when typing cd and then using the tab key to list the files and... (1 Reply)
Discussion started by: genehunter
1 Replies

5. OS X (Apple)

Colored directories

I just updated to Lion and when I went to use the terminal, all the directories were black. It used to be that the directories were blue? and some things were green and then files were black. Does anyone know how to change this? I tried using: alias ls='ls -Fskb -color=auto' without success.... (2 Replies)
Discussion started by: jasonbunnell
2 Replies

6. Shell Programming and Scripting

Perl help - how to assign output of perl to variable

Hi, guys, i have a script i inherited from a coworker but i'm not perl savy. The script works but i would like it to work better. I want to run this command ./ciscomgrtest.pl -r "show version" -h hosts.router and have the script goto each router in the hosts.router file and run the command... (2 Replies)
Discussion started by: whipuras
2 Replies

7. Shell Programming and Scripting

Input file is uncolored; I want the output file to be colored on criteria

Hello, I have the following input file: auditing account: 3DTP (3dtp) ERROR: S3 bucket "aws-origin-test1.3dstage.com" has policy statement with public grant: {"Sid":"PublicReadGetObject","Effect":"Allow","Principal":{"AWS":"*"},"Action":,"Resource":} auditing region: eu-west-1 auditing... (5 Replies)
Discussion started by: ramky79
5 Replies

8. Shell Programming and Scripting

Echo a colored text with tabs

I have the line below to echo values with tab between them. The text is also colored, however, some\t does not work. The output of this one below will have the first two \t not working. echo "\033}\t$time\t$end\t$day\t$score\033 This one below will have all the \t working but will also... (4 Replies)
Discussion started by: erin00
4 Replies

9. UNIX for Dummies Questions & Answers

Script output in Email is not showing Colored headers

Hi All I am working on AIX 7.1 and I am trying to show an output that I get from "cat" a log file to email. However in email I get the below output: In the script I have defined the colors as: #!/bin/sh echo "\033 Below is the script I have created to send this output: ... (9 Replies)
Discussion started by: Bubs
9 Replies
tkvars(3)						User Contributed Perl Documentation						 tkvars(3)

NAME
tkvars - Variables used or set by Tk DESCRIPTION
The following perl variables are either set or used by Tk at various times in its execution. (For a list of variables used by perl see perlvar.) $Tk::library This variable holds the file name for a directory containing the modules related to Tk. These modules include an initialization file that is normally processed whenever a Tk application starts up, plus other files containing procedures that implement default behaviors for widgets. The initial value of $Tk::library is set when Tk is added to an interpreter; this is done by searching searching for a directory named Tk in the directory where the file Tk.pm, or the first directory Tk in @INC. The TK_LIBRARY environment variable used by Tcl/Tk is not supported by perl/Tk. Please use @INC to change where modules are searched. Note: This is Tcl remnant. With perl it makes more sense to use @INC and %INC). $Tk::patchLevel Contains a decimal integer giving the current patch level for Tk. The patch level is incremented for each new release or patch, and it uniquely identifies an official version of Tk. Note: this is Tcl remnant. With perl it makes more sense to use $Tk::VERSION described below. $Tk::strictMotif This variable is set to zero by default. If an application sets it to one, then Tk attempts to adhere as closely as possible to Motif look-and-feel standards. For example, active elements such as buttons and scrollbar sliders will not change color when the pointer passes over them. $Tk::VERSION The variable holds the current version number of the perl/Tk release in the form major.minor. Major and minor are integers. The major version number shows on which Tcl/Tk release perl/Tk is based. E.g., 402 means based on Tcls Tk 4.2. (Patchlevel of Tcls Tk are not incorporated because perl/Tk tended to be ``ahead'' of them on some fixes and behind on others. The first digest of the major version number increases in any Tk release that includes changes that are not backward compatible (i.e. whenever existing perl/Tk applications and scripts may have to change to work with the new release). The minor version depends on perl/Tk only. It uses the 'even'='stable', 'odd'='experimental' scheme that linux uses: .0xx - inherently 'alpha' .1xx - experimental 'beta' .2xx - stable .3xx - experimental .4xx - stable ... The minor version number increases with each new release of Tk, except that it resets to zero whenever the major version number changes. $Tk::version The variable holds the current version number of the Tk library in the form major.minor. Major and minor are integers. The major version number increases in any Tk release that includes changes that are not backward compatible (i.e. whenever existing Tk applications and scripts may have to change to work with the new release). The minor version number increases with each new release of Tk, except that it resets to zero whenever the major version number changes. Note: this is Tcl remnant. With perl it makes more sense to use $Tk::VERSION described above. KEYWORDS
variables, version perl v5.16.3 2014-06-10 tkvars(3)
All times are GMT -4. The time now is 01:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy