From owner-freebsd-questions@FreeBSD.ORG Thu Jul 14 11:46:22 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D2BA616A41F for ; Thu, 14 Jul 2005 11:46:22 +0000 (GMT) (envelope-from glenn@antimatter.net) Received: from cobalt.antimatter.net (cobalt.antimatter.net [69.55.224.239]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C1C643D48 for ; Thu, 14 Jul 2005 11:46:22 +0000 (GMT) (envelope-from glenn@antimatter.net) Received: from glenn-mobile.antimatter.net (cpe-66-27-86-22.san.res.rr.com [66.27.86.22]) (authenticated bits=0) by cobalt.antimatter.net (8.13.4/8.13.4) with ESMTP id j6EBkHga031820 (version=TLSv1/SSLv3 cipher=DES-CBC3-SHA bits=168 verify=NO); Thu, 14 Jul 2005 04:46:18 -0700 Message-Id: <6.1.0.6.2.20050714043946.12570cc0@cobalt.antimatter.net> X-Sender: lists@cobalt.antimatter.net X-Mailer: QUALCOMM Windows Eudora Version 6.1.0.6 Date: Thu, 14 Jul 2005 04:43:32 -0700 To: Doug Lee , freebsd-questions@freebsd.org From: Glenn Dawson In-Reply-To: <20050714110919.GB77560@kirk.dlee.org> References: <20050714110919.GB77560@kirk.dlee.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: Subject: Re: Left/right arrow and backspace translation confusion X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jul 2005 11:46:23 -0000 At 04:09 AM 7/14/2005, Doug Lee wrote: >This one is making me feel dumb...I've been using FreeBSD for at least >six years but I can't seem to figure this out... > >I have two FreeBSD systems running 4.10/4.11 (these problems have >plagued me through several versions though). On one system, arrows >and backspace work as expected, but on the other, left/right arrows in >vi cause havock (extra characters and a switch from command to insert >mode), and backspace in Lynx, Mutt, etc., backs up but leaves >characters intact instead of clearing them. I have verified that the >following are identical on both systems: > >- termcap (/etc symlink and /usr/share/misc/termcap and termcap.db). >- ~/.exrc. >- stty settings at run time and as set in ~/.login (I use tcsh). >- .screenrc (I also use screen 4.00.02 on both systems). >- /usr/local/etc/screenrc Check TERM in the environment of a shell that's inside screen. It should be 'screen'. If it's not, or there's no entry for screen in termcap you'll have exactly the problem you are seeing. -Glenn >I have also tried connecting to each system directly, via a serial >cable and via a Telnet client; and also connecting to each system >through an ssh session on the other one, inside a Screen session. >The results are always the same: On one system, keys work as >expected, but on the other, they always work in the same wrong way. > >Actually, I find that the problem only occurs when I'm inside a Screen >session on the troublesome system. In other words, all variations >above work properly if I'm not in Screen on the troublesome system >(even if I'm connected to it through a Screen session running ssh on >the other system), but all above variations involving my being in a >Screen session on the troublesome system cause the problem. > >In case it helps, here's sort of a truth table, where s2 is the >troublesome system: > >Serial to s1: ok >Serial to s1 screen session: ok >Serial to s2: ok >Serial to s2 screen session: problem > >Telnet to s1: ok >Telnet to s1 screen session: ok >Telnet to s2: ok >Telnet to s2 screen session: problem > >Serial or Telnet through s1 screen session to s2: ok >Serial or Telnet through s1 screen session to s2 screen session: problem >Serial or Telnet through s2 screen session to s1: ok >Serial or Telnet through s2 screen session to s1 screen session: ok! > > >Any help will be most appreciated. Please Cc me with replies. I feel >like I'm missing something very basic here... > > >-- >Doug Lee dgl@dlee.org http://www.dlee.org >BART Group doug@bartsite.com http://www.bartsite.com >"While they were saying among themselves it cannot be done, it was >done." --Helen Keller >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"