lkml.org 
[lkml]   [2003]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectBraille devices can't scrollback console
Hello,

There is no way for a braille device driven by brltty (userland root-owned
daemon) to scrollback the virtual console, the only way is to use the pc
keyboard. A very simple TIOCLINUX ioctl meets this need (tested):

diff -urN linux/drivers/char/console.c linux-scrollioctl/drivers/char/console.c
--- linux/drivers/char/console.c 2003-03-27 10:55:43.000000000 +0100
+++ linux-scrollioctl/drivers/char/console.c 2003-03-27 11:04:31.000000000 +0100
@@ -2262,6 +2262,17 @@
case 12: /* get fg_console */
ret = fg_console;
break;
+ case 13: /* scroll console */
+ {
+ int lines;
+ if (get_user(lines, (char *)arg+1)) {
+ ret = -EFAULT;
+ } else {
+ scrollfront(lines);
+ ret = 0;
+ }
+ }
+ break;
default:
ret = -EINVAL;
break;
Regards,
Samuel Thibault
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:34    [W:0.271 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site