tiocl.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef _LINUX_TIOCL_H
  2. #define _LINUX_TIOCL_H
  3. #define TIOCL_SETSEL 2 /* set a selection */
  4. #define TIOCL_SELCHAR 0 /* select characters */
  5. #define TIOCL_SELWORD 1 /* select whole words */
  6. #define TIOCL_SELLINE 2 /* select whole lines */
  7. #define TIOCL_SELPOINTER 3 /* show the pointer */
  8. #define TIOCL_SELCLEAR 4 /* clear visibility of selection */
  9. #define TIOCL_SELMOUSEREPORT 16 /* report beginning of selection */
  10. #define TIOCL_SELBUTTONMASK 15 /* button mask for report */
  11. /* selection extent */
  12. struct tiocl_selection {
  13. unsigned short xs; /* X start */
  14. unsigned short ys; /* Y start */
  15. unsigned short xe; /* X end */
  16. unsigned short ye; /* Y end */
  17. unsigned short sel_mode; /* selection mode */
  18. };
  19. #define TIOCL_PASTESEL 3 /* paste previous selection */
  20. #define TIOCL_UNBLANKSCREEN 4 /* unblank screen */
  21. #define TIOCL_SELLOADLUT 5
  22. /* set characters to be considered alphabetic when selecting */
  23. /* u32[8] bit array, 4 bytes-aligned with type */
  24. /* these two don't return a value: they write it back in the type */
  25. #define TIOCL_GETSHIFTSTATE 6 /* write shift state */
  26. #define TIOCL_GETMOUSEREPORTING 7 /* write whether mouse event are reported */
  27. #define TIOCL_SETVESABLANK 10 /* set vesa blanking mode */
  28. #define TIOCL_SETKMSGREDIRECT 11 /* restrict kernel messages to a vt */
  29. #define TIOCL_GETFGCONSOLE 12 /* get foreground vt */
  30. #define TIOCL_SCROLLCONSOLE 13 /* scroll console */
  31. #define TIOCL_BLANKSCREEN 14 /* keep screen blank even if a key is pressed */
  32. #define TIOCL_BLANKEDSCREEN 15 /* return which vt was blanked */
  33. #define TIOCL_GETKMSGREDIRECT 17 /* get the vt the kernel messages are restricted to */
  34. #endif /* _LINUX_TIOCL_H */