diff -Nur aalib-1.4.0-orig/src/aalinuxkbd.c aalib-1.4.0/src/aalinuxkbd.c
--- aalib-1.4.0-orig/src/aalinuxkbd.c	2001-04-26 16:37:31.000000000 +0200
+++ aalib-1.4.0/src/aalinuxkbd.c	2005-07-01 22:57:59.000000000 +0200
@@ -200,7 +200,7 @@
 static int rawmode_init(void)
 {
     if (!closed)
-	return;
+	return 1;
     mypid = getpid();
     if (tty_fd == -1) {
 	tty_fd = fileno(stdin);

