bugGNU nano - Bugs: bug #28110, when suspended, it clears the...


bug #28110: when suspended, it clears the screen even though xterm alternate screen switching is off

Submitted by:  Jordi Mallach <jordi>
Submitted on:  Fri Nov 27 21:56:51 2009  
Severity: 3 - NormalStatus: Fixed
Assigned to: Chris Allegretta <astyanax>Open/Closed: Closed

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


Fri Feb 21 19:03:56 2014, comment #3:

Leftover has gone too.

Benno Schulenberg <bens>
Project Administrator
Sat Nov 28 04:16:32 2009, comment #2:

Ok, thanks! In the nitpick department... there's a leftover ;)

/* Blank the screen, and move the cursor to the last line of the
* screen. */

Jordi Mallach <jordi>
Project Administrator
Sat Nov 28 03:05:20 2009, comment #1:

Agreed, and fixed in r4446.

Historically, we've had several issues with suspending when we did not clear the screen, but I think David probably had it right in that we need to move the cursor to the last line first before suspending. Unfortunately Pico does clear the screen when suspending, but as we're supposed to try and do better than Pico we should be compatible with other unix text editors when possible.

I've personally been bitten by this several time but forgot about it until now, so thank you for the bug :-)

Chris Allegretta <astyanax>
Project AdministratorIn charge of this item.
Fri Nov 27 21:56:51 2009, original submission:

(This was originally submitted as http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=460510 against nano 2.0.7)

I have turned off the vastly evil alternate screen switching in xterm,
by turning on the XTerm.VT100.titeInhibit Xresource setting.
Unfortunately, this works for all programs other than nano, which
helpfully clears the screen before returning back to the shell upon
being backgrounded.

Is there a sane reason why this is done? Can it be turned off?

Jordi Mallach <jordi>
Project Administrator


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

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by bens (Posted a comment)
  • -unavailable- added by astyanax (Posted a comment)
  • -unavailable- added by jordi (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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri Feb 21 19:03:56 2014bensOpen/ClosedOpen=>Closed
      Summarywhen suspended, clears the screen even though xterm alternate screen switching off =>when suspended, it clears the screen even though xterm alternate screen switching is off
    Sat Nov 28 03:05:20 2009astyanaxStatusNone=>Fixed
      Assigned toNone=>astyanax

    Back to the top

    Powered by Savane 3.1-cleanup1