Name : perl-Tk-TextANSIColor
| |
Version : 0.17
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 1.2
| Date : 2024-08-05 20:11:57
|
Group : Unspecified
| Source RPM : perl-Tk-TextANSIColor-0.17-1.2.src.rpm
|
Size : 0.02 MB
| |
Packager : (none)
| |
Summary : Tk::Text widget with support for ANSI color escape codes
|
Description :
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.
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:
$text = $MW->TextANSIColor->pack; tie *TEXT, \"Tk::TextANSIColor\", $text;
$info = colored(\"Some information\ \", \'red\');
print TEXT $info print STDOUT $info
Currently the Term::ANSIColor module is required in order to decode the escape codes (and probably to generate them in the first place).
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/openSUSE_Tumbleweed/noarch |