rxvtRef-mouse.yo 788 B

123456789101112131415161718192021222324252627282930
  1. COMMENT(-- $Id: rxvtRef-mouse.yo,v 1.2 1998/04/20 07:24:25 mason Exp $ --)
  2. label(Mouse)
  3. nsect(Mouse Reporting)
  4. startdl()
  5. dl(bf(tt(ESC [ M <b> <x> <y>)))
  6. (report mouse position)
  7. enddl()
  8. The lower 2 bits of bf(tt(<b>)) indicate the button:
  9. startdl()
  10. dl(Button = bf(tt((<b> - SPACE) & 3)))
  11. (0 = Button1 pressed nl()\
  12. 1 = Button2 pressed nl()\
  13. 2 = Button3 pressed nl()\
  14. 3 = button released (X11 mouse report))
  15. enddl()
  16. The upper bits of bf(tt(<b>)) indicate the modifiers when the button was
  17. pressed and are added together (X11 mouse report only):
  18. startdl()
  19. dl(State = bf(tt((<b> - SPACE) & 60)))
  20. (4 = Shift nl()\
  21. 8 = Meta nl()\
  22. 16 = Control nl()\
  23. 32 = Double Click em((Rxvt extension)) nl()\
  24. Col = bf(tt(<x> - SPACE)) nl()\
  25. Row = bf(tt(<y> - SPACE)))
  26. enddl()