NAME
    Term::App::Util::Size - Determine the sane terminal size (width, height)

VERSION
    This document describes version 0.001 of Term::App::Util::Size (from
    Perl distribution Term-App-Util-Size), released on 2020-06-06.

DESCRIPTION
FUNCTIONS
  term_height
    Usage:

     term_height() -> [status, msg, payload, meta]

    Try to determine the sane terminal height. First will observe the LINES
    environment variable, and use it if defined. Otherwise will try to use
    Term::Size to determine the terminal size and use the result if succeed.
    Otherwise will use the default value of 25.

    This function is not exported.

    No arguments.

    Returns an enveloped result (an array).

    First element (status) is an integer containing HTTP status code (200
    means OK, 4xx caller error, 5xx function error). Second element (msg) is
    a string containing error message, or 'OK' if status is 200. Third
    element (payload) is optional, the actual result. Fourth element (meta)
    is called result metadata and is optional, a hash that contains extra
    information.

    Return value: (any)

  term_width
    Usage:

     term_width() -> [status, msg, payload, meta]

    Try to determine the sane terminal width. First will observe the COLUMNS
    environment variable, and use it if defined. Otherwise will try to use
    Term::Size to determine the terminal size and use the result if succeed.
    Otherwise will use the default value of 80 (79 on Windows).

    This function is not exported.

    No arguments.

    Returns an enveloped result (an array).

    First element (status) is an integer containing HTTP status code (200
    means OK, 4xx caller error, 5xx function error). Second element (msg) is
    a string containing error message, or 'OK' if status is 200. Third
    element (payload) is optional, the actual result. Fourth element (meta)
    is called result metadata and is optional, a hash that contains extra
    information.

    Return value: (any)

ENVIRONMENT
  COLUMNS
  LINES
HOMEPAGE
    Please visit the project's homepage at
    <https://metacpan.org/release/Term-App-Util-Size>.

SOURCE
    Source repository is at
    <https://github.com/perlancar/perl-Term-App-Util-Size>.

BUGS
    Please report any bugs or feature requests on the bugtracker website
    <https://rt.cpan.org/Public/Dist/Display.html?Name=Term-App-Util-Size>

    When submitting a bug or request, please include a test-file or a patch
    to an existing test-file that illustrates the bug or desired feature.

SEE ALSO
    Other "Term::App::Util::*" modules.

    Term::Size

AUTHOR
    perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE
    This software is copyright (c) 2020 by perlancar@cpan.org.

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

