Issue #39 - Convert appropriate #defines to enums in term.h.