added tcgetattr/tcsetattr for bash