[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: LINES and COLUMNS variables are not exported
From: |
Eric Blake |
Subject: |
Re: LINES and COLUMNS variables are not exported |
Date: |
Sat, 04 Mar 2006 17:34:40 -0700 |
User-agent: |
Thunderbird 1.5 (Windows/20051201) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Thierry EXCOFFIER on 2/26/2006 8:59 AM:
>
> Description:
> LINES and COLUMNS variables are not exported,
> so applications using these variables can not
> find the screen size.
POSIX states that "Users should not need to set this variable in the
environment unless there is a specific reason to override the
implementation's default behavior, such as to display data in an area
arbitrarily smaller than the terminal or window." But if it is causing
you problems, you can simply do:
export LINES COLUMNS
before invoking your app that does not know how to query the terminal for
its normal size.
- --
Life is short - so eat dessert first!
Eric Blake ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFECjIg84KuGfSFAYARAsjIAJ0Z45aEZxmin04YxSfRS1cMT9zhjwCgnXjT
e3HtvPU/8vrwbJ0nczT0q9M=
=Ix8n
-----END PGP SIGNATURE-----