Name : perl-String-TtyLength
| |
Version : 0.30.0
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 150500.1.1
| Date : 2024-07-29 21:36:33
|
Group : Unspecified
| Source RPM : perl-String-TtyLength-0.30.0-150500.1.1.src.rpm
|
Size : 0.02 MB
| |
Packager : https://www_suse_com/
| |
Summary : Length or width of string excluding ANSI tty codes
|
Description :
This module provides two functions which tell you the length and width of a string as it will appear on a terminal (tty), excluding any ANSI escape codes.
\'tty_length\' returns the length of a string excluding any ANSI tty / terminal escape codes.
\'tty_width\' returns the number of columns on a terminal that the string will take up, also excluding any escape codes.
For non-wide characters, the functions will return the same value. But consider the following:
my $emoji = \"😄\"; my $length = tty_length($emoji); # 1 my $width = tty_width($emoji); # 2
If you\'re trying to align text in columns, then you\'ll probably want \'tty_width\'; if you just want to know the number of characters, using \'tty_length\'.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl/SLE_15_SP5/noarch |