aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Serpell <daniel.serpell@gmail.com>2017-05-01 20:11:40 -0300
committerDaniel Serpell <daniel.serpell@gmail.com>2017-05-01 20:11:40 -0300
commit59f3c11ea48f5a2f3cee108a1cb8878f5649988d (patch)
tree3c676c642c864da35562b1d32c71927fd804f622
parentf8c67734ad205a83e7dd179279f6e541ae497a44 (diff)
downloademu2-59f3c11ea48f5a2f3cee108a1cb8878f5649988d.tar.gz
Remove old debug leftover, fixes terminal redirection.
-rw-r--r--src/video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video.c b/src/video.c
index ac434b8..b2eeb41 100644
--- a/src/video.c
+++ b/src/video.c
@@ -134,7 +134,7 @@ static void exit_video(void)
static void init_video(void)
{
debug(debug_video, "starting video emulation.\n");
- int tty_fd = dup(1); //open("/dev/tty", O_NOCTTY | O_WRONLY);
+ int tty_fd = open("/dev/tty", O_NOCTTY | O_WRONLY);
if(tty_fd < 0)
{
print_error("error at open TTY, %s\n", strerror(errno));
Un proyecto texto-plano.xyz