Currently #config MOUSE ON enables "Button-event tracking", but there is also an even more verbose mode called "Any-event mode", which reports cursor movements even when no button is pressed. (https://www.xfree86.org/current/ctlseqs.html#Mouse%20Tracking)
Changing
|
print_stdout(0, 0, "\e[?1000h\e[?1002h\e[?1016h"); |
|
} |
|
else |
|
{ |
|
print_stdout(0, 0, "\e[?1000h\e[?1002h\e[?1006h"); |
to (i.e.
1002 to
1003)
print_stdout(0, 0, "\e[?1000h\e[?1003h\e[?1016h");
}
else
{
print_stdout(0, 0, "\e[?1000h\e[?1003h\e[?1006h");
seems to enable things like (after I created a url MSLP link) #event {MOVED SECURE LINK url MOUSE} {#showme url: %4 -4 -30}, (or just plain #event {MOVED MOUSE}.)
Just enabling those would be nice, but I wonder if maybe we could also have some TinTin-filtered events?
something like
#event {ENTER LINK url MOUSE} {#showme Only fires once, when mouse enters link region}
#event {LEAVE LINK url MOUSE} {#showme Fires once, when mouse leaves link region}
My use case would be showing the command that will be sent on clicking when you hover the mouse over a link.
Or for a list of rooms: on left-clicking the room name currently my script speedwalks you there, while right-clicking shows the map at that location. It would be neat if I could just show the map when hovering over the link.
Currently
#config MOUSE ONenables "Button-event tracking", but there is also an even more verbose mode called "Any-event mode", which reports cursor movements even when no button is pressed. (https://www.xfree86.org/current/ctlseqs.html#Mouse%20Tracking)Changing
tintin/src/config.c
Lines 598 to 602 in b0fa433
to (i.e.
1002to1003)seems to enable things like (after I created a
urlMSLP link)#event {MOVED SECURE LINK url MOUSE} {#showme url: %4 -4 -30}, (or just plain#event {MOVED MOUSE}.)Just enabling those would be nice, but I wonder if maybe we could also have some TinTin-filtered events?
something like
#event {ENTER LINK url MOUSE} {#showme Only fires once, when mouse enters link region}#event {LEAVE LINK url MOUSE} {#showme Fires once, when mouse leaves link region}My use case would be showing the command that will be sent on clicking when you hover the mouse over a link.
Or for a list of rooms: on left-clicking the room name currently my script speedwalks you there, while right-clicking shows the map at that location. It would be neat if I could just show the map when hovering over the link.