0001
0002
0003
0004
0005
0006
0007
0008 #ifndef _LINUX_SELECTION_H_
0009 #define _LINUX_SELECTION_H_
0010
0011 #include <linux/tiocl.h>
0012 #include <linux/vt_buffer.h>
0013
0014 struct tty_struct;
0015 struct vc_data;
0016
0017 extern void clear_selection(void);
0018 extern int set_selection_user(const struct tiocl_selection __user *sel,
0019 struct tty_struct *tty);
0020 extern int set_selection_kernel(struct tiocl_selection *v,
0021 struct tty_struct *tty);
0022 extern int paste_selection(struct tty_struct *tty);
0023 extern int sel_loadlut(char __user *p);
0024 extern int mouse_reporting(void);
0025 extern void mouse_report(struct tty_struct * tty, int butt, int mrx, int mry);
0026
0027 bool vc_is_sel(struct vc_data *vc);
0028
0029 extern int console_blanked;
0030
0031 extern const unsigned char color_table[];
0032 extern unsigned char default_red[];
0033 extern unsigned char default_grn[];
0034 extern unsigned char default_blu[];
0035
0036 extern unsigned short *screen_pos(const struct vc_data *vc, int w_offset,
0037 bool viewed);
0038 extern u16 screen_glyph(const struct vc_data *vc, int offset);
0039 extern u32 screen_glyph_unicode(const struct vc_data *vc, int offset);
0040 extern void complement_pos(struct vc_data *vc, int offset);
0041 extern void invert_screen(struct vc_data *vc, int offset, int count, bool viewed);
0042
0043 extern void getconsxy(const struct vc_data *vc, unsigned char xy[static 2]);
0044 extern void putconsxy(struct vc_data *vc, unsigned char xy[static const 2]);
0045
0046 extern u16 vcs_scr_readw(const struct vc_data *vc, const u16 *org);
0047 extern void vcs_scr_writew(struct vc_data *vc, u16 val, u16 *org);
0048 extern void vcs_scr_updated(struct vc_data *vc);
0049
0050 extern int vc_uniscr_check(struct vc_data *vc);
0051 extern void vc_uniscr_copy_line(const struct vc_data *vc, void *dest,
0052 bool viewed,
0053 unsigned int row, unsigned int col,
0054 unsigned int nr);
0055
0056 #endif