initial commit with v2.6.9
[linux-2.6.9-moxart.git] / include / linux / selection.h
blob059c958951f36af540c4cf7d66ca78a946da5d2e
1 /*
2 * selection.h
4 * Interface between console.c, tty_io.c, vt.c, vc_screen.c and selection.c
5 */
7 #ifndef _LINUX_SELECTION_H_
8 #define _LINUX_SELECTION_H_
10 #include <linux/tiocl.h>
11 #include <linux/vt_buffer.h>
13 extern int sel_cons;
15 extern void clear_selection(void);
16 extern int set_selection(const struct tiocl_selection __user *sel, struct tty_struct *tty);
17 extern int paste_selection(struct tty_struct *tty);
18 extern int sel_loadlut(char __user *p);
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);
45 #endif