2 * fbmngplay - framebuffer console MNG player.
3 * (c) 2001-2002 by Stefan Reinauer, <stepan@suse.de>
5 * This program is based on mngplay, part of libmng, written and (C) by
6 * Ralph Giles <giles@ashlu.bc.ca>
8 * This program my be redistributed under the terms of the
9 * GNU General Public Licence, version 2, or at your preference,
20 #include <sys/ioctl.h>
24 int start_console
= 0;
27 int current_console(void)
32 result
= ioctl(fd
, TIOCLINUX
, &twelve
);
37 void init_consoles(void)
39 fd
=open("/dev/vc/0", O_RDWR
|O_NDELAY
);
41 fd
=open("/dev/tty0", O_RDWR
|O_NDELAY
);
43 fprintf(stderr
, "Could not open virtual terminal.\n");