In DragonflyBSD, I need to edit /etc/rc.conf in single user mode, but
# mount -u /
# mount -a
# vi /etc/rc.conf
vi: unknown: unknown terminal type
# ee /etc/rc.conf
Error opening terminal: unknown.
# mc
The TERM environment variable is unset!
Any hints?