[Splashy-devel] My Tests.
Tim Dijkstra
newsuser at famdijkstra.org
Mon Feb 19 21:39:18 CET 2007
On Sat, 17 Feb 2007 05:37:02 -0500
Luis <lemsx1 at gmail.com> wrote:
> And I was right, the splashy_main.c from tags/0.2.2 and the one in trunk are
> not in sync ;-)
>
> if (g_ascii_strncasecmp (basename (argv[0]), "splashy_chvt", 12) ==
> 0)
> {
> char *c = argv[1];
> for (c = argv[1]; *c != '\0'; c++)
> if (!isdigit (*c))
> {
> g_printerr ("%s\n", USAGE);
> return 1;
> }
> /*
> * behave like chvt
> */
> splashy_chvt (atoi (argv[1]));
> return 0;
> } else {
> /* go to an unused tty */
> int vt_fd = open ("/dev/tty8", O_RDWR);
> switch_console(8, vt_fd);
> close (vt_fd);
> }
>
> Tim,
> is there a reason why we should not do this in splashy_main.c ? Diff
> tags/0.2.2/src/splashy_main.c (or branches/0.2.x/src/splashy_main.c for that
> matter) against the same file in trunk/src/splashy_main.c to see stuff that
> is missing:
No, seems OK with me to switch to a different vt, a few comments
however. I seems that switch_console is very similar to splashy_chvt,
except that switch_console store the old vt number. I don't see any
code however to switch back to this vt.
I'll try to find some time to look a bit deeper into this issue. I
vaguely remember some options in directfb. Don't commit this just yet.
Unless you're very confident it fixes our issues of course;)
grts Tim
More information about the Splashy-devel
mailing list