FreeBSD Ports

textproc/p5-String-TtyLength 0.03

Calculate length of string excluding ANSI tty codes

Repository
FreeBSD ports
Maintainer
[email protected]
License
ART10, GPLv1+
Categories
textproc, perl5
Package size
11.5 KiB, 42.2 KiB installed

Description

String::TtyLength provides a single function, tty_length, which returns the length of a string excluding any ANSI tty / terminal escape codes. I.e. the number of characters that will appear on screen. This is useful if you're working out the width of columns, or aligning text.

Install

As a binary package — by origin, or by package name:

pkg install textproc/p5-String-TtyLength
pkg install p5-String-TtyLength

From the ports tree:

cd /usr/ports/textproc/p5-String-TtyLength/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-String-TtyLength>0:textproc/p5-String-TtyLength

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.030.030.030.030.03
FreeBSD:14:quarterly0.030.03n/a0.030.03
FreeBSD:15:latest0.030.03n/a0.030.03
FreeBSD:15:quarterly0.030.03n/an/an/a
FreeBSD:16:latest0.030.03n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 1

Runtime 1

Test 1

The full lists below include those, and their dependencies in turn.

All build dependencies 2
All run dependencies 2

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 2
  • %%SITE_PERL%%/String/TtyLength.pm
  • %%PERL5_MAN3%%/String::TtyLength.3.gz
distinfo 1
FileSizeSHA256
String-TtyLength-0.03.tar.gz109674fedaf72028511d80eb6afba523993e9aaa245d7af558345d5d4ed46e2e82ce1
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.