1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-10-18 00:22:06 +00:00
serenity/Ports/emu2/patches/keyb.patch
2021-04-14 21:48:55 +02:00

10 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));