Term::Table::Util(3p)

Term::Table::Util3p

Utilities for term::table.

Overview

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

Exports

Constants

$bool = USE_GCS

True if Unicode::GCString is installed.

$bool = USE_TERM_READKEY

True if Term::ReadKey is installed.

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

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

Maintainers

Chad Granum <[email protected]>

Releases

5 releases since OpenBSD 7.7; the text changed 2 times.

  1. 7.7–7.8
  2. 7.9
  3. 8.0

Authors

Chad Granum <[email protected]>

From man 8.0-current-20261101 in OpenBSD 8.0-current (2026-11-01). Parsed by carta from the page's man source.