bugGNU nano - Bugs: bug #59091, on bterm (in Debian installer),...


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

bug #59091: on bterm (in Debian installer), the cursor disappears with -c and ^S

Submitter:  Benno Schulenberg <bens>
Submitted:  Thu 10 Sep 2020 09:40:49 AM UTC
Severity:  2 - Minor Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Fri 11 Sep 2020 05:04:51 PM UTC, comment #4: 

A more complete workaround has been made in commit b9a1a586.

I'm marking this as fixed now.  It's not fixed for the -x/--nohelp case, but it's "fixed" for the default setup.  That will have to do for now -- until I figure out how install a libncurses into the installer image and check whether the cursor problem is gone then.  If not, then it must be a problem of bterm itself.

Benno Schulenberg <bens>
Project Administrator
Thu 10 Sep 2020 05:04:48 PM UTC, comment #3: 

I got the idea for the workaround when I noticed that the problem occurred with ^S but not with ^O <Enter>.  The main difference between the two is that the latter changes the two help lines.  (Without the help lines, there is no difference: both commands make the cursor disappear.)

It's weird that never anyone complained about this.  One is tempted to think that no one ever uses nano in the shell of the installer.  Or, if someone does, that they only do so because they urgently need to edit something and don't care if the editor behaves strangely.

Benno Schulenberg <bens>
Project Administrator
Thu 10 Sep 2020 04:54:27 PM UTC, comment #2: 

The issue has been mitigated in git, by commit d2d0c665, by kicking the terminal and/or Slang into rewriting the entire bottom window, which somehow awakens the cursor.

I do not know how to fix the issue or work around it when --nohelp/-x is used.

Benno Schulenberg <bens>
Project Administrator
Thu 10 Sep 2020 04:26:59 PM UTC, comment #1: 

I've tried fixing this by removing all calls of curs_set(0) from nano.  It doesn't help.  :|  Maybe it isn't even a bug in Slang but in bterm.

Benno Schulenberg <bens>
Project Administrator
Thu 10 Sep 2020 09:40:49 AM UTC, original submission:  

To reproduce, boot from a Debian netinstall image, boot the plain "Install" target, not the default "Graphical install".  Run through the steps until reaching the manual disk partitioning.  Escape from that item and then choose the "Shell" item near the end of the main menu.  Then run 'nano -c'.  See that there is no cursor.  Type a few charactes, say "xxx".  Upon the first "x", the cursor appears.  Now type ^B three times.  Upon the second ^B the cursor disappears again.  Type ^N ^B.  The cursor appears again...  WTH?

Exit from nano (^X^N), then run 'nano /etc/cde*'.  See that there is a cursor.  Move around a bit, and see that the cursor stays visible all the time.  Now type M-X.  Nano says "Unbound key: M-X", and the cursor disappears.  Type M-X again.  The cursor returns...  Type ^S.  Nano says "Wrote 107 lines" and the cursor is gone again.  Try moving around with ^B ^F ^P ^N.  Only when the screen starts scrolling or the 26 keystrokes have been reached (and the message on the status bar disappears) does the cursor return.

I've tried adding an extra wrefresh(edit) and curs_set(1), but it doesn't help.  The only solution I see at the moment is: disable ^S, disable --constantshow, and disable unbound-key feedback when built with Slang.  :|

Benno Schulenberg <bens>
Project 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 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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-10-08 bens Open/ClosedOpen Closed
    2020-09-11 bens StatusNone Fixed
    2020-09-10 bens Severity3 - Normal 2 - Minor
    2020-09-10 bens Summaryon bterm (in Debian installer), the cursor hides with -c and ^S and toggle on bterm (in Debian installer), the cursor disappears with -c and ^S

    Back to the top

    Powered by Savane 3.9