bugGNU nano - Bugs: bug #58725, nano complains about "Unbound...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #58725: nano complains about "Unbound key" when using the mouse

Submitter:  Matteo Raso <elucidex>
Submitted:  Tue 07 Jul 2020 09:12:11 PM UTC
   
 
Severity:  3 - Normal Status:  Invalid
Assigned to:  None Open/Closed:  Closed

Jump to the original submission

Tue 03 Nov 2020 09:59:28 AM UTC, comment #8: 

In bug #59396 Matteo confirmed that it seems to be a problem with LXTerminal.  Using the mouse appears to work fine when using Xfce Terminal instead.

Benno Schulenberg <bens>
Group administrator
Sat 11 Jul 2020 09:21:52 AM UTC, comment #7: 

If clicking with the mouse works correctly in xterm, then the problem is not in nano (nor in ncurses or X or the mouse).  The most likely culprit is LXTerminal.  For me, clicking works fine in LXTerminal 0.2.0 and 0.3.1.  So one thing to try is to downgrade LXTerminal to 0.3.1.  If that doesn't fix things either, then there is a miscompilation or a misconfiguration somewhere.

(Note that when using --mouse, scrolling with the mouse (using the mousewheel) should do absolutely nothing in nano.  Nano does not handle the scrollwheel.  Without --mouse, ncurses will intercept these scroll events and will translate them to cursor movements: three up or three down for each bump of the wheel.)

Benno Schulenberg <bens>
Group administrator
Thu 09 Jul 2020 08:04:01 PM UTC, comment #6: 


>Another thing to try: if you run 'nano --ignore --mouse' in an xterm, does clicking and scrolling with the mouse then work correctly?

It works fine on xterm.

>(These are six characters: Esc [ M space ! and ".)  If it doesn't do that, something is miscompiled on your system -- possibly the mouse driver or libinput or X or ncurses or nano.

It placed down ^[[M 9( instead of ^[[M !". I'll try to recompile some of my packages and see if it fixes things.

Matteo Raso <elucidex>
Thu 09 Jul 2020 02:41:59 PM UTC, comment #5: 

Another thing to try: if you run 'nano --ignore --mouse' in an xterm, does clicking and scrolling with the mouse then work correctly?

Benno Schulenberg <bens>
Group administrator
Thu 09 Jul 2020 07:48:40 AM UTC, comment #4: 

When you run 'nano --ignore --mouse' and type M-V, and then click with the mouse where the cursor is, it should enter exactly this:

^[[M !"

(These are six characters: Esc [ M space ! and ".)  If it doesn't do that, something is miscompiled on your system -- possibly the mouse driver or libinput or X or ncurses or nano.

Version 4.9.3 of nano is not marked as stable on Gentoo yet, so it means you are running at least some unstable software.  Please report the problem you are having on the forums or the bug tracker of your distro.

Benno Schulenberg <bens>
Group administrator
Thu 09 Jul 2020 03:57:54 AM UTC, comment #3: 

Sorry about the last comment, accidently hit quote and posted without thinking. Nano remains on the text page for however long I hold the mouse button, but stays on there if I scroll until I try to scroll again.

>Which version of nano?  Please paste the full output of 'nano --version'.  Which locale?  Paste the output of 'locale'.


 GNU nano, version 4.9.3
 (C) 1999-2011, 2013-2020 Free Software Foundation, Inc.
 (C) 2014-2020 the contributors to nano
 Email: -email is unavailable- Web: https://nano-editor.org/
 Compiled options: --enable-utf8

LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=

> When you run 'nano --ignorercfiles --mouse' (without any file name), does the problem occur then too?  If yes, what is entered into the buffer when you click once precisely where the cursor is?

The same problem occurs. As before, the text that's inserted depends on which pixel my mouse cursor is hovering over. When I click precisely where nano's cursor is, nano inserts "#! when I click or scroll, although it only says that " is unbound.

Matteo Raso <elucidex>
Thu 09 Jul 2020 03:44:56 AM UTC, comment #2: 


comment #1:

> Text can be inserted only in the edit window.  So how can you see that a click or a scroll takes you to the help page (normally accessed with ^G) and then some stuff gets inserted in the edit window?  The help page would flicker past so quickly that you wouldn't be able to recognize it.
>
> Which version of nano?  Please paste the full output of 'nano --version'.  Which locale?  Paste the output of 'locale'.
>
> When you run 'nano --ignorercfiles --mouse' (without any file name), does the problem occur then too?  If yes, what is entered into the buffer when you click once precisely where the cursor is?

Matteo Raso <elucidex>
Wed 08 Jul 2020 12:38:56 PM UTC, comment #1: 

Text can be inserted only in the edit window.  So how can you see that a click or a scroll takes you to the help page (normally accessed with ^G) and then some stuff gets inserted in the edit window?  The help page would flicker past so quickly that you wouldn't be able to recognize it.

Which version of nano?  Please paste the full output of 'nano --version'.  Which locale?  Paste the output of 'locale'.

When you run 'nano --ignorercfiles --mouse' (without any file name), does the problem occur then too?  If yes, what is entered into the buffer when you click once precisely where the cursor is?

Benno Schulenberg <bens>
Group administrator
Tue 07 Jul 2020 09:12:11 PM UTC, original submission:  

When I activate mouse support and attempt to scroll or click something, it takes me to the help page, says that a certain key is unbound, and then inserts that key wherever my cursor was. Curiously, what key Nano complains about seems to depend on the pixel that my mouse cursor is hovering over. I'm not sure if this matters, but I'm using lxterminal 0.3.2 on Gentoo.

Matteo Raso <elucidex>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (Posted a comment)
  • -email is unavailable- added by elucidex (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-07-17 bens Open/ClosedOpen Closed
    2020-07-11 bens StatusNone Invalid
    2020-07-08 bens SummaryNano complains about 'unbound key' when I attempt to use the mouse nano complains about "Unbound key" when using the mouse

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code