From owner-freebsd-virtualization@FreeBSD.ORG Thu Nov 27 12:37:44 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 97087FCE; Thu, 27 Nov 2014 12:37:44 +0000 (UTC) Received: from smtp.digiware.nl (unknown [IPv6:2001:4cb8:90:ffff::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 54993D7B; Thu, 27 Nov 2014 12:37:44 +0000 (UTC) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id 421A4153418; Thu, 27 Nov 2014 13:37:32 +0100 (CET) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id I4Ea3tRjDaM5; Thu, 27 Nov 2014 13:37:04 +0100 (CET) Received: from [192.168.101.102] (vpn.ecoracks.nl [31.223.170.173]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.digiware.nl (Postfix) with ESMTPSA id A1F91153416; Thu, 27 Nov 2014 13:37:03 +0100 (CET) Message-ID: <54771AF2.4020507@digiware.nl> Date: Thu, 27 Nov 2014 13:37:06 +0100 From: Willem Jan Withagen User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Nikos Vassiliadis , Craig Rodrigues Subject: Re: cu -l /dev/nmdm not setting rows and columns References: <54729224.3060402@freebsd.org> <20141126234431.GN99957@funkthat.com> <547709B4.8020800@gmx.com> In-Reply-To: <547709B4.8020800@gmx.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Nov 2014 12:37:44 -0000 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 >> 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