screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting screen size into the env?


From: Mark Eichin
Subject: Re: Getting screen size into the env?
Date: Thu, 07 Aug 2008 12:18:53 -0400
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

"Thomas Adam" <address@hidden> writes:

> 2008/8/7 Micah Cowan <address@hidden>:
>> However, if you use bash, it will set _shell_ variables, COLUMNS and
>> LINES, automatically. This isn't something that screen does, but bash.
>> Bash does _not_ export these by default, however; you'll need to do
>>
>>  $ export COLUMNS LINES
>
> Rather unportably between Unixes:
>
> eval $(resize)

resize requires having a terminal type that actually does xterm-style
answerback, which as at best a "maybe".

What you *really* want is the output of stty:
$ stty -a |grep rows
speed 38400 baud; rows 56; columns 144; line = 0;

because it's a property of the tty, and changed there - putting the
values in the environment is an old and not-really-workable hack.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]