Add notion of active terminal