selection.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * selection.h
  3. *
  4. * Interface between console.c, tty_io.c, vt.c, vc_screen.c and selection.c
  5. */
  6. #ifndef _LINUX_SELECTION_H_
  7. #define _LINUX_SELECTION_H_
  8. #include <linux/tiocl.h>
  9. #include <linux/vt_buffer.h>
  10. struct tty_struct;
  11. extern struct vc_data *sel_cons;
  12. struct tty_struct;
  13. extern void clear_selection(void);
  14. extern int set_selection(const struct tiocl_selection __user *sel, struct tty_struct *tty);
  15. extern int paste_selection(struct tty_struct *tty);
  16. extern int sel_loadlut(char __user *p);
  17. extern int mouse_reporting(void);
  18. extern void mouse_report(struct tty_struct * tty, int butt, int mrx, int mry);
  19. extern int console_blanked;
  20. extern unsigned char color_table[];
  21. extern int default_red[];
  22. extern int default_grn[];
  23. extern int default_blu[];
  24. extern unsigned short *screen_pos(struct vc_data *vc, int w_offset, int viewed);
  25. extern u16 screen_glyph(struct vc_data *vc, int offset);
  26. extern void complement_pos(struct vc_data *vc, int offset);
  27. extern void invert_screen(struct vc_data *vc, int offset, int count, int shift);
  28. extern void getconsxy(struct vc_data *vc, unsigned char *p);
  29. extern void putconsxy(struct vc_data *vc, unsigned char *p);
  30. extern u16 vcs_scr_readw(struct vc_data *vc, const u16 *org);
  31. extern void vcs_scr_writew(struct vc_data *vc, u16 val, u16 *org);
  32. extern void vcs_scr_updated(struct vc_data *vc);
  33. #endif