Expose methods to set/reset terminal mode.