Subject: misc/32135: termcap entry for wsvt25 wrong (colors)
To: None <misc-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Pavel Cahyna <pcah8322@artax.karlin.mff.cuni.cz>
List: netbsd-bugs
Date: 11/21/2005 10:00:00
>Number:         32135
>Category:       misc
>Synopsis:       termcap entry for wsvt25 wrong (colors)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 21 10:00:00 +0000 2005
>Originator:     Pavel Cahyna
>Release:        NetBSD 3.0_BETA
>Organization:
	
>Environment:
System: NetBSD beta 3.0_BETA NetBSD 3.0_BETA (BETA) #4: Fri Oct 7 21:20:07 CEST 2005 root@beta:/usr/src/sys/arch/alpha/compile/BETA alpha
Architecture: alpha
Machine: alpha
>Description:
wscons have only 8 colors implemented, but the termcap entry claims it
can do 16 colors. The escape sequences to set "high" colors are in
fact silently ignored, causing weird effects in color-using programs
like lynx, mc or mutt. Also, the NC capability is wrong - bright
colored text is displayed fine.
>How-To-Repeat:
lynx www.netbsd.org/Misc/query-pr.html
press down-arrow until on the "Retrieve" button. Press up-arrow
once. The text from the status line will disappear except one single paren.
>Fix:
--- /usr/src/share/termcap/termcap.src	2005-07-05 17:37:51.000000000 +0200
+++ /usr/share/misc/termcap	2005-11-18 23:24:54.000000000 +0100
@@ -932,7 +932,7 @@
 # These are micro-minimal and probably need to be redone for real
 # after the manner of the pcvt entries.
 wsvt25|NetBSD wscons in 25 line DEC VT220 mode:\
-	:Co#16:NC#32:pa#256:it#8:ms:ut:\
+	:Co#8:pa#64:it#8:ms:ut:\
 	:@7=\E[8~:is=\E[r\E[25;1H:\
 	:k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~:k5=\E[15~:k6=\E[17~:\
 	:k7=\E[18~:k8=\E[19~:k9=\E[20~:k;=\E[21~:kh=\E[7~:F1=\E[23~:F2=\E[24~:\