blob: 85193aa8c1e3db14d4cbc77c4c398bc4ed94a5d0 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * selection.h
3 *
4 * Interface between console.c, tty_io.c, vt.c, vc_screen.c and selection.c
5 */
6
7#ifndef _LINUX_SELECTION_H_
8#define _LINUX_SELECTION_H_
9
10#include <linux/tiocl.h>
11#include <linux/vt_buffer.h>
12
Andrew Morton0aa42632007-08-22 14:02:01 -070013struct tty_struct;
14
Linus Torvalds1da177e2005-04-16 15:20:36 -070015extern struct vc_data *sel_cons;
Ralf Baechle120c0b62007-10-16 01:29:04 -070016struct tty_struct;
Linus Torvalds1da177e2005-04-16 15:20:36 -070017
18extern void clear_selection(void);
19extern int set_selection(const struct tiocl_selection __user *sel, struct tty_struct *tty);
20extern int paste_selection(struct tty_struct *tty);
21extern int sel_loadlut(char __user *p);
22extern int mouse_reporting(void);
23extern void mouse_report(struct tty_struct * tty, int butt, int mrx, int mry);
24
25extern int console_blanked;
26
27extern unsigned char color_table[];
28extern int default_red[];
29extern int default_grn[];
30extern int default_blu[];
31
32extern unsigned short *screen_pos(struct vc_data *vc, int w_offset, int viewed);
33extern u16 screen_glyph(struct vc_data *vc, int offset);
34extern void complement_pos(struct vc_data *vc, int offset);
35extern void invert_screen(struct vc_data *vc, int offset, int count, int shift);
36
37extern void getconsxy(struct vc_data *vc, unsigned char *p);
38extern void putconsxy(struct vc_data *vc, unsigned char *p);
39
40extern u16 vcs_scr_readw(struct vc_data *vc, const u16 *org);
41extern void vcs_scr_writew(struct vc_data *vc, u16 val, u16 *org);
Nicolas Pitre432c9ed2010-10-01 00:10:44 -040042extern void vcs_scr_updated(struct vc_data *vc);
Linus Torvalds1da177e2005-04-16 15:20:36 -070043
44#endif