Run commands in a (new) terminal?

I would like to have the ability to run some commands in a new terminal. For example, when building or testing, it’s useful to be able to see the output, and in some cases interact with it.

Nova already has a fairly functional terminal widget.

So what I’d like to be able to do is arrange to run my Process attached to a newly created terminal widget. The simplest API I’d propose for this is to add a new property to the options, say “terminal”, that if true creates a new terminal and runs the command in it.

The terminal should persist until the user closes it. (Some commands might be short-lived.). Also, the environment variables and especially $TERM should be set appropriately.