Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use urxvt with GNU screen with X11 on my mac. I like it a lot. My only issue, is that when I quit vim, it puts the shell prompt underneath the vim window. This isn't a huge issue, but it basically hides whatever I was doing before I opened vim. If I use urxvt without GNU screen and quit vim, it hides the vim window and puts my shell prompt right after the prompt that opened vim.

Any idea as to what I can fix in screen to help with this?

Does this have something to do with the screen blanker?

share|improve this question
here is a good link with common settings you should have in your screenrc or .screenrc – Spike Oct 27 '10 at 1:07
up vote 18 down vote accepted

Enable the altscreen option in ~/.screenrc.

Full-screen programs use a terminal feature called "alternate screen", which has a separate screen buffer and (often) minor behavior changes to adapt to such interfaces. The program enters the 'alternate' screen when started, and goes back to 'normal' when exiting.

Since Screen itself acts as a terminal emulator, it has to emulate the alt-screen feature as well. All other terminal emulators enable this feature by default, but Screen has it hidden behind the altscreen option for some historical reasons.

share|improve this answer
I can't upvote you enough! – George Dec 15 '12 at 9:11

Add this line to your ~/.screenrc:

altscreen on
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .