Trying to get terminal to behave