Hi, Glad to see gpm somewhat revive :) As I reported some time ago, default handlers don't work anymore with version 1.20. Could you apply the attached patch for making them work again? Samuel
--- gpm-1.20.2-broken/src/lib/liblow.c.orig 2007-05-17 01:09:32.000000000 +0200 +++ gpm-1.20.2-broken/src/lib/liblow.c 2007-05-17 01:20:39.000000000 +0200 @@ -48,6 +48,7 @@ #include "headers/gpmInt.h" #include "headers/message.h" +#include "headers/console.h" #ifndef min #define min(a,b) ((a)<(b) ? (a) : (b)) @@ -363,7 +364,7 @@ } memcpy(tty, console_name, strlen(console_name) - 1); sprintf(&tty[strlen(console_name) - 1], "%i", flag); - } else { /* use your current vc */ + } else if (flag==0) { /* use your current vc */ if (isatty(0)) tty = ttyname(0); /* stdin */ if (!tty && isatty(1)) tty = ttyname(1); /* stdout */ if (!tty && isatty(2)) tty = ttyname(2); /* stderr */ @@ -380,7 +381,8 @@ } conn->vc = atoi(&tty[strlen(console_name) - 1]); - } + } else /* a default handler -- use console */ + tty = strdup(get_console_name()); if (gpm_consolefd == -1) { if ((gpm_consolefd = open(tty, O_WRONLY)) < 0) {
_______________________________________________ gpm mailing list gpm@xxxxxxxxxxxxxx http://lists.linux.it/listinfo/gpm