blob: 5ab794b2cfb34ae0790f86362aba063ce5de208c (
plain)
1
2
3
4
5
6
7
8
9
10
|
+++ 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));
|