Re: terminal clear/refresh after detach

Lonni J Friedman <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <CAP=oouH7s4xA9tj5mg8wLK1Q4Sa03VE7DWfSZk61Y7sRPLV=6Q@mail.gmail.com>
On Tue, Sep 13, 2011 at 10:56 AM, Ben Love <[email protected]> wrote:
> * Lonni J Friedman wrote on [2011-09-12 12:17:08 -0700]:
>> Greetings,
>> I recently upgraded from Fedora14 to Fedora15.  As part of the
>> upgrade, I moved from screen-4.0.3 to screen-4.1.0, and inherited an
>> annoying behavior.  Prior to the upgrade, whenever I detached from a
>> screen session, everything that was present on my terminal prior to
>> attaching to a screen session was restored.  Since the upgrade,
>> whenever I detach, my terminal is automatically cleared, thereby
>> losing all content that was present.
>>
>> I've googled and looked through the screen man page, but I can't find
>> any mention of this behavior (or a means of preventing it).  Is this
>> expected behavior, or a bug?
>
> I think you are intersted in the altscreen option.  I believe it does
> what you want.

This option doesn't seem to have any impact regardless of whether I
set it to off or on in /etc/screenrc .

>
> Alternatively, you could look into hacks as described here:
>
> http://wiki.bash-hackers.org/snipplets/screen_saverestore
>
> using tput smcup and tput rmcup to save and restore the screen manually,
> though this is probably not what you're looking for.

If there was some way to get screen to invoke them automatically, then
that would likely serve as a good workaround.  However, I can't figure
out any way to accomplish that.

thanks.

_______________________________________________
screen-users mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/screen-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.