Term::Table::Util(3pm) Perl Programmers Reference Guide Term::Table::Util(3pm)

# [NAME](#NAME)

Term::Table::Util - Utilities for Term::Table.

# [DESCRIPTION](#DESCRIPTION)

This package exports some tools used by Term::Table.

# [EXPORTS](#EXPORTS)

## [CONSTANTS](#CONSTANTS)

$bool = USE\_GCS

True if Unicode::GCString is installed.

$bool = USE\_TERM\_READKEY

True if Term::ReadKey is installed.

## [UTILITIES](#UTILITIES)

$width = **term\_size()**

Get the width of the terminal.

If the $TABLE\_TERM\_SIZE environment variable is set then that value will be returned.

This will default to 80 if there is no good way to get the size, or if the size is unreasonably small.

If Term::ReadKey is installed it will be used.

$width = uni\_length($string)

Get the width (in columns) of the specified string. When Unicode::GCString is installed this will work on unicode strings, otherwise it will just use length($string).

# [SOURCE](#SOURCE)

The source code repository for Term-Table can be found at *http://github.com/exodist/Term-Table/*.

# [MAINTAINERS](#MAINTAINERS)

[Chad Granum &lt;exodist@cpan.org&gt;](#Chad)

# [AUTHORS](#AUTHORS)

[Chad Granum &lt;exodist@cpan.org&gt;](#Chad~2)

# [COPYRIGHT](#COPYRIGHT)

Copyright 2016 Chad Granum &lt;exodist@cpan.org&gt;.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See *http://dev.perl.org/licenses/*

2026-10-26 perl v5.44.0

---

Document: Term::Table::Util(3pm) from perl 5.44.0-r3 (Chainguard OS)
Source: https://github.com/Perl/perl5.git
