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

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

Serving Software Downloads in 976 Categories, Downloaded 31.592.295 Times

Tk::TextANSIColor 0.15

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


Report Broken Link
Printer Friendly Version

Product Homepage
Download (16 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
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  
Utilities  -  Char Info 1.0.0
Char Info is a Utility that allows you to view Unicode Character information. For each Unicode Characters (code point), Char Info lists information such as its Unicode Symbol, its display character, its description, its binary, hex and...
102.4 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  
Utilities  -  ExecTag QR code reader 1.3
QR code reader Scan QR codes and instantly connect to websites, collect and store contacts, display geo location information on maps and much more... One of the first QR code scanners on the market, the ExecTag QR code reader is...
716.8 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,...
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  
Linux Software  -  SLAX 6.0+
Slax is a modern, portable, small and fast Linux operating system with a modular approach and outstanding design. Despite its small size, Slax provides a wide collection of pre-installed software for daily use, including a well organized graphical...
190 KB  
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by, it is used to describe information about an application such as the name and...
327.68 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  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB