You are not logged in.

#1 2009-11-12 02:07:42

jt512
Member
Registered: 2009-02-19
Posts: 262

Urxvt doesn't clear when detaching screen session

In xterm and xfce4's Terminal, when I detach a screen session, the lines from the screen session disappear, and the cursor is returned to where I left off before I started the screen session.  Except for a one-line message that the screen session has detached, there is no trace of the screen session in the terminal. 

In contrast, in urxvt, when I detach a screen session the lines from the screen session remain visible in the terminal and the cursor, more often than not, ends up in the middle of the output from the screen session, and I have to enter a "clear" command to clear the screen. 

Does anybody know how to get urxvt to clear the screen after screen sessions like the other terminals do? 

Note that my ~/.screenrc contains the line "bind d clear detach".

Thanks.

Jay

Offline

#2 2009-11-12 14:50:44

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: Urxvt doesn't clear when detaching screen session

I also have this problem. I figured it was a misconfiguration somewhere, but now that I think about it, I think that much older versions did not have this problem. Maybe a bug report?

Offline

#3 2011-01-29 19:46:56

twiggz
Member
From: Sweden
Registered: 2011-01-21
Posts: 11
Website

Re: Urxvt doesn't clear when detaching screen session

urxvt*termName: rxvt-256color in .Xdefaults
term rxvt-256color in .screenrc

Fixes everything! smile Had a lot of issues with screen/urxvt but this makes everything work perfectly.

Last edited by twiggz (2011-01-29 19:47:28)

Offline

#4 2017-03-17 18:07:05

krovisser
Member
Registered: 2013-04-18
Posts: 31

Re: Urxvt doesn't clear when detaching screen session

This is ancient, but it seemed that all of a sudden a couple years ago screen wasn't clearing the screen anymore. But OP is right, it is cleared on xfce4-terminal. I mainly login from Windows via putty, and I could have sworn it cleared the screen with a default .screenrc

Anyway, I found the answer. Add this to your .screenrc:

termcapinfo xterm* te=\E[?1049l:ti=\E[?1049h:

Last edited by krovisser (2017-03-17 18:07:23)

Offline

Board footer

Powered by FluxBB