Added functions to check input from the terminal. escape_to_terminal() breaks when presented with more than one argument.