From owner-freebsd-bugs@FreeBSD.ORG Sat Feb 28 17:00:09 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DBCF31065670 for ; Sat, 28 Feb 2009 17:00:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B5FF88FC1B for ; Sat, 28 Feb 2009 17:00:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n1SH09BK055674 for ; Sat, 28 Feb 2009 17:00:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n1SH09bW055673; Sat, 28 Feb 2009 17:00:09 GMT (envelope-from gnats) Resent-Date: Sat, 28 Feb 2009 17:00:09 GMT Resent-Message-Id: <200902281700.n1SH09bW055673@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Timur I. Bakeyev" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E1DDC1065670 for ; Sat, 28 Feb 2009 16:50:09 +0000 (UTC) (envelope-from timur@com.bat.ru) Received: from mail.bat.ru (dzokonda.xs4all.nl [194.109.164.75]) by mx1.freebsd.org (Postfix) with ESMTP id 758538FC16 for ; Sat, 28 Feb 2009 16:50:09 +0000 (UTC) (envelope-from timur@com.bat.ru) Received: from timur.home.bat.ru ([192.168.0.4] verified) by mail.bat.ru (CommuniGate Pro SMTP 4.2.7) with ESMTP-TLS id 2930010 for FreeBSD-gnats-submit@freebsd.org; Sat, 28 Feb 2009 02:52:11 +0100 Received: (from timur@localhost) by timur.home.bat.ru (8.14.1/8.14.1/Submit) id n1S1kXAd059713 for FreeBSD-gnats-submit@freebsd.org; Sat, 28 Feb 2009 02:46:33 +0100 (CET) (envelope-from timur) Message-Id: <20090228014633.GA59706@com.bat.ru> Date: Sat, 28 Feb 2009 02:46:33 +0100 From: "Timur I. Bakeyev" To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: misc/132199: Errors in the "screen" terminal description termcap X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Timur I. Bakeyev" List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Feb 2009 17:00:10 -0000 >Number: 132199 >Category: misc >Synopsis: Errors in the "screen" terminal description termcap >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Feb 28 17:00:09 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Timur I. Bakeyev >Release: FreeBSD 7.1-STABLE amd64 >Organization: Blinck Int. >Environment: System: FreeBSD build7.bob.blinck.net 7.1-STABLE FreeBSD 7.1-STABLE #0: Thu Feb 5 18:43:26 UTC 2009 root@build7.bob.blinck.net:/usr/obj/usr/src/sys/BASE amd64 >Description: In ncurses applications, namely MC with TERM=screen 'End' button doesn't produce any effect. >How-To-Repeat: Compile latest MC from the ports with ncurses and run it under 'screen'. Press 'End' button - nothing happens, you can't teach MC this button either. >Fix: I thought about it as some bug in ncurses, until I came across: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=92215 Date: Fri, 30 Mar 2001 16:48:13 UTC Severity: normal Found in versions 5.2.20010318-1, 5.2.20020112a-8 > The problem is that kll is defined to be the same value as > kend, and (apparently) ncurses checks kll before kend... Although, it is related to the terminfo, apparently, our termcap was generated from the same source, as it contains: SC|screen|VT 100/ANSI X3.64 virtual terminal:\ .... :kh=\E[1~:kI=\E[2~:kD=\E[3~:kH=\E[4~:@7=\E[4~:kP=\E[5~:\ Where: key_ll kll kH lower-left key (home down) key_end kend @7 end key I'd suggest to use the same approach as Debian used, as kH seems close to non-existing, when End key is quite frequent and usefull. With regards, Timur. >Release-Note: >Audit-Trail: >Unformatted: