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:  2 - Minor Status:  Fixed
Assigned to:  Benno Schulenberg <bens> Open/Closed:  Closed

Thu 17 Sep 2020 03:01:09 PM UTC, comment #4: 

Fixed it anyway (well: added a workaround), to show how the problem can be avoided and Ctrl+Left/Right made to work on a normal terminal emulator (not Debian's bterm).  Commit e12f3971.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Wed 16 Sep 2020 05:43:19 PM UTC, comment #3: 

I was thinking to always set RAW_SEQUENCES to TRUE when nano was built with Slang.  But as we'll be dropping Slang after the next release: wontfix.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Fri 15 May 2020 03:27:34 PM UTC, comment #2: 

Not nano's problem.  Closing.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
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 AdministratorIn charge of this item.
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 AdministratorIn charge of this item.

 

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 9 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-10-08 bens Open/ClosedOpen => Closed
    2020-09-17 bens StatusWont Fix => Fixed
    2020-09-16 bens StatusIn Progress => Wont Fix
    2020-09-10 bens Severity3 - Normal => 2 - Minor
        StatusNone => In Progress
        Assigned toNone => bens
        Open/ClosedClosed => Open
    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