Add support for terminal run within an Emacs subterm