4 * Interface between console.c, tty_io.c, vt.c, vc_screen.c and selection.c
7 #ifndef _LINUX_SELECTION_H_
8 #define _LINUX_SELECTION_H_
10 #include <linux/tiocl.h>
11 #include <linux/vt_buffer.h>
15 extern void clear_selection(void);
16 extern int set_selection(const struct tiocl_selection
*sel
, struct tty_struct
*tty
, int user
);
17 extern int paste_selection(struct tty_struct
*tty
);
18 extern int sel_loadlut(const unsigned long arg
);
19 extern int mouse_reporting(void);
20 extern void mouse_report(struct tty_struct
* tty
, int butt
, int mrx
, int mry
);
22 #define video_num_columns (vc_cons[currcons].d->vc_cols)
23 #define video_num_lines (vc_cons[currcons].d->vc_rows)
24 #define video_size_row (vc_cons[currcons].d->vc_size_row)
25 #define can_do_color (vc_cons[currcons].d->vc_can_do_color)
27 extern int console_blanked
;
29 extern unsigned char color_table
[];
30 extern int default_red
[];
31 extern int default_grn
[];
32 extern int default_blu
[];
34 extern unsigned short *screen_pos(int currcons
, int w_offset
, int viewed
);
35 extern u16
screen_glyph(int currcons
, int offset
);
36 extern void complement_pos(int currcons
, int offset
);
37 extern void invert_screen(int currcons
, int offset
, int count
, int shift
);
39 extern void getconsxy(int currcons
, unsigned char *p
);
40 extern void putconsxy(int currcons
, unsigned char *p
);
42 extern u16
vcs_scr_readw(int currcons
, const u16
*org
);
43 extern void vcs_scr_writew(int currcons
, u16 val
, u16
*org
);