BSD Ports

textproc/p5-String-TtyLength 0.03 DragonFly

Calculate length of string excluding ANSI tty codes

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
ART10, GPLv1+
Categories
perl5, textproc
Package size
10.9 KiB, 42.4 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.

In the other systems

SystemPortVersion
DragonFlytextproc/p5-String-TtyLength0.03
FreeBSDtextproc/p5-String-TtyLength0.03
HardenedBSDtextproc/p5-String-TtyLength0.03
GhostBSDtextproc/p5-String-TtyLength0.03

Install

Binary package:

pkg install p5-String-TtyLength

From DPorts:

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

Dependencies

Run dependencies 2