termcap(3) is not used.
use MIN and MAX macro of <sys/params.h> if they exist.
apply indent(1) with NetBSD:/usr/share/misc/indent.pro.
wrap long lines at 79 columns