Package : perl-String-TtyLength > RPM : perl-String-TtyLength-0.20.0-1.mga8.src.rpm
Basic items
Name | perl-String-TtyLength |
Version | 0.20.0 |
Release | 1.mga8 |
URL | http://metacpan.org/release/String-TtyLength |
Group | Development/Perl |
Summary | Calculate length of string excluding ANSI tty codes |
Size | 13KB |
Arch | noarch |
License | GPLv1+ or Artistic |
Description
This module 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.
tty_length( STRING )
Takes a single string, and returns the length of the string, excluding
any escape sequences.
Note: the escape sequences could include cursor movement, so the length
returned by this function might not be the number of characters that
would be visible on screen. But
'length_of_string_excluding_escape_sequences()' was just too long.
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.
tty_length( STRING )
Takes a single string, and returns the length of the string, excluding
any escape sequences.
Note: the escape sequences could include cursor movement, so the length
returned by this function might not be the number of characters that
would be visible on screen. But
'length_of_string_excluding_escape_sequences()' was just too long.
Media information
Distribution release | Mageia 8 |
Media name | core-release |
Media arch | aarch64 |
Advanced items
Source RPM | NOT IN DATABASE ?! |
Build time | 2020-09-14 06:28:19 |
Changelog | View in Sophie |
Files | View in Sophie |
Dependencies | View in Sophie |