Emulate a terminal slightly more accurately

This allows things like top to work when you run bash.

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>