Subversion Repositories shark

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
422 giacomo 1
/*
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
 
13
extern int sel_cons;
14
 
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);
21
 
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)
26
 
27
extern int console_blanked;
28
 
29
extern unsigned char color_table[];
30
extern int default_red[];
31
extern int default_grn[];
32
extern int default_blu[];
33
 
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);
38
 
39
extern void getconsxy(int currcons, char *p);
40
extern void putconsxy(int currcons, char *p);
41
 
42
extern u16 vcs_scr_readw(int currcons, const u16 *org);
43
extern void vcs_scr_writew(int currcons, u16 val, u16 *org);
44
 
45
#endif