I took some time to think a bit more about mouse support.

The current implementation is an on/off switch.
If on, it inhibits default mouse behavior: text selection (X and gpm)
Moreover there have been discussion about wheel support because this is
a feature which can be enabled in X for most virtual terminals.
(makes wheel up emulate arrow-up key press)
But abook/ncurses's wheel handling is a very useful in the context of
the linux console [from a very quick look, gpm does not natively handle
wheel events]

So let me expose the idea: `set use_mouse=<key-modifier>`

If key-modifier is a valid key modifier, then mouse events are treated by
abook as long as they are combined with the key-modifier.

To be honnest I don't know if ncurses supports that, but this was the
only option I could come up to grab the best of both worlds without
having the switch abookrc mouse support on/off according to circumstances.

I don't know if Thorsten could be interested in this change and if not I
could give a try myself, but I felt it would be better to gather
opinions first.



regards

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Abook-devel mailing list
Abook-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/abook-devel

Reply via email to