Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Nov 2014 13:37:06 +0100
From:      Willem Jan Withagen <wjw@digiware.nl>
To:        Nikos Vassiliadis <nvass@gmx.com>, Craig Rodrigues <rodrigc@FreeBSD.org>
Cc:        "freebsd-virtualization@freebsd.org" <freebsd-virtualization@freebsd.org>
Subject:   Re: cu -l /dev/nmdm not setting rows and columns
Message-ID:  <54771AF2.4020507@digiware.nl>
In-Reply-To: <547709B4.8020800@gmx.com>
References:  <CAG=rPVdfnsNpAOLUbTH2r5gufJDOg_0-yYeGVouOBx6aj0ZObw@mail.gmail.com> <54729224.3060402@freebsd.org> <CAG=rPVd1OxJJk1-AEK2yDLJWfQ4OK7NJQ9o5MkKVLX_Sb%2ByMkA@mail.gmail.com> <20141126234431.GN99957@funkthat.com> <CAG=rPVfZLTyrKMYO6H_Hv08yzpRCXnvw52JCD6twsyY85g4ewg@mail.gmail.com> <547709B4.8020800@gmx.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 27-11-2014 12:23, Nikos Vassiliadis wrote:
> On 11/27/14 02:02, Craig Rodrigues wrote:
>> On Wed, Nov 26, 2014 at 3:44 PM, John-Mark Gurney <jmg@funkthat.com>
>> wrote:
>>
>>>
>>> So, what exactly is the problem again?
>>>
>>
>> https://lists.freebsd.org/pipermail/freebsd-virtualization/2014-November/003173.html
>>
> 
> Set the correct $TERM and set also rows and columns. Something like
> this, will suffice:
> TERM=xterm; export TERM
> stty rows 80
> stty columns 80
> 
> Then the system you are connecting to, will know what to send back to
> your terminal.

And then wrap this into a piece of shell init.
for tcsh in .tcshrc, but you get the drift:

if (@`tty`@ == @/dev/ttyd0@) ( setenv TERM vt220; stty rows 60 )
if (@`tty`@ == @/dev/ttyv6@) /usr/bin/systat -vm 1
if (@`tty`@ == @/dev/ttyv7@) /usr/bin/top

Just try it once an check the tty with /usr/bin/tty

--WjW







Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54771AF2.4020507>