Made term.terminalUI a private type
Made private some of terminal's public interface