You are not logged in.
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
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?
[git] | [AURpkgs] | [arch-games]
Offline
urxvt*termName: rxvt-256color in .Xdefaults
term rxvt-256color in .screenrc
Fixes everything! 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
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