[Top][All Lists]

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

Re: resize a screen on creation?

From: Andy Harrison
Subject: Re: resize a screen on creation?
Date: Thu, 4 Sep 2008 09:47:36 -0400

Hash: SHA1

On Wed, Sep 3, 2008 at 8:42 PM, Aaron Davies  wrote:
>> If you have your COLUMNS and LINES environment variables populated,
>> screen honors them.
>> I tried this in my .tcshrc file (which would be much much simpler to
>> express in your .bashrc file) and it seems to solve that annoyance
>> just fine.
> hmm. before i can see if that works for me, i think i need to solve a
> possibly related problem: my LINES and COLUMNS vars don't even make it
> into screen. i have `eval resize` near the end of my .bash_profile,
> which sets and exports them, so they should show up in any subprocess,
> right? i don't have any shell setting in my .screenrc, so screen
> should run non-login instances of my regular shell, i.e. bash w/the
> .bashrc executed, but not the .bash_profile. nonetheless, after login
> but before starting screen, i find that LINES and COLUMNS are set;
> after starting screen and checking from inside, i find that they're
> not. why are they not getting passed down?

Sorry, this important tidbit slipped my mind.  It's not screen that
honors COLUMNS and LINES, it's the shell itself.   So you need to make
sure the  snippet of code that determines LINES and COLUMNS is in your
shell's rc file on the remote host as well.  I tested it to make sure
and doing it this way works fine for me.  I didn't test bash, just
tcsh (including a very very old tcsh version 6.11.0 on one of my
boxes) and the annoyance vanishes.

- --
Andy Harrison
public key: 0x67518262

Version: GnuPG v1.4.5 (GNU/Linux)


reply via email to

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