mirror of
https://github.com/RGBCube/serenity
synced 2025-10-17 23:12:24 +00:00
10 lines
380 B
Diff
10 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));
|