Conversation
|
Thanks for the PR. I'll look into it as soon as I can, and come back to you. |
|
Any day now? |
|
Thanks for the wake-up call. I think that the proposed addition is xterm-specific. I haven't found enough information about mouse support in rxvt, urxvt and vte-based terminal emulators and I don't have enough free time at the moment to test the PR with these terminal emulators. I will stay at the moment with the support of basic, common ANSI escape sequences which are available in most (all?) terminals. It doesn't include mouse support. If you are interested in mouse support for xterm only, please use faithanalog'plterm version at https://github.com/faithanalog/plterm/tree/master --Phil |
|
Well, I can try and see where it works, If it works in a lot of terminals (linux) would you merge? |
This adds xterm mouse support to input().
Mouse support must be explicitly enabled/disabled with
setmousemode. Once enabled, mouse data is returned from input() as additional return valuesbutton, x, y, motion, mods, and the keycode returned is virtual code keys.mouse.example (included in readme):
unfortunately savemode() cannot save the mouse mode because xterm does not have a sequence to query the mouse mode. this is why i use setmousemode() to disable it