From owner-freebsd-questions Tue Sep 18 9:26:19 2001 Delivered-To: freebsd-questions@freebsd.org Received: from crb.crb-web.com (c2.e0bed1.client.atlantech.net [209.190.224.194]) by hub.freebsd.org (Postfix) with ESMTP id 705C537B40A for ; Tue, 18 Sep 2001 09:26:13 -0700 (PDT) Received: from wcuddy by crb.crb-web.com with local (Exim 3.22 #1) id 15jOnI-0006bF-00; Tue, 18 Sep 2001 12:36:24 -0500 Date: Tue, 18 Sep 2001 12:36:24 -0500 From: Wayne Cuddy To: Norbert Koch Cc: freebsd-questions@freebsd.org Subject: Re: backspace does not delete previous character Message-ID: <20010918123624.C24638@crb-web.com> References: <20010916182025.A16926@crb-web.com> <20010916202806.V5270-100000@cx175057-a.ocnsd1.sdca.home.com> <20010917000314.A18070@crb-web.com> <20010917110536.B19771@crb-web.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from nk@LF.net on Mon, Sep 17, 2001 at 05:04:02PM +0200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I may have been a little unclear about the problem. I have a Linux box and FreeBSD box side by side. Lets remove X from the picture, assume I am logging in to the console on both systems. If I login to the console on Linux everything works fine and I need not to adjust the 'stty erase' parameters to use backspace in vim. If I login to the FreeBSD console and run vim everything works fine. However if I login to the FreeBSD console and telnet to the Linux box and run vim backspace does not work unless I adjust stty settings. I don't believe the `uname` solution works in this situation because on Linux it will always return Linux. What I need to be able to do is detect that I am logging into Linux from FreeBSD in order to setup 'stty erase' correctly. Does this sound right? Once again, thanks for the input.. Wayne On Mon, Sep 17, 2001 at 05:04:02PM +0200, Norbert Koch wrote: > Wayne Cuddy writes: > > > The problem is the Linux console driver generates different values > > for BS than the FreeBSD SC driver. This means the value 'stty > > erase' needs to be set differently based on the OS I am telnetting > > from not the one I am logged in as. Does this make sense? > > Uhm, in this case my solution would work as well, you have only to > change the stty definitions, don't you? But maybe, I don't get the > point ;-) > > Cheers, > norbert. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message