Updated emit to expose terminal name for debugging