1 /* SPDX-License-Identifier: GPL-2.0 */
5 * Interface between console.c, tty_io.c, vt.c, vc_screen.c and selection.c
8 #ifndef _LINUX_SELECTION_H_
9 #define _LINUX_SELECTION_H_
11 #include <linux/tiocl.h>
12 #include <linux/vt_buffer.h>
16 extern struct vc_data
*sel_cons
;
19 extern void clear_selection(void);
20 extern int set_selection(const struct tiocl_selection __user
*sel
, struct tty_struct
*tty
);
21 extern int paste_selection(struct tty_struct
*tty
);
22 extern int sel_loadlut(char __user
*p
);
23 extern int mouse_reporting(void);
24 extern void mouse_report(struct tty_struct
* tty
, int butt
, int mrx
, int mry
);
26 extern int console_blanked
;
28 extern const unsigned char color_table
[];
29 extern unsigned char default_red
[];
30 extern unsigned char default_grn
[];
31 extern unsigned char default_blu
[];
33 extern unsigned short *screen_pos(struct vc_data
*vc
, int w_offset
, int viewed
);
34 extern u16
screen_glyph(struct vc_data
*vc
, int offset
);
35 extern void complement_pos(struct vc_data
*vc
, int offset
);
36 extern void invert_screen(struct vc_data
*vc
, int offset
, int count
, int shift
);
38 extern void getconsxy(struct vc_data
*vc
, unsigned char *p
);
39 extern void putconsxy(struct vc_data
*vc
, unsigned char *p
);
41 extern u16
vcs_scr_readw(struct vc_data
*vc
, const u16
*org
);
42 extern void vcs_scr_writew(struct vc_data
*vc
, u16 val
, u16
*org
);
43 extern void vcs_scr_updated(struct vc_data
*vc
);