On Tue, Nov 23, 2010 at 6:24 PM, Jochen Schulz <[email protected]> wrote:
> Camaleón:
>> On Tue, 23 Nov 2010 17:29:49 +0800, Magicloud Magiclouds wrote:
>>
>>> But I do not know how it gets the width of the screen.
>>
>> Well... gathering information about the running terminal is possible:
>>
>> s...@stt008:~$ stty -a | grep column
>> speed 38400 baud; rows 63; columns 86; line = 0;
>
> Or simply:
>
> $ echo $LINES $COLUMNS
> 31 107
>
> (Don't know whether that's terminal/shell-specific.)
>
> J.
> --
> When I get home from the supermarket I don't know what to do with all the
> plastic.
> [Agree]   [Disagree]
>                 <http://www.slowlydownward.com/NODATA/data_enter2.html>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iEYEARECAAYFAkzrlm0ACgkQ+AfZydWK2zmFuQCffCMPBm+UNBiplloViJX6vyQr
> bggAmwc3ZjH4BzZ5As0cde4Y3X9uKo23
> =Vl5v
> -----END PGP SIGNATURE-----
>
>

$COLUMNS and $LINES are not in `env`, I cannot get it within my program.

-- 
竹密岂妨流水过
山高哪阻野云飞


--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: 
http://lists.debian.org/[email protected]

Reply via email to