Subject: misc/1750: termcap file has wrong pcvt codes
To: None <>
From: Brian C. Grayson <>
List: netbsd-bugs
Date: 11/10/1995 17:00:32
>Number:         1750
>Category:       misc
>Synopsis:       termcap in -current has old pcvt codes for SF, SR, ...
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    misc-bug-people (Misc Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 10 18:20:01 1995
>Originator:     Brian C. Grayson
Grad student, ECE Department, UT, Austin TX
>Release:        (problem is in -current as of Nov. 10)
System: NetBSD marvin 1.1_ALPHA NetBSD 1.1_ALPHA (MARVIN) #2: Thu Nov 9 10:10:29 CST 1995 chase@marvin:/a/orac/home/orac/src/sys/arch/i386/compile/MARVIN i386


        The pcvt termcap entry in /usr/src/share/termcap/termcap.{src,db}
	is not up-to-date.  Most noticeably, the SF, SR, sf, and sr codes
	are incorrect for pcvt 3.32, which is in -current.

	The README for pcvt has the correct termcap entries, with a note
	that they need to be added to the system termcap database,
	but apparently this has not been done in the NetBSD-current
	distribution at


        On a virtual console with term=pcvt25, use /usr/bin/vi (vim
	doesn't use the faulty SF/SR entries.  I don't know how, but
	somehow it's smarter than vi) to edit a file with more than 25
	lines, and try using ^E and ^Y.  These commands use the SR and SF
	capabilities, and hence don't function as expected -- the display
	doesn't scroll at all.


	I asked the termcap maintainer (Eric S. Raymond) to add the pcvt*
	entries into the latest termcap (9.11.5), which is now available
	(or via ftp as, so
	the fix is:

        Get a new termcap (version 9.11.5) from the termcap maintainer, put
	it in /usr/src/share/termcap/termcap.src, recreate termcap.db, and
	run 'make' to install them into /usr/share/misc. 

	Eric Raymond did not add the pcvt*h entries:
	  >Note, however, that I am not carrying the pseudo-HP entries;
	  >ncurses doesn't know about and cannot use that Xs flag.

	This is over my head.  However, it means that the /etc/ttys line
	that specifies 'type pcvt25h' for the ttyv? lines needs to be
	changed to pcvt25.  Hopefully, that's the extent of everything!