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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.03 | 0.03 | 0.03 | 0.03 | 0.03 |
| FreeBSD:14:quarterly | 0.03 | 0.03 | n/a | 0.03 | 0.03 |
| FreeBSD:15:latest | 0.03 | 0.03 | n/a | 0.03 | 0.03 |
| FreeBSD:15:quarterly | 0.03 | 0.03 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.03 | 0.03 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 1
p5-Unicode-EastAsianWidth>=12.0: textproc/p5-Unicode-EastAsianWidth
Runtime 1
p5-Unicode-EastAsianWidth>=12.0: textproc/p5-Unicode-EastAsianWidth
Test 1
p5-Test-Simple>=1.302200: devel/p5-Test-Simple
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
| File | Size | SHA256 |
|---|---|---|
| String-TtyLength-0.03.tar.gz | 10967 | 4fedaf72028511d80eb6afba523993e9aaa245d7af558345d5d4ed46e2e82ce1 |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.