bugGNU nano - Bugs: bug #49771, with Slang, the modified cursor...


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

bug #49771: with Slang, the modified cursor keys produce bad keycodes

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Mon 05 Dec 2016 04:28:08 PM UTC  
Severity:  3 - Normal Status:  None
Assigned to:  None Open/Closed:  Closed

Fri 15 May 2020 03:27:34 PM UTC, comment #2: 

Not nano's problem.  Closing.

Benno Schulenberg <bens>
Project Administrator
Fri 03 Jan 2020 04:00:24 PM UTC, comment #1: 

Strangely, the modified arrow keys work in mcedit, which seems to be using Slang too, just like mc itself.  However, looking into the code, it appears that mcedit builds its keymap by calling out to Gnome's GLib, with calls to g_key_file_set_string().

Benno Schulenberg <bens>
Project Administrator
Mon 05 Dec 2016 04:28:08 PM UTC, original submission:  

Configure nano using --with-slang --enable-debug, compile, and then run 'src/nano 2>TRAIL'.  Press all four Arrow keys, one after the other, then do the smae while holding Shift, then again while holding Ctrl, and finally again while holding Alt.  Exit from nano and run 'grep codes TRAIL'.  See how all the Arrow keys pressed together with a modifier produce the same truncated escape sequence: "Esc [ 1 ;" (0x1b 0x5b 0x31 0x3b).  The two final bytes of these sequences are missing.  I'm not sure whether nano is doing something wrong or Slang is short-changing us on the input.

Benno Schulenberg <bens>
Project Administrator


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 (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-05-15 bens Open/ClosedOpen => Closed
    2019-12-30 bens Summarywhen compiled --with-slang, the modified cursor keys produce bad keycodes => with Slang, the modified cursor keys produce bad keycodes

    Back to the top

    Powered by Savane 3.5