09-03-2015
Could you please post how you solved it? Future people reading this topic for help may want to know.
This User Gave Thanks to Corona688 For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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
Hi
I am running a script (which compares two directory contents) for which I am getting an output of 70 pages in which few pages are blank so I was able to delete those blank lines.
But I also want to delete the headers present for each page. can any one help me by providing the code... (1 Reply)
Discussion started by: raj_thota
1 Replies
3. UNIX for Dummies Questions & Answers
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
4. Shell Programming and Scripting
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 (2 Replies)
Discussion started by: s123.radha
2 Replies
5. Shell Programming and Scripting
hi all -
first, huge thanks to anyone who might be able to help me out with this. it's fairly esoteric, but it seems like there has to be an answer for me...
* the environment:
mac os x 10.5.x server
communigate pro (mail server)
bash script (read on)
* the brief:
my script is... (5 Replies)
Discussion started by: fearboy
5 Replies
6. Shell Programming and Scripting
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
7. Shell Programming and Scripting
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. UNIX for Dummies Questions & Answers
I'm trying to pick up some Unix SysAdmin skills on my own outside of work through the use of the "Unix and Linux System Administrators Handbook." I've found the exercises to be very beneficial, until I came to this.... "What path did the email take? To Whom was it addressed, and to whom was it... (0 Replies)
Discussion started by: ksmarine1980
0 Replies
9. Shell Programming and Scripting
Hello scripting geeks,
I am new to scripting and facing some issues in writing the logic of the script. Request your kind help here
Actually when i run a command i get o/p as below
o/p :
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
these are hex values i guess...now i want to... (15 Replies)
Discussion started by: kulvant29
15 Replies
10. Shell Programming and Scripting
Hi,
I have a test script where I am trying to make a line color in RED. It works when I execute the command from command line but when I try to send the output of the script via mailx it will not show me the color and instead show this output:
Command to send script output to email:
... (1 Reply)
Discussion started by: tkhan9
1 Replies
LEARN ABOUT OSX
chatwidget
chatwidget(n) Composite widget for chat applications chatwidget(n)
__________________________________________________________________________________________________________________________________________________
NAME
chatwidget - Provides a multi-paned view suitable for display of chat room or irc channel information
SYNOPSIS
package require Tk 8.5
package require chatwidget ?1.0.0?
::chatwidget::chatwidget path ?options?
$widget topic command args
$widget name nick args
$widget message text args
$widget hook command args
$widget names args
$widget entry args
$widget chat args
_________________________________________________________________
DESCRIPTION
This is a composite widget designed to simplify the construction of chat applications. The widget contains display areas for chat messages,
user names and topic and an entry area. It automatically handles colourization of messages per nick and manages nick completion. A system
of hooks permit the application author to adjust display features. The main chat display area may be split for use displaying history or
for searching.
The widget is made up of a number of text widget and panedwindow widgets so that the size of each part of the display may be adjusted by
the user. All the text widgets may be accessed via widget passthrough commands if fine adjustment is required. The topic and names sections
can also be hidden if desired.
COMMANDS
::chatwidget::chatwidget path ?options?
Create a new chatwidget using the Tk window id path. Any options provided are currently passed directly to the main chat text wid-
get.
WIDGET COMMANDS
$widget topic command args
The chat widget can display a topic string, for instance the topic or name given to a multi-user chatroom or irc channel.
show Enable display of the topic.
hide Disable display of the topic
set topic
Set the topic text to topic.
$widget name nick args
Control the names and tags associated with names.
list ?-full?
Returns a list of all the user names from the names view. If ?-full? is given then the list returned is a list of lists where
each sublist is made up of the nick followed by any options that have been set on this nick entry. This may be used to exam-
ine any application specific options that may be applied to a nick when using the add command.
add nick ?options?
delete nick
$widget message text args
Add messages to the display. options are -nick, -time, -type, -mark -tags
$widget hook command args
Manage hooks. add (message, post names_group, names_nick, chatstate), remove, run
$widget names args
Passthrough to the name display text widget. See the text widget manual for all available commands. The chatwidget provides two
additional commands show and hide which are used to control the display of this element in the widget.
$widget entry args
Passthrough to the entry text widget. See the text widget manual for all available commands.
$widget chat args
Passthrough to the chat text widget. See the text widget manual for all available commands.
EXAMPLE
chatwidget::chatwidget .chat
proc speak {w msg} {$w message $msg -nick user}
pack .chat -side top -fill both -expand 1
A more extensive example is available by examining the code for the picoirc program in the tclapps repository which ties the tcllib picoirc
package to this chatwidget package to create a simple irc client.
SEE ALSO
text(n)
KEYWORDS
chat, chatwidget, composite widget, irc, mega-widget, widget
chatwidget 1.0.0 chatwidget(n)