mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-09 01:56:21 +00:00
11 lines
332 B
Diff
11 lines
332 B
Diff
+++ 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));
|