mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
11 lines
380 B
Diff
11 lines
380 B
Diff
+++ 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));
|