+++ emu2-master/src/keyb.c 2021-04-14 09:28:52.597237515 -0700 @@ -385,7 +385,7 @@ { if(tty_fd < 0) { - tty_fd = open("/dev/tty", O_NOCTTY | O_RDONLY); + tty_fd = open(ttyname(0), O_NOCTTY | O_RDONLY); if(tty_fd < 0) { print_error("error at open TTY, %s\n", strerror(errno));