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