to terminal was again to avoid conflicts with term.h. term.h is a moving namespace violation.
XXX: need to rename key_ too.