Skip to content

Commit

Permalink
[PATCH] Set the vga cursor even when hidden
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Samuel Thibault authored and Linus Torvalds committed Nov 5, 2005
1 parent 70d9d82 commit 88dcb6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/video/console/vgacon.c
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,8 @@ static void vgacon_cursor(struct vc_data *c, int mode)
vgacon_scrolldelta(c, 0);
switch (mode) {
case CM_ERASE:
write_vga(14, (vga_vram_end - vga_vram_base - 1) / 2);
write_vga(14, (c->vc_pos - vga_vram_base) / 2);
vgacon_set_cursor_size(c->vc_x, 31, 30);
break;

case CM_MOVE:
Expand Down

0 comments on commit 88dcb6c

Please sign in to comment.