removed termios as it cannot be used on windows