Staging: speakup: fix read scrolled-back VT
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 25 Jan 2016 00:32:08 +0000 (01:32 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Jan 2016 06:55:40 +0000 (22:55 -0800)
commit88867e3d0b7eea256c1cd432b0a3c7a21e8edf07
treefb27b916e4ffd00f5cdafd690982d5fbeb7670f2
parent327b882d3bcc1fba82dbd39b5cf5a838c81218e2
Staging: speakup: fix read scrolled-back VT

Previously, speakup would always read the non-scrolled part of the VT,
even when the VT is scrolled back with shift-page.  This patch makes
vt.c export screen_pos so that speakup can use it to properly access
the content of the scrolled-back VT.

This was tested with both vgacon and fbcon.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Reviewed-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/main.c
drivers/tty/vt/vt.c