bugGNU Screen - Bugs: bug #19805, [PATCH] copy/scrollback from...


bug #19805: [PATCH] copy/scrollback from altscreen

Submitter:  None
Submitted:  Sat 05 May 2007 10:44:04 AM UTC
Category:  Feature Request Severity:  3 - Normal
Priority:  * 5 - Normal Status:  Confirmed
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  None
Fixed Release:  None Planned Release:  Later
Work Required:  0 - Hours
* Mandatory Fields

Add a New Comment Rich Markup

Jump to the original submission

Wed 13 Aug 2008 07:59:34 PM UTC, comment #7: 

This should probably wait for after the 4.1.0 release.

In the meantime, though, perhaps screen should be advertising NR, to indicate that smcup doesn't restore the status from before the previous rmcup.

Perhaps it should advertise that in the static terminfo/termcap files, even when this fix does go through, otherwise apps such as mc are perhaps justified in believing they don't have to redraw.

Micah Cowan <micahcowan>
Mon 23 Jun 2008 09:05:16 PM UTC, comment #6: 

Tentatively targeting for next release.

Micah Cowan <micahcowan>
Sun 15 Jun 2008 08:12:48 AM UTC, comment #5: 

Confirming, per Micha's approval.

Micah Cowan <micahcowan>
  Spam posted by anonymous
  Spam posted by anonymous
Wed 30 May 2007 07:47:11 PM UTC, comment #2: 

I'm happy to update the patch to make the copyaltscreen functionality an option (-a, unless I see any objections) to the copy command.

What else should I do to move forward with this? Assuming the patch is OK, is it large enough to require copyright assignment to the FSF?


Richard Smith <rsmith>
Tue 29 May 2007 09:38:39 PM UTC, comment #1: 

Sounds good (I'd rather have an option for the 'copy' command instead of a new 'copyaltscreen' command, but that's just a minor issue).

Michael Schröder <mls>
Group administrator
Sat 05 May 2007 10:44:04 AM UTC, original submission:  


As things stand, altscreen support in screen is not particularly useful. As I see it, this is primarily because there's no way to view the output of an application which has written to the altscreen (less, vi, etc.) after that application has finished.

I've looked through bug #15457 and tried to respect the design decisions referred to there. My solution to this is to add two new commands:

keepaltscreen -- if set, the te/rmcup sequence won't free the alt screen's contents (altscreen contents are still freed and recreated on ti/smcup).
copyaltscreen -- like copy, but switch to the former contents of altscreen first, and switch back from altscreen afterwards.

If keepaltscreen isn't set (and it isn't by default), there are no behavioural changes to altscreen mode. I personally would prefer to remove the keepaltscreen setting (and thus have copyaltscreen available all the time) but I understand that this would raise concerns over memory usage.

The attached patch implements all this (including doc changes) and applies cleanly to screen-4.0.3 (obtained via debian, since I can't seem to find it available for download from Savannah).




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

Attach Files:

Attached Files
file #12700:  copyaltscreen.patch added by None (10KiB - text/x-diff)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by micahcowan (Posted a comment)
  • -email is unavailable- added by rsmith (Posted a comment)
  • -email is unavailable- added by mls (Posted a comment)

    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.

    Only logged-in users can vote.


    Follow 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-08-13 micahcowan Planned Release4.1.0 Later
    2008-07-11 sadrul Attached File#16079 Removed
    2008-07-09 None Attached File- Added feed_rss20_80x15.png, #16079
    2008-06-23 micahcowan CategoryNone Feature Request
        Planned ReleaseNone 4.1.0
        Work RequiredNone 0 - Hours
    2008-06-15 micahcowan StatusNone Confirmed
    2007-05-05 None Attached File- Added copyaltscreen.patch, #12700

    Back to the top

    Powered by Savane 3.12