add a couple hooks

allow outside access to "terminal" (only one in my case)
emit a ready event