Added basic termios support