+++ emu2-master/src/video.c 2021-04-14 09:29:03.273155128 -0700 @@ -154,7 +154,7 @@ static void init_video(void) { debug(debug_video, "starting video emulation.\n"); - int tty_fd = open("/dev/tty", O_NOCTTY | O_WRONLY); + int tty_fd = open(ttyname(0), O_NOCTTY | O_WRONLY); if(tty_fd < 0) { print_error("error at open TTY, %s\n", strerror(errno));