Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.069.528 Times

Tk::TextANSIColor 0.15

Company: Tim Jenness
Date Added: November 02, 2013  |  Visits: 383

Tk::TextANSIColor

Report Broken Link
Printer Friendly Version


Product Homepage
Download (31 downloads)



SYNOPSIS ^<br /><br /> use Tk::TextANSIColor;<br /><br /> $wid = $mw->TextANSIColor(?options,...?);<br /><br /> $wid->insert($pos, $string, ?taglist, ?string, ?taglist);<br /> $string_with_escape_codes = $wid->getansi('0.0','end');<br /><br /> use Term::ANSIColor; <br /> $red = color('red'); # Retrieve color codes<br /> $bold = color('bold');<br /> $wid->insert('end', "$red red text $bold with bold\n");<br /><br />DESCRIPTION ^<br /><br />This widget extends the capabilities of the standard Tk::Text widget by adding support for ANSI color escape codes. When these escape codes are detected they are replaced by equivalent tags.<br /><br />This widget was developed to solve the problem associated with driving a scrolling status display on a GUI as well as a status display going to an Xterm without having to know whether an xterm or Tk window is receiving the status information. Mainly used in conjunction with a tied filehandle:<br /><br /> $text = $MW->TextANSIColor->pack;<br /> tie *TEXT, "Tk::TextANSIColor", $text;<br /><br /> $info = colored("Some information\n", 'red');<br /><br /> # Print information to all filehandles<br /> print TEXT $info<br /> print STDOUT $info<br /><br />Currently the Term::ANSIColor module is required in order to decode the escape codes (and probably to generate them in the first place).<br />METHODS ^<br /><br />The following methods are available in addition to those described in the documentation for Tk::Text:<br /><br />getansi<br /><br /> $widget->getansi(index1, ?index2?)<br /><br /> Similar to the standard get method for Tk::Text widgets, except it returns a range of characters from the text with the ANSI escape-codes embedded. This allows one to insert a string containing ANSI escape-codes into the widget, manipulate them, and fetch them back from the widget with the escape codes intact. The return value will be all the characters in the text starting with the one whose index is index1 and ending just before the one whose index is index2 (the character at index2 will not be returned). If index2 is omitted then the single character at index1 is returned. If there are no characters in the specified range (e.g. index1 is past the end of the file or index2 is less than or equal to index1) then an empty string is returned. If the specified range contains embedded windows, no information about them is included in the returned string. Use the standard get method to fetch the string without ANSI escape-codes.<br /><br />TAGS ^<br /><br />This widget uses the following tags internally:<br /><br /> ANSIbd - bold<br /> ANSIul - underline<br /> ANSIfgCOL - foreground color<br /> ANSIbgCOL - background color<br /><br />where COL can be one of black, red, green, yellow, blue, magenta, cyan or white.<br /><br />If required, the tags can be altered after the widget is created by using the tagConfigure() method. e.g.:<br /><br /> $widget->tagConfigure('ANSIfgred', -foreground => 'blue');<br /><br />in order to make 'red' appear 'blue'.

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Character Characters Codes Color Display Escape Index Information Method Print Range Red Returned Standard Status String Textansicolor Tk Widget
Users rating: 0/10

License: Freeware Size: 10.24 KB
USER REVIEWS
More Reviews or Write Review


TK::TEXTANSICOLOR RELATED
Networking  -  WoW-Character-Display 1.12.1
Basic features: * New: Now with support for 3D Armory flash model viewer! Show your character like he look in World of Warcraft! * Displays armory informations for multiple World of Warcraft (WoW) characters in posts, pages and in the sidebar...
10 KB  
Networking  -  Index Authors page 1.0
With this plugin, you will be able to display an index with all your authorss, sort alphabeticaly. The shortcode is [authorsindex].Options are: *ul => the class of you ul element (default = iapAlpha) *li => the class of you li element (default =...
10 KB  
Networking  -  Index tag page 1.2
With this plugin, you will be able to display an index with all your tags, sort alphabeticaly. The shortcode is [indextag nb=XX ul=YY li=ZZ letter=LL menu=1/0]. * XX is the number of tag that you want to display * YY is the class of the ul if you...
10 KB  
Networking  -  Business Block Widget 1.3
Create widgets to display business contact information. This is not a contact manager as business information is stored in each widget. * Business name and address * Up to three business phone numbers * Link to business web site and contact form...
10 KB  
Utilities  -  Rdio Current Track Status 0.7
Display current track information from Rdio for Mac as your Adium status.
20.48 KB  
MS Office Add-Ins  -  Widget Travel Wallet 1.05 Beta
Widget Travel Wallet is an AIR/Flex application to display your trip information. Install the app and just enter the reservation number of your trip and your last name. Widget Travel Wallet will display your trip information including...
788.48 KB  
Multi-Purpose Audio Players  -  Stamp Free ID3 Tag Editor 2.38
Stamp Free ID3 Tag Editor allows you to add or change the internal file information associated with an audio file. Software applications such as WavePad Audio Editor and portable music devices such as IPods read and display ID3 tag information and...
449.12 KB  
Utilities  -  DHE Drive Info 3.2.449
DHE Drive Info is a handy and reliable utility designed to display essential HDD information. It shows HDD (intern or extern) and USB-Stick information: IDENTIFY_DEVICE, Type, Size, Partitions, S.M.A.R.T. Values, S.M.A.R.T. Logs,Self-Tests,...
 
Networking  -  EasyQR 1.0.1
This widget allow you to display your contact information (or other such as sms to, email to, note, MEcard and etc) in qr code form.This widget works by displaying a qrcode which was defined by blogger to put contact information. Get qr contact...
10 KB  
Modules  -  Extended Blogroll 1.1.5
This WordPress Widget allows you to display the recent posts of your blogroll links via RSS Feeds as a sidebar widget or via shortcode [blogroll] in any post or article on every position you want to. The Plugin works without javascript and without...
71.68 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB