bugGNU nano - Bugs: bug #52960, when using option -K,...

 
 

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

bug #52960: when using option -K, <Shift+PageUp> says "Unknown sequence"

Submitter:  Benno Schulenberg <bens>
Submitted:  Tue 23 Jan 2018 06:24:05 PM UTC
   
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Wed 24 Jan 2018 04:43:09 PM UTC, comment #4: 

Good to know; thanks.  Slackware-current has Xfce4-terminal 0.8.6 and vte 0.50.2 right now, so when it stabilizes, I'll be much closer to where you are.

And I'm aware that --rebindkeypad may not be widely used, but it's mainly there to help work around broken terminal entries (broken as in, they'll make ncurses return the wrong key values), and Xfce4-terminal is one of the standard terminals supported, so this particular case works out.

David Lawrence Ramsey <dolorous>
Group Member
Tue 23 Jan 2018 07:21:48 PM UTC, comment #3: 

Hello David,

The Xfce4-terminal version is 0.8.6 (on Xubuntu 17.10).  About the vte I'm not sure -- the library is called libvte-2.91, and its version number 0.48.4.

All VTE/Xfce4-terminals use the Shift+Something keys for themselves, but the more modern ones let the keys pass when ncurses is active, because then the terminal doesn't act on them anyway, so instead of swallowing them, it lets them pass.

Adding these escape sequences is very low priority, because I doubt anyone uses --rebindkeypad: using ncurses' "keycode" mode should work fine nowadays.  I just found them while testing the "consumed" patch.

Benno Schulenberg <bens>
Group administrator
Tue 23 Jan 2018 07:03:11 PM UTC, comment #2: 

Fixed in git, with commits 838b175d and fa7e9b11.

Benno Schulenberg <bens>
Group administrator
Tue 23 Jan 2018 07:02:58 PM UTC, comment #1: 

Out of curiosity, which version of Xfce4-terminal (and vte) does this occur on?

I'm running nano git 6795d079, Xfce4-terminal 0.6.3, and vte-0.28.2 (from Slackware 14.2, 64-bit version).  When using these, Shift-PageUp, Shift-PageDown, Shift-Home, and Shift-End don't produce an error message (or anything; if you press them, nano acts like you didn't press a key at all).

It sounds like nano just needs to handle these previously unhandled escape sequences in order to fix this, but the user will have to run recent enough versions of Xfce4-terminal and vte to get the sequences in the first place.

David Lawrence Ramsey <dolorous>
Group Member
Tue 23 Jan 2018 06:24:05 PM UTC, original submission:  

To reproduce, run on an Xfce4-terminal:

   nano  -K  NEWS

and type: <Shift+PageUp> and <Shift+PageDown>.  Both produce the message "[ Unknown sequence ]" on the status bar.  (In current git, both keystrokes also insert "2~" into the buffer -- apparently the sequences are longer than what nano expects.)

The same message ("Unknown sequence") is also given when pressing <Shift+Home> and <Shift+End>.

Benno Schulenberg <bens>
Group administrator

 

(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 dolorous (Posted a comment)
  • -email is unavailable- added by bens (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
    2018-01-30 bens Open/ClosedOpen Closed
    2018-01-23 bens Severity3 - Normal 2 - Minor
    2018-01-23 bens StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code