From owner-freebsd-questions@FreeBSD.ORG Thu Jul 14 11:09: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 91CDC16A41C for ; Thu, 14 Jul 2005 11:09:22 +0000 (GMT) (envelope-from dgl@kirk.dlee.org) Received: from sccrmhc14.comcast.net (sccrmhc14.comcast.net [204.127.202.59]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2DB8A43D48 for ; Thu, 14 Jul 2005 11:09:21 +0000 (GMT) (envelope-from dgl@kirk.dlee.org) Received: from kirk.dlee.org ([69.143.16.144]) by comcast.net (sccrmhc14) with ESMTP id <2005071411092101400oges4e>; Thu, 14 Jul 2005 11:09:21 +0000 Received: from kirk.dlee.org (dgl@localhost.dlee.org [127.0.0.1]) by kirk.dlee.org (8.12.11/8.12.11) with ESMTP id j6EB9JeA011637 for ; Thu, 14 Jul 2005 07:09:20 -0400 (EDT) (envelope-from dgl@kirk.dlee.org) Received: (from dgl@localhost) by kirk.dlee.org (8.12.11/8.12.11/Submit) id j6EB9JjL011636 for freebsd-questions@freebsd.org; Thu, 14 Jul 2005 07:09:19 -0400 (EDT) (envelope-from dgl) Date: Thu, 14 Jul 2005 07:09:19 -0400 From: Doug Lee To: freebsd-questions@freebsd.org Message-ID: <20050714110919.GB77560@kirk.dlee.org> Mail-Followup-To: Doug Lee , freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Organization: BART Group User-Agent: Mutt/1.5.9i Subject: 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:09:22 -0000 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 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