add windows hack for TTY