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

 
 

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

Submitted by:  None
Submitted on:  Sat 05 May 2007 10:44:04 AM UTC  
 
Category: Feature RequestSeverity: 3 - Normal
Priority: 5 - NormalStatus: Confirmed
Privacy: PublicAssigned to: None
Open/Closed: OpenRelease: None
Fixed Release: NonePlanned Release: Later
Work Required: 0 - Hours

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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

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 #4:

Tentatively targeting for next release.

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

Confirming, per Micha's approval.

Micah Cowan <micahcowan>
 Spam posted by an anonymous
 Spam posted by an 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

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>
Project Administrator
Sat 05 May 2007 10:44:04 AM UTC, original submission:

Hi,

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).

Richard

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

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
  • -unavailable- added by micahcowan (Posted a comment)
  • -unavailable- added by rsmith (Posted a comment)
  • -unavailable- added by mls (Posted a comment)
  •  

    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 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 13 Aug 2008 07:59:34 PM UTCmicahcowanPlanned Release4.1.0=>Later
    Fri 11 Jul 2008 02:00:22 AM UTCsadrulAttached File#16079=>Removed
    Wed 09 Jul 2008 07:36:03 AM UTCNoneAttached File-=>Added feed_rss20_80x15.png, #16079
    Mon 23 Jun 2008 09:05:16 PM UTCmicahcowanCategoryNone=>Feature Request
      Planned ReleaseNone=>4.1.0
      Work RequiredNone=>0 - Hours
    Sun 15 Jun 2008 08:12:48 AM UTCmicahcowanStatusNone=>Confirmed
    Sat 05 May 2007 10:44:04 AM UTCNoneAttached File-=>Added copyaltscreen.patch, #12700

    Back to the top


    Powered by Savane 3.1-cleanup1