Add functions to en/disable terminal output