#define FRAMES_PER_SECOND 50
#endif
+static int console_fd;
+
static bool
hide_cursor (void)
{
0, 0, width, height,
data, opacity);
ply_frame_buffer_unpause_updates (buffer);
+
+ if (time > 60.0)
+ ioctl (console_fd, KDSETMODE, KD_TEXT);
}
static void
return exit_code;
}
- //ioctl (1, KDSETMODE, KD_GRAPHICS);
+ console_fd = open ("/dev/tty0", O_RDWR);
+ ioctl (console_fd, KDSETMODE, KD_GRAPHICS);
+ daemon (false, false);
signal (SIGINT, exit);
signal (SIGTERM, on_death);