Bug 132166

Summary: Errors in the "screen" terminal description termcap
Product: Base System Reporter: Timur I. Bakeyev <timur>
Component: confAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 7.1-STABLE   
Hardware: Any   
OS: Any   

Description Timur I. Bakeyev freebsd_committer freebsd_triage 2009-02-27 15:00:12 UTC
In ncurses applications, namely MC with TERM=3Dscreen 'End' button
doesn't produce any effect.

Fix: 

I thought about it as some bug in ncurses, until I came across:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D92215

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 useful.

With regards,
Timur.
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.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2009-02-27 17:29:25 UTC
Responsible Changed
From-To: gnats-admin->freebsd-bugs

Attempt to recover this PR, badly mangled by email.
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2009-03-09 06:56:32 UTC
State Changed
From-To: open->closed

Superseded by conf/132199.