removed cross-platform incompatible reference to termios