Wrapper for commands

Isolate terminal from commands. This is related to #3
This just reworks the prior example.