refactor(terminal) rm listener