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

 
 

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

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

Submitter:  David Lawrence Ramsey <dolorous>
Submitted:  Tue 12 Dec 2017 09:16:37 PM UTC
   
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

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

Thanks for testing.  Pushed: e1b0f2b2.

Benno Schulenberg <bens>
Group administrator
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>
Group Member
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>
Group administrator
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>
Group Member

 

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

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
  • -email is unavailable- added by bens (Updated the item)
  • -email is unavailable- added by dolorous (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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-01-03 bens Open/ClosedOpen Closed
    2017-12-17 bens StatusIn 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)
    2017-12-16 bens Attached File- Added get-the-cursor-back-on.patch, #42659
        StatusNone In Progress
        Assigned toNone bens

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code