bugGNU nano - Bugs: bug #52651, nano compiled with Slang does not...

 
 

bug #52651: nano compiled with Slang does not show any cursor (in most cases)

Submitted by:  David Lawrence Ramsey <dolorous>
Submitted on:  Tue 12 Dec 2017 09:16:37 PM UTC  
 
Severity: 3 - NormalStatus: Fixed
Assigned to: Benno Schulenberg <bens>Open/Closed: Open

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 17 Dec 2017 03:36:02 PM UTC, comment #3:

Thanks for testing. Pushed: e1b0f2b2.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sat 16 Dec 2017 10:28:58 PM UTC, comment #2:

After some quick testing, this patch does seem to work.

David Lawrence Ramsey <dolorous>
Project Administrator
Sat 16 Dec 2017 01:21:52 PM UTC, comment #1:

Apparently Slang only shows the cursor when it has been switched on before calling doupdate(). Attached patch adds another call of the latter when compiled with --with-slang.

The only "problem" that remains is when in the help viewer you search for something and it is found and you then type Alt+Up (or some other unknown sequence), the cursor will be incorrectly shown after the message on the status bar. But this is too minor an issue to bother with now.

(file #42659)

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Tue 12 Dec 2017 09:16:37 PM UTC, original submission:

This is under 64-bit Slackware 14.2, with Slang 2.3.0 (although the same problems occur after manually upgrading to Slang 2.3.1a).

Compiling nano using --with-slang produces a version of nano in which the cursor is almost always invisible when it shouldn't be. Running it as:

./nano --ignore

makes the cursor invisible in the edit window when it should be visible. The one exception is when you press an unbound key sequence (e.g. Alt-Left): the cursor will then appear, but disappear again as soon as you press a key that isn't unbound.

In the status bar prompt, the cursor is always invisible, regardless of the key pressed. This is also true for the help viewer. Even searching for text that exists in the help (which should turn the cursor visible when it reaches that text) leaves the cursor invisible.

The only exception to this seems to be if you run nano with the -g option: going into the file browser via ^R ^T will then display the cursor at the beginning of the highlighted file, as expected.

Finally, exiting nano (which you have to do from the main edit window) leaves the cursor invisible afterwards.

I'm not sure when this behavior changed, and don't have time right now to find out in detail, but I'd guess it was around the time of the cursor visibility changes that made it into 2.9.0.

David Lawrence Ramsey <dolorous>
Project Administrator

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #42659:  get-the-cursor-back-on.patch added by bens (869B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bens (Updated the item)
  • -unavailable- added by dolorous (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 17 Dec 2017 03:36:02 PM UTCbensStatusIn Progress=>Fixed
      Summarynano compiled with slang makes cursor mostly invisible when it shouldn't=>nano compiled with Slang does not show any cursor (in most cases)
    Sat 16 Dec 2017 01:21:52 PM UTCbensAttached File-=>Added get-the-cursor-back-on.patch, #42659
      StatusNone=>In Progress
      Assigned toNone=>bens

    Back to the top


    Powered by Savane 3.1-cleanup1