diff options
author | Adam Borowski <kilobyte@angband.pl> | 2018-07-18 04:10:44 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-07-21 09:18:27 +0200 |
commit | 9bfdc2611d417be453c3deb7a7ef2ffc718febfa (patch) | |
tree | e3d733f3f44be5063833069d2d8f297ce6d7c2a4 /include/linux/selection.h | |
parent | df155d2d8cbfe83073bad818b26c28eb3e1a6c91 (diff) | |
download | lwn-9bfdc2611d417be453c3deb7a7ef2ffc718febfa.tar.gz lwn-9bfdc2611d417be453c3deb7a7ef2ffc718febfa.zip |
vt: selection: take screen contents from uniscr if available
This preserves whatever was written even if we can't currently display the
given glyph. Mouse paste won't corrupt any character of wcwidth() == 1
anymore.
Note that for now uniscr doesn't get allocated until something reads
/dev/vcsuN for that console, making this code dormant for most users.
Signed-off-by: Adam Borowski <kilobyte@angband.pl>
Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/selection.h')
-rw-r--r-- | include/linux/selection.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/selection.h b/include/linux/selection.h index 067d2e99c79f..a8f5b97b216f 100644 --- a/include/linux/selection.h +++ b/include/linux/selection.h @@ -32,6 +32,7 @@ extern unsigned char default_blu[]; extern unsigned short *screen_pos(struct vc_data *vc, int w_offset, int viewed); extern u16 screen_glyph(struct vc_data *vc, int offset); +extern u32 screen_glyph_unicode(struct vc_data *vc, int offset); extern void complement_pos(struct vc_data *vc, int offset); extern void invert_screen(struct vc_data *vc, int offset, int count, int shift); |