aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2005-11-05 16:19:50 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-05 16:30:03 -0500
commit88dcb6c4113afe93a6c4891ec43bef6a17c83155 (patch)
tree3c1624b7cae2b861272a89d5502a80b46db7bbba /drivers/video
parent70d9d825e0a5a78ec1dacaaaf5c72ff5b0206fab (diff)
[PATCH] Set the vga cursor even when hidden
Some visually impaired people use hardware devices which directly read the vga screen. When newt for instance asks to hide the cursor for better visual aspect, the kernel puts the vga cursor out of the screen, so that the cursor position can't be read by the hardware device. This is a great loss for such people. Here is a patch which uses the same technique as CUR_NONE for hiding the cursor while still moving it. Mario, you should apply it to the speakup kernel for access floppies asap. I'll submit a 2.4 patch too. Signed-off-by: samuel.thibault@ens-lyon.org Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/console/vgacon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/console/vgacon.c b/drivers/video/console/vgacon.c
index 56cd199605f4..274f90543e32 100644
--- a/drivers/video/console/vgacon.c
+++ b/drivers/video/console/vgacon.c
@@ -448,7 +448,8 @@ static void vgacon_cursor(struct vc_data *c, int mode)
448 vgacon_scrolldelta(c, 0); 448 vgacon_scrolldelta(c, 0);
449 switch (mode) { 449 switch (mode) {
450 case CM_ERASE: 450 case CM_ERASE:
451 write_vga(14, (vga_vram_end - vga_vram_base - 1) / 2); 451 write_vga(14, (c->vc_pos - vga_vram_base) / 2);
452 vgacon_set_cursor_size(c->vc_x, 31, 30);
452 break; 453 break;
453 454
454 case CM_MOVE: 455 case CM_MOVE: