01-24-2011
Each TERM has its own control sequences to change colors -- one of the reasons they invented HTML. You could do it in HTML and browse it with lynx. Otherwise, research the control strings of your term. Does PERL have something like curses to deal with terminal variations?
5 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have the file contents:
Start,End,Req,Resp
12:39,12:40,4,5
The sting to be matched is: Req and Resp.
parsefile("Req,Resp");
Here is the code.
sub parsefile ($)
{
$header=shift; (2 Replies)
Discussion started by: vanitham
2 Replies
2. Shell Programming and Scripting
Here is the csv file file i have:
ServerName, IPAddress, Gateway, Notes
ServerA, 192.168.1.100, 192.168.1.1, This is some server
ServerB, 192.168.1.110, 192.168.1.1, This is some other server
ServerC, 192.168.1.120, 192.168.1.1, This is some other other server
I would like to have the... (6 Replies)
Discussion started by: Ikon
6 Replies
3. Shell Programming and Scripting
Hi, I'm wondering if anyone have tried creating a color palette or table using awk or perl using a range of values. thanks for any suggestion in advance.
0-0.1: purple
0.1-0.2: blue
0.2-0.3: green
0.3-0.4: yellow
0.4-0.5: orange
> 0.5: red
Happy holidays,:) (5 Replies)
Discussion started by: ida1215
5 Replies
4. Shell Programming and Scripting
Hi
i want to print the text in different color using perl script.
i am able to print on console(terminal).
but if i try to print the same into a file, i am not able to do
color.pl
#!/bin/usr/perl
use Term::ANSIColor;
print "This text is normal.\n";
use Term::ANSIColor qw(:constants);... (3 Replies)
Discussion started by: roopa
3 Replies
5. Shell Programming and Scripting
Hi Folks,
I have written a perl script that reads data from excel sheet(.xls) using Spreadsheet::ParseExcel module. But the problem is this module doesn't work for excel sheets with extension .xlsx.
I have gone through Spreadsheet::XLSX module with which we can read from .xlsx file directly.... (1 Reply)
Discussion started by: giridhar276
1 Replies
LEARN ABOUT DEBIAN
ansi_code
term::ansi::code(3tcl) Terminal control term::ansi::code(3tcl)
__________________________________________________________________________________________________________________________________________________
NAME
term::ansi::code - Helper for control sequences
SYNOPSIS
package require Tcl 8.4
package require term::ansi::code ?0.1?
::term::ansi::code::esc str
::term::ansi::code::escb str
::term::ansi::code::define name escape code
::term::ansi::code::const name code
_________________________________________________________________
DESCRIPTION
This package provides commands enabling the definition of control sequences in an easy manner.
::term::ansi::code::esc str
This command returns the argument string, prefixed with the ANSI escape character, "