Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Feb 2009 02:46:33 +0100
From:      "Timur I. Bakeyev" <timur@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   misc/132199: Errors in the "screen" terminal description termcap
Message-ID:  <20090228014633.GA59706@com.bat.ru>
Resent-Message-ID: <200902281700.n1SH09bW055673@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090228014633.GA59706>