diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-01-24 19:32:08 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-01-29 01:55:40 -0500 |
commit | 88867e3d0b7eea256c1cd432b0a3c7a21e8edf07 (patch) | |
tree | fb27b916e4ffd00f5cdafd690982d5fbeb7670f2 /drivers/tty | |
parent | 327b882d3bcc1fba82dbd39b5cf5a838c81218e2 (diff) |
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>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/vt/vt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c index 4462d167900c..12210dab9ab1 100644 --- a/drivers/tty/vt/vt.c +++ b/drivers/tty/vt/vt.c | |||
@@ -4250,6 +4250,7 @@ unsigned short *screen_pos(struct vc_data *vc, int w_offset, int viewed) | |||
4250 | { | 4250 | { |
4251 | return screenpos(vc, 2 * w_offset, viewed); | 4251 | return screenpos(vc, 2 * w_offset, viewed); |
4252 | } | 4252 | } |
4253 | EXPORT_SYMBOL_GPL(screen_pos); | ||
4253 | 4254 | ||
4254 | void getconsxy(struct vc_data *vc, unsigned char *p) | 4255 | void getconsxy(struct vc_data *vc, unsigned char *p) |
4255 | { | 4256 | { |