Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to scroll with mouse with #stop #569

Open
xudongzheng opened this issue Sep 14, 2024 · 1 comment
Open

Unable to scroll with mouse with #stop #569

xudongzheng opened this issue Sep 14, 2024 · 1 comment

Comments

@xudongzheng
Copy link

xudongzheng commented Sep 14, 2024

If LESSKEYIN file has #stop, then there is currently no way to scroll with the mouse. To reproduce:

seq 100 > example
echo "#stop" > lesskeyin
LESSKEYIN=lesskeyin less --mouse example

Additionally, it doesn't seem like the mouse escape keys from

less/decode.c

Lines 75 to 76 in 03f9f1a

ESC,'[','M',0, A_X11MOUSE_IN,
ESC,'[','<',0, A_X116MOUSE_IN,

are defined in

static constant struct lesskey_cmdname cmdnames[] =

@xudongzheng xudongzheng changed the title Unable to define mouse escape sequence in LESSKEYIN Unable to scroll with mouse with #stop Sep 14, 2024
gwsw added a commit that referenced this issue Sep 21, 2024
Add "mouse" and "mouse6" commands to lesskey.
Also fix command parsing logic so that mouse parameters are not
read from tty until we've parsed all command tables.
Related to #569.
@gwsw
Copy link
Owner

gwsw commented Sep 21, 2024

Fixed in 0df5d8b in the post659 branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants