From owner-freebsd-questions@FreeBSD.ORG Fri Aug 24 06:26:36 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3B919106564A for ; Fri, 24 Aug 2012 06:26:36 +0000 (UTC) (envelope-from lars@noos.larseighner.com) Received: from emailserver2.asdf456.com (emailserver2.asdf456.com [72.18.207.139]) by mx1.freebsd.org (Postfix) with SMTP id F253A8FC08 for ; Fri, 24 Aug 2012 06:26:35 +0000 (UTC) Received: (qmail 7731 invoked by uid 0); 24 Aug 2012 06:19:52 -0000 Received: by simscan 1.4.0 ppid: 7720, pid: 7730, t: 0.2851s scanners:none Received: from unknown (HELO noos.larseighner.com) (71.20.75.102) by emailserver2.asdf456.com with SMTP; Thu, 23 Aug 2012 23:19:52 -0700 Received: by noos.larseighner.com (nbSMTP-1.00) for uid 1001 lars@noos.larseighner.com; Fri, 24 Aug 2012 01:18:25 -0500 (CDT) Date: Fri, 24 Aug 2012 01:18:23 -0500 (CDT) From: Lars Eighner X-X-Sender: lars@noos.larseighner.com To: freebsd-questions@freebsd.org Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Subject: Does 9.0 honor TERM settings 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: Fri, 24 Aug 2012 06:26:36 -0000 Does 9.0 honor TERM settings? It appears to me it does not. Although I set TERM=cons25l1 in .profile (running bash) and have verified that it is set to that value with SET, it appears to me that the function keys are mapped to weird xterm-like strings instead of their ANSI values (example: F7 = E[18~ not E[S). I cannot figure out how to enter ^[ in rc.conf using keychange or kbdcontrol -f, but after some experimentation it appears keychange does not alter the function keys at a low enough level. (Besides the fact that altering some 50-odd keys with keychange seems like it cannot be the right answer.) Termcap seems to be in order. cons25l1 tc's cons25w, and cons25w seems to have the correct ANSI values for the function keys. So howcome if TERM=cons25l1 is set, the keyboard produces weird xterm-like strings? -- Lars Eighner http://www.larseighner.com/index.html 8800 N IH35 APT 1191 AUSTIN TX 78753-5266