Bug 55146

Summary: [PATCH] The termcap entry for screen is old
Product: Base System Reporter: Juha-Matti Tilli <juhis>
Component: miscAssignee: Andrey A. Chernov <ache>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.0-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Juha-Matti Tilli 2003-08-01 14:50:18 UTC
The termcap entry for screen is old and does not have end key.

Fix: Use the termcap entry that comes with screen.

Here is a patch for version 1.132 of termcap.src:
How-To-Repeat: 
% screen
% ssh localhost
% less somefile

The end key does not work in less and vim.

Screen sets the correct termcap entry in TERMCAP environment variable. But when
you connect to some machine with ssh, TERMCAP is not preserved and the old
entry in /usr/share/misc/termcap is used instead.
Comment 1 Peter Pentchev freebsd_committer freebsd_triage 2003-08-05 08:04:06 UTC
Responsible Changed
From-To: freebsd-bugs->ache

Over to our de-facto termcap maintainer. 
The patch in the PR looks good to me, and it does indeed fix 
the *very* annoying problem with the End key in vi-lookalikes.
Comment 2 Andrey A. Chernov freebsd_committer freebsd_triage 2003-08-05 09:06:54 UTC
State Changed
From-To: open->patched

Committed into -current
Comment 3 Jens Schweikhardt freebsd_committer freebsd_triage 2004-03-20 09:58:38 UTC
State Changed
From-To: patched->closed

Committed to RELENG_4 with latest catch-up to CURRENT. Thanks!