Start capturing commands when user can enter commands

terminal logging was actually catching our internal commands we ran on the container. now we start logging only when the user can type.