bugGNU Screen - Bugs: bug #35842, Screen should restore original...

 
 

bug #35842: Screen should restore original terminal contents when exiting

Submitted by:  cipher <cipher>
Submitted on:  Wed 14 Mar 2012 10:17:20 PM UTC  
Votes:  80  
 
Category: User InterfaceSeverity: 3 - Normal
Priority: 5 - NormalStatus: Works For Me
Privacy: PublicAssigned to: None
Open/Closed: ClosedRelease: 4.0.3
Fixed Release: NonePlanned Release: None
Work Required: None

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Sat 15 Sep 2012 03:09:20 AM UTC, comment #1:

Hi! This seems to be an issue with the terminal you are using. I am able to reproduce this problem when I use rxvt-unicode, however, screen behaves as expected (i.e. restores previous content) on xterm, screen etc.

Sadrul Habib Chowdhury <sadrul>
Project Administrator
Wed 14 Mar 2012 10:17:20 PM UTC, original submission:

## Background

I'm writing a script that compiles a lot of software.

  • compiling bash packages

[ screen is executed like: screen make install clean ]

  • compiling php packages

[ screen is executed like: screen make install clean ]

## Actual behavior

When screen finishes successfully, it exits with a message at the bottom saying:
[screen is terminating]

The rest of the screen is blank, thus the original script output is discarded and won't return after screen exits successfully. This behavior has also been confirmed with todays Git release. On IRC it is said this only happens on tty terminals. I'm logged in via SSH on FreeBSD platform, if that makes any difference.

## Expected behavior

I would want screen to restore the original terminal contents when it exits succesfully. I know screen can do this, because when i detach a screen using Control+A followed by 'd' character, the original terminal contents is restored. Screen should use the same behavior when exiting.

To get an idea what i expect:

  • compiling bash packages

[screen is terminating]

  • compiling php packages

[screen is terminating]

This is what i should see, i think. Just one line of output with the original contents restored. A bonus feature would be an option to silence the "screen is terminating" message, so we can use screen for cool build scripts. :)

cipher <cipher>

 

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

Attach File(s):
   
   
Comment:
   

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 sadrul (Posted a comment)
  • -unavailable- added by cipher (Voted in favor of this item)
  • -unavailable- added by cipher (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 80 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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 15 Sep 2012 03:09:20 AM UTCsadrulStatusNone=>Works For Me
      Open/ClosedOpen=>Closed
    Wed 14 Mar 2012 10:18:14 PM UTCcipherCarbon-Copy-=>Added cipher

    Back to the top


    Powered by Savane 3.1-cleanup1