Subject: lib/15057: wscons termcap entries don't define Home/End
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dave@dtsp.co.nz>
List: netbsd-bugs
Date: 12/27/2001 06:45:45
>Number:         15057
>Category:       lib
>Synopsis:       wscons termcap entries don't define Home/End
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 26 22:34:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     David Sainty
>Release:        NetBSD 1.5X
>Organization:
Dynamic Technology Services and Products Ltd (NZ)
>Environment:
System: NetBSD tequila.dave.dtsp.co.nz 1.5X NetBSD 1.5X (TEQUILA) #0: Sat Dec 1 17:24:03 NZDT 2001 dave@tequila.dave.dtsp.co.nz:/vol/tequila/userD/NetBSD-tequila/src/sys/arch/i386/compile/TEQUILA i386
Architecture: i386
Machine: i386
>Description:
	The wscons termcap entry does not define the sequence that maps to
	Home/End keys.  To make matters worse, the sequences are also somewhat
	unusual for these keys.

>How-To-Repeat:
	Use a program that needs them (in my case zsh key bindings)...

>Fix:
--- src/share/termcap/termcap.src.orig	Sat Dec  8 11:56:52 2001
+++ src/share/termcap/termcap.src	Thu Dec 27 19:29:09 2001
@@ -908,12 +908,12 @@
 wsvt25|NetBSD wscons in 25 line DEC VT220 mode:\
 	:Co#16:NC#32:pa#256:ut:ms:\
 	:AB=\E[4%dm:AF=\E[3%dm:op=\E[m:\
-	:co#80:li#25:tc=vt220:
+	:co#80:li#25:kh=\E[7~:@7=\E[8~:tc=vt220:
 
 wsvt25m|NetBSD wscons in 25 line DEC VT220 mode with Meta:\
 	:Co#16:NC#32:pa#256:ut:ms:\
 	:AB=\E[4%dm:AF=\E[3%dm:op=\E[m:\
-	:co#80:li#25:km:tc=vt220:
+	:co#80:li#25:km:kh=\E[7~:@7=\E[8~:tc=vt220:
 
 #### FreeBSD console entries
 #

>Release-Note:
>Audit-Trail:
>Unformatted: