enable use of vis, copying code in from OpenBSD CVS