Download Arbitrary Command Output Colourer 0 7 1 - Arbitrary Command Output Colourer 0 7 1 Description, Arbitrary Command Output Colourer 0 7 1 Reviews
Contact
 


 

Download

 
Download Now (43K)
GPL (GNU General Public License)
Downloads till now: 6
 
 

Quick search

 



 

Rate this software

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

No. Votes

0

 

Linux

Archiving , Backup , Benchmarks , Boot , Clustering and Distributed Net, Clustering and Distributed Networks , Console Fonts, Diagnostics, Emulators , Filesystems , Hardware , Installer/Setup , Logging , Monitoring , Networking , Operating Systems , Operating Systems Kernels, Operating Systems Linux Distri, Operating Systems Other, Recovery , Shells , Software Distribution , System Administration ,

Windows

Mac

Mobile

Drivers

Scripts - DHTML

Scripts - DHTML (new)

Web Developer Blog

Web Developer Blog (new)

Scripts and Applications

Ajax
ASP
ASP.NET
C and C++
CFML
CGI and Perl
Flash
Java
JavaScript
PHP
Python
XML

Arbitrary Command Output Colourer 0.7.1

 

Details

Size: 43K
Last Update: 2008-04-19 23:33:00
OS Support: Linux
License/Program Type: GPL (GNU General Public License)
Publisher: Ian Macdonald
Price:$0.00
Description:

Arbitrary Command Output Colourer 0.7.1 is console fonts software developed by Ian Macdonald.
acoc is a regular-expression based colour formatter for programs that display output on the command-line. It works as a wrapper around the target program, executing it and capturing the stdout stream. Optionally, stderr can be redirected to stdout, so that it, too, can be manipulated. acoc then applies matching rules to patterns in the output and applies colours to those matches.



Ever wondered why the output of your favourite UNIX/Linux commands is still displayed in black-and-white after all these years?

Ever had to search back through your scroll-buffer in search of gcc errors and salient information to tell you what went wrong with your program's execution?

acoc is a regular expression based colour formatter for programs that display output on the command-line. It works as a wrapper around the target program, executing it and capturing the stdout stream. Optionally, stderr can be redirected to stdout, so that it, too, can be manipulated.

acoc then applies matching rules to patterns in the output and applies colour sets to those matches. A picture is worth a thousand words, so look at the sample screenshots in the next section.

Configuration

The configuration files used by the program are /usr/local/etc/acoc.conf, /etc/acoc.conf and ~/acoc.conf. One or more of these must exist. A sample /etc/acoc.conf is supplied with some example matching rules.

Blank lines and those that begin with a are ignored.

A program configuration stanza is introduced as follows:

[program_spec]

The square brackets are mandatory literal characters. Alternatively, the @ symbol may be used, to allow [ and ] to retain their usual semantics in program specs comprising a regular expression:

@program_spec@

program_spec is defined as one or more instances of the following component, separated by a comma:

invocation[/flags]

where invocation consists of the program's name (not including its directory path component) plus any initial arguments.

Alternatively, invocation may be a regular expression, which can be used to match multiple programs and/or command-line arguments in arbitrary order. Regular expressions are automatically anchored to the beginning of the command line.

flags, if present, is separated from 'invocation' by a slash and consists of one or more of the following characters:

a
continue to attempt to find matching patterns after the first match has been found. By default, acoc will stop processing a line and display it after the first match has been found.
e
redirect the target program's stderr to stdout, allowing it, too, to be matched by rules
p
allocate a pseudo-terminal in which to run the target program

Some programs, such as ls(1), behave differently when their stdout is not connected to a tty. Use of this option will fool the target program into believing it is outputting to a tty, rather than a pipe to acoc.

Use of this flag requires Masahiro Tomita's Ruby/TPty library to be installed. Otherwise, the flag is silently ignored.

Note that the pseudo-terminal communication enabled by this flag is one-way only, from the target program to acoc. It is thus not possible to use acoc in combination with interactive programs, such as the interactive Ruby interpreter (irb).
t
apply colour formatting even if stdout is not a tty. By default, formatting is not applied if the output stream is not attached to a terminal.

Here's an example of a line that introduces a configuration stanza:

[rpm/ae,rpmbuild/ae]

which says to apply the following rules to the rpm and rpmbuild commands, attempt to apply all matching rules, and also apply those rules to the programs' stderr stream.

Another example:

[ls/p]

This says to allocate a pseudo-terminal to ls(1), fooling it into believing that its output is being sent to a regular terminal instead of a pipe to acoc.

With this flag, the effect will be this:

$ ls
file1 file2 file3 file4 file5 file6

Without it, ls will detect that its stdout is connected to a pipe and behave accordingly:

$ ls
file1
file2
file3
file4
file5
file6

A third example:

[diff/t,rcsdiff/t,cvs diff/t,p4 diff/t]

This says that the rules that follow should be applied to all invocations of diff(1) and rcsdiff(1), as well as those invocations of cvs(1) and p4 that are followed by the argument diff.

Additionally, colouring should be applied even when stdout is not connected to a tty, so that the colours still show up when the output is displayed in a pager such as more(1) or less(1).

Yet another example:

/ps -.(e.f|f.e)/

In this example, the ps(1) command will be matched, as long as the e and f options are both passed in either order.

An alternative way to write the above spec is:

@ps -.[ef].[ef]@

There are two things to note in this alternative:

1. @ has been used to delimit the spec, because [ and ] are required for the character lists in the regular expression.
2. While this form is less specific (in that it allows matches against duplicated command line options), it makes for considerably shorter specs if one wishes to test for the inclusion of a set of more than 2 or 3 command line flags. In the original form, one must manually list all of the possible permutations, which is equal to x! (factorial). For 3 command line flags, this is 6 permutations; for 4, it is 24, etc.

Here's one more example:

[tcpdump/r]

If this were placed in ~/.acoc.conf, it would remove any matching rules that had been installed for the diff command by either /etc/acoc.conf or /usr/local/etc/acoc.conf.

After defining the program name and operational flags, matching rules can be defined. These take the following form:

/regex/[flags] colour_spec

where regex is a Ruby-compatible regular expression. The delimiting / characters can be any character, as long as that character is not present in the regular expression itself. flags, if present, consists of one or more characters from the following list:

g
find every match on the line, not just the first. When using this flag, 'regex' should not include parentheses.

colour_spec is defined as a comma-separated list of one or more colour_groups, which are defined as a plus-separated (+) list of one or more of the following:

black
blink
blue
bold
clear
concealed
cyan
dark
green
italic
magenta
negative
on_black
on_blue
on_cyan
on_green
on_magenta
on_red
on_white
on_yellow
rapid_blink
red
reset
strikethrough
underline
underscore
white
yellow

Examples of a colour_group are white+bold, black+on_white, etc. A complete colour_spec might look like this:

red+bold,white,yellow+bold,black+on_green

Except when using the g flag, each component of the regex that you wish to colour should be placed in parentheses. Text outside parentheses will be used for matching, but will not be coloured.

For example, examine the following:

/^(d+)foos(w+)/

This will match a line that starts with more or one digits, followed by the string foo and any amount of white space, followed by one or more word characters. However, only the initial group of digits and the group of word characters will be coloured. The string foo and the white space that follows it will be used for matching, but will not be coloured.

Separated from the regex by white space is the colour_spec. Usually, you will include in this as many colours (separated by commas) as you have parenthesised expressions in the regex. However, it's also permissible to have fewer. If, for example, you have three parenthesised expressions in the regex, but only two colours listed in the colour_spec, then the second colour will be used for colouring both the second and third matches.

If you have more colours listed in the colour_spec than there are parenthesised expressions in the regex, the surplus colours are ignored.

When using the g flag to perform a global match on the line, you may list as many colours as you want. The same rules apply here. If there are more matches than colours, the remaining matches will be coloured using the last colour listed. Surplus colours are ignored.

Requirements:
Term::ANSIColor module
Arbitrary Command Output Colourer 0.7.1 supports english interface languages and works with Linux.

Downloading Arbitrary Command Output Colourer 0.7.1 will take several seconds if you use fast ADSL connection.

Leave a comment




(optional)

What is 7-3?




0 comments


Add to

 Del.icio.us   Digg It   Furl   YahooMyWeb   Blinklist
 

Arbitrary Command Output Colourer 0.7.1 Version History

Product Date Added
Arbitrary Command Output Colourer 0.7.1 2008-04-19 23:33:00


Related Software

ASN RADIUS Admin 0.5
From category: Networking
ASN RADIUS Admin 0.5 is networking software developed by Dawid Ci&281;&380;arkiewicz. ARA&039;s goal is to create simple but convenient solution for managing the FreeRADIUS server. ARA is...
Mandriva Linux
From category: Operating-Systems
Mandriva Linux is the operating system of choice for users keen on all things advanced....
Box Backup
From category: Backup
Box Backup 0.10 is backup software developed by Ben Summers. Box Backup is an FREE, completely automatic on-line backup system for UNIX. Here are some key features of \"Box Backup\": All backe...
anyfs-tools 0.84.10
From category: Recovery
anyfs-tools 0.84.10 is recovery software developed by Nikolaj Krivchenkov. anyfs-tools is a unix-way toolset for recovering and converting filesystems. SYNOPSIS build_it [-qvV] direct...
DemoLinux
From category: Operating-Systems-Linux-Distri
DemoLinux 3.01 is operating systems linux distri software developed by DemoLinux. The DemoLinux CD allow to use Linux without installation, disk partitioning or any other complex manipulation that...
BrazilFW
From category: Networking
BrazilFW 2.29.4 is networking software developed by Claudio Roberto. Brazilfw is a mini-distribution designed for setting up network utility services such as Internet connection sharing, firewallin...
bLogbook 01
From category: Shells
bLogbook 01 is shells software developed by Fernand Boudreau. bLogbook is a shell script that makes it easy to keep notes. bLogbook project uses the file system to manage a hierarchical set of \"fo...
bonnieplusplus
From category: Benchmarks
bonnie++ is a hard drive/filesystem benchmark program....
Asterisk::LDAP 0.6.0
From category: System-Administration
Asterisk::LDAP 0.6.0 is system administration software developed by Ben Klang. Asterisk::LDAP is a perl module for generating Asterisk 1.0 compatible configuration files from an LDAP directory tree...
CTShaper
From category: System-Administration
CTShaper 1.1.1 is system administration software developed by Carlos Rodrigues. CTShaper is a shell-script that helps setting up a traffic shaper, using Linux\'s built-in network QoS (Quality of Se...
E2fsprogs
From category: Filesystems
E2fsprogs 1.38 is filesystems software developed by Theodore Ts\'o. The Ext2 Filesystem Utilities (e2fsprogs) contain all of the standard utilities for creating, fixing, configuring , and debugging...
Firewall Admin
From category: Networking
Firewall Admin 0.4 is networking software developed by Vinicius M. de Souza. Firewall Admin is not a firewall generator. This tool allows network administrators to manage iptables rules from anywhe...
AUSTRUMI 1.3.1
From category: Operating-Systems-Linux-Distri
AUSTRUMI 1.3.1 is operating systems linux distri software developed by AUSTRUMI Team. AUSTRUMI is a bootable Live CD Linux distribution with a business card size (50MB). Imagine the ability to boot...
bonnie++
From category: Benchmarks
bonnie++ 1.03a is benchmarks software developed by Russell Coker. Bonnie++ is a benchmark suite that is aimed at performing a number of simple tests of hard drive and file system performance....
Anemon Dhcp Server 0.1a
From category: Networking
Anemon Dhcp Server 0.1a is networking software developed by Mathieu Ignacio. Anemon Dhcp Server\'s goal is to create an implementation of the DHCP protocol under GPL and a lot of stuff around to f...
 

Top Downloads

 
1. Audio Catalog
2. Realtek Sound Card AC97 A
3. Microsoft ActiveSync
4. Mercury VD56UC2
5. Intel PRO/Wireless 2200BG/2915/3945/3965ABG
6. Canon PIXMA iP1000 Printer Driver
7. Realtek ALC/ 262/ 265/ 268/ 660/ 861/ 880/ 882/ 883/ 885/ 888 Audio
8. Genius VideoCAM EYE
9. WinXMedia DVD Ripper
10. Gigabyte GA-7S748 Bios F
11. MobiSystems® Mail
12. Code Chameleon
13. Discovery
14. 15 Classic Slide Puzzle
15. Dreamer's Dictionary
16. BidderBlock
17. Herbal Remedies
18. Power CD+G to iPod Karaoke Converter
19. Layer 7 Packet Classifier for Linux Userspace
20. Diabetes Exercise Log

DownloadTube Editor Reviews

 
1. NetShareWatcher
NetShareWatcher is a smart network security improvement soft...
2. Recovery for Oracle
Recovery for Oracle is a comprehensive tool designed to help...
3. Fix My Registry
The Windows Registry is a crucial part of your PC\'s operati...
4. VeryDOC DWG to Image Converter
VeryDOC DWG to Image Converter is a powerful utility that al...
5. Free AVI to M4A Converter
Doremisoft Free AVI to M4A Converter is an easy-to-use media...
6. Replay Media Splitter
Replay Media Splitter is a really simple and easy to use aud...
7. Instant Invoice n Cashbook 2007
Instant Invoice n Cashbook 2007 is a smart and powerful invo...
8. Data Doctor Recovery Digital Camera
Data Doctor Recovery Digital Camera is a Point and Shoot cam...
9. Free AVI to MPG Converter
Doremisoft Free AVI to MPG Converter is an easiy-to-use medi...
10. 1st Disk Drive Protector
Protect your PC from the abusive use of removable media with...

Software Reviews Full List



Recent Blog Posts

 
1. Easy Publishing of WordPress Blogs RSS Feeds With FeedBurner
RSS (Really Simple Syndication) Feeds are a modern form of c...
2. Automatic Installation of Joomla! on Windows With JoomlaPC
A convenient alternative for the development or testing of J...
3. An Introduction To Joomla! Templates Creation With Adobe Dreamweaver CS3
Joomla! is a content management system and framework with a ...
4. Two New Firefox Stable Releases Are Available For Free Download: Firefox 3.0.2 and Firefox 2.0.0.17
Recently, two Firefox stable releases for Windows, Mac OS, a...
5. How To Deploy A Linux LiveCD on Windows Using MobaLiveCD
There are many ways to test a certain Linux distribution on ...
6. Ever Needed A Free Video Converter And You Just Couldn’t Find It? Here’s Our Suggestion.
With so many different video (or even audio) converters arou...
7. Top 101 Most Downloaded Windows Software: Free Demo Movies and Download Links
We often have to decide if we should download the latest v...
8. A New Powerful Virus Could Affect Millions of WordPress Blogs
The WordPress blogging platform powers millions of web...
9. Google Chrome – It’s Finally Here. Will A Revolution Begin?
First, it was the rumors. Then, Google announced it official...
10. An Amazing Free Document Processing Software: LyX
The documents management task could be difficult in absence ...

Last 20 Scripts

 
1. Cookie Crumbs
Cookie Crumbs JavaScript creates a breadcrumb type trail of
2. Loupe.js
Loupe.js script allows you to add a loupe (magnifier) to ima
3. Reflex.js
Reflex.js script allows you to add a Cover Flow™ like effect
4. Edge.js
Edge.js Javascript adds individual masks to images on web pa
5. Curl.js
Curl.js is a simple to install and use JavaScript that adds
6. Busy.js
Busy.js script permits you to add/remove loading indicators
7. Mapper.js
Mapper.js automatically ads an area highlighting to image ma
8. Filmed.js
Filmed.js script allows you to add film strip and shadows to
9. Slided.js
Slided.js script adds slide frames and shadows to images on
10. Shiftzoom.js
Shiftzoom.js script permits you to add pan and zoom function
11. Instant.js
Instant.js script allows you to add an instant picture effec
12. Glossy.js
Glossy.js script allows you to add corners, shading and shad
13. Corner.js
Corner.js script helps you to create custom corners to image
14. Sphere.js
Sphere.js script allows you to add a spherical picture effec
15. Bevel.js
Bevel.js script allows you to add bevels (and also shading,
16. jQuery Lightbox Plugin
jQuery Lightbox Plugin provides a way to display an image on
17. jQuery Tag Suggestion Plugin
jQuery Tag Suggestion plugin helps you create a subset of ta
18. jClock
jClock is a jQuery clock plugin that allows you to display c
19. jqac
jqac is a jQuery plugin that extends jQuery namespace with a
20. YUI Based Lightbox
YUI Based Lightbox is a lightweight implementation of a ligh