[elinks-dev] Question, Reproducible Error

Kalle Olavi Niemitalo kon at iki.fi
Sun Jan 28 06:04:00 PST 2007

Lydgate  <oqba4dmoyy at lydgate.e4ward.com> writes:

> But if I understand you correctly, even adding 6 and 7 in X would not be 
> enough, and buttons 6 and 7 would need to be defined in elinks?  
> Although I would think that something like: <Btn6Up>:U\n\ would bypass 
> that limitation (assuming default keybindings) along with binding Btn7Up 
> to "Left" (although I'm not sure exactly what string this would be).

If the terminal sends ESC [ D, ELinks treats that as the Left
key.  In C syntax, that is "\033[D".  I don't know whether libXt
understands the same syntax.

However, if you're editing an input field in ELinks and press
Left, ELinks just moves the cursor to the left inside the input
field, instead of going back in the history.  If you want mouse
button 7 to access the history in this situation too, you should
translate it to a string sent by some other keystroke, and then
map that keystroke to history-move-back in ELinks.

These workarounds make ELinks treat buttons 6 and 7 as keyboard
keys.  A proper solution would let ELinks treat them as mouse
buttons, but then the event would have to carry the coordinates
of the mouse pointer as well, so it would probably require
patching both xterm and ELinks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://lists.linuxfromscratch.org/pipermail/elinks-dev/attachments/20070128/3a7e6112/attachment.sig>

More information about the elinks-dev mailing list