On Aug 07, 08 12:18:53 -0400, Mark Eichin wrote:
"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
This may work, if the screen does not get resized while it is running.
I have my screen session inside an xterm, and resize frequently.
environment variables would still reflect the old value after a resize.
Rather unportably between Unixes:
eval $(resize)
resize requires having a terminal type that actually does xterm-style
answerback, which as at best a "maybe".
When run from within screen, we guarantee you that xterm-style
answerback is honored. Screen is an xterm-compatible device.